AREA RESET,CODE,READONLY
ENTRY
CODE32
DELAY_VALUE EQU 0x1000000
GPBCON EQU 0X56000010
GPBDAT EQU 0X56000014
GPBDUP EQU 0X56000018
LED1 EQU 0XFFFFFF2F
START
LDR R0,=GPBCON
LDR R1,=0X00015400
STR R1,[R0]
begin
MOV R0,#15
LDR R1,=0xffffffff
LABEL
LDR R2,=GPBDAT
SUB R1,R1,#0X1f
STR R1,[R2]
BL DELAY
BACK
SUB R0,R0,#1
CMP R0,#0
BEQ begin
BNE LABEL
DELAY LDR R0,=DELAY_VALUE
BLN SUB R0,R0,#1
NOP
NOP
NOP
CMP R0,#0
BNE BLN
BEQ BACK
QUIT
B QUIT
END