1 .section .entry 2 3 LDR SP, =MEMBASEADDR 4 BL check_compat 5 6 7 // Turn OFF SD Card power 8 // to support autostart 9 //bx lr //tentando abortar o programa não segue 10 //LDR R3, =0xc0220058 // em 0xffc5323c análogo a 0xffc51784 em a495 11 //MOV R2, #0x44 12 //STR R2, [R3] 13 // LDR R3, =0xc0220000 14 // MOV R2, #0x46 15 // STR R2, [R3, #32] 16 // MOV R2, #32 17 // STR R2, [R3, #0x44] 18 // MOV R2, #0x44 19 // STR R2, [R3, #0x58] 20 // MOV R2, #32 21 // STR R2, [R3, #0x5C] 22 // STR R2, [R3, #0x110] 23 // STR R2, [R3, #0x114] 24 // STR R2, [R3, #0x118] 25 // STR R2, [R3, #0x11c] 26 // STR R2, [R3, #0x120] 27 // STR R2, [R3, #0x124] 28 29 30 // looks like idle cycle is required for proper shutdown 31 MOV R3, #0xF0000 32 m1x: 33 SUB R3, R3, #1 34 CMP R3, #0 35 BNE m1x 36 37 // ordinary startup... 38 39 MOV SP, #0x1900 40 MOV R11, #0 41 B my_restart