Description: .globl _start
_start: @因为这里的标号是程序的入口,一定要用 _start ,
@否则链接器将找不到程序的入口
ldr r1, 0xE0200280 @设置GPJ2CON的bit[0:15],让GPJ2_0、GPJ2_1、GPJ2_2、GPJ2_3
ldr r0, 0x00001111 @都作为输出引脚
str r0, [r1]
ldr r1, 0xE0200284 @设置GPJ2DAT的bit[0:3],让GPJ2_0、GPJ2_1、GPJ2_2、GPJ2_3
mov r0,#0 @引脚输出低电平,LED亮
str r0, [r1]
halt: @让CPU一直执行这条指令,防止PC指针跑飞
b halt
To Search:
File list (Check if you may need any files):
1.led_S\Makefile
.......\mktools.c
.......\start.S
1.led_S