修改了Makefile同时修改了源文件

This commit is contained in:
ASUS660 2025-12-11 20:37:45 +08:00
parent 6007435783
commit 5f2451e1eb
2 changed files with 9 additions and 2 deletions

View File

@ -6,5 +6,12 @@ _start:
ldr sp, =0x40000000
b main
main:
ldr r0, =0x40000000
ldr r1, =0x00000001
str r1, [r0]
ldr r0, =0x40000000
ldr r1, =0x00000000
str r1, [r0]
b main

View File

@ -1,6 +1,6 @@
led:led.s
arm-linux-gnueabihf-gcc -c led.s
arm-linux-gnueabihf-gcc -c -nostdlib led.s
arm-linux-gnueabihf-gcc -o led led.o
clean: