source: trunk/loader/a800/entry.S @ 1723

Revision 1723, 808 bytes checked in by reyalp, 2 years ago (diff)

a800 100a port from mland, patch by waterwings in http://chdk.setepontos.com/index.php?topic=650.msg81174#msg81174

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