1 .section .entry 2 3 LDR SP, =MEMBASEADDR 4 BL check_compat 5 6 // Turn OFF SD Card power 7 // to support autostart 8 //LDR R3, =0xC0220018 // s95-100e @FF876F20 9 10 LDR R3, =0xC0220018 // sx150-100a @FF876F48 11 MOV R2, #0x44 12 STR R2, [R3] 13 14 // af on 15 //LDR R3, =0xC0223030 16 //MOV R2, #0x46 17 //STR R2, [R3] 18 19 // looks like idle cycle is required for proper shutdown 20 MOV R3, #0xF0000 // increased from 8000 to F0000 for extra delay 21 1: 22 SUB R3, R3, #1 23 CMP R3, #0 24 BNE 1b 25 26 // ordinary startup... 27 MOV SP, #0x1900 28 MOV R11, #0 29 B my_restart