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