1 .section .entry 2 3 LDR SP, =MEMBASEADDR 4 BL check_compat 5 6 7 // SD card off stuff doesn't appear to be needed 8 9 // for testing, blink red LED 10 times at boot 10 /* 11 LDR R3, =0xC0220130 12 MOV R1,#10 13 2: 14 MOV R2, #0x46 15 STR R2, [R3] 16 MOV R0, #0x8000 17 1: 18 SUB R0,R0,#1 19 CMP R0,#0 20 BNE 1b 21 MOV R2, #0x44 22 STR R2, [R3] 23 MOV R0, #0x8000 24 1: 25 SUB R0,R0,#1 26 CMP R0,#0 27 BNE 1b 28 29 SUB R1,R1,#1 30 CMP R1,#0 31 BNE 2b 32 */ 33 // ordinary startup... 34 35 MOV SP, #0x1900 36 MOV R11, #0 37 B my_restart