PRESERVE8
AREA |C$$code|, CODE, READONLY
global
start
start
b reset
b . ; HandlerUndef (0x00000004)
b . ; HandlerSWI (0x00000008)
b . ; HandlerPabort (0x0000000C)
b . ; HandlerDabort (0x00000010)
b . ; HandlerReserved (0x00000014)
b . ; HandlerIRQ (0x00000018)
b . ; HandlerFIQ (0x0000001C)
reset
mrs
r0,cpsr
bic
r0,r0,#0x1f
orr
r0,r0,#0xd3
msr cpsr_cxsf,r0
ldr r0, =0x70000000; /* Peri port setup */
orr r0, r0, #0x13
mcr p15,0,r0,c15,c2,4 ; @ 256M(0x70000000-0x7fffffff)
ldr
r0, =0x7f008800
;/* GPIO K INIT */
ldr
r1, =(0x1111<<16)
str
r1, [r0]
ldr
r0, =0x7f00880c
mov
r1, #0x0
str
r1, [r0]
B LED1
LED1
ldr
r0, =0x7f008808
ldr
r1, =(0xE<<4)
str
r1, [r0]
b
LED1
LED2
ldr
r0, =0x7f008808
ldr
r1, =(0xD<<4)
str
r1, [r0]
b
LED2
LED3
ldr
r0, =0x7f008808
ldr
r1, =(0x7<<4)
str
r1, [r0]
b
LED3
end