1 TTL C:\pocket\asmstuff\asmstuff.cpp
3 AREA |.drectve|, DRECTVE
4 DCB "-defaultlib:coredll.lib "
5 DCB "-defaultlib:corelibc.lib "
7 EXPORT |?read_mmu@@YAHXZ| ; read_mmu
9 |$T229| DCD |?read_mmu@@YAHXZ|
12 |?read_mmu@@YAHXZ| PROC ; read_mmu
14 mov r0, #0x33 ; 0x33 = 51
15 mrc p15, 0, r0, c2, c0, 0
18 ENDP ; |?read_mmu@@YAHXZ|, read_mmu
20 EXPORT |?IntOff@@YAXXZ| ; IntOff
22 |$T233| DCD |?IntOff@@YAXXZ|
25 |?IntOff@@YAXXZ| PROC ; IntOff
34 ENDP ; |?IntOff@@YAXXZ|, IntOff
37 EXPORT |?DRAMloader@@YAXI@Z| ; DRAMloader
39 |$T237| DCD |?DRAMloader@@YAXI@Z|
42 |?DRAMloader@@YAXI@Z| PROC ; DRAMloader
44 stmdb sp!, {r0} ; stmfd
45 stmdb sp!, {r12, lr} ; stmfd
48 ldr r3, [sp, #0xC] ; 0xC = 12
52 mcr p15, 0, r0, c7, c10, 4 ; Enable access
53 mrc p15, 0, r0, c2, c0, 0
55 mrc p15, 0, r3, c1, c0, 0 ;/* disable the MMU */
56 and r3, r3, #0xfffffffe ; xscale says p needs to be 0 ???
58 mcr p15, 0, r3, c1, c0, 0 ;/* disable the MMU */
60 mrc p15, 0, r0, c2, c0, 0
63 mov pc,r1 ; GO GO GO GO GO
64 ; can't get here ??? -- jw, 20030517
66 ldmia sp, {sp, pc} ; ldmfd
68 ENDP ; |?DRAMloader@@YAXI@Z|, DRAMloader