scummvm/backends/gp32/cpuspeed.s
Eugene Sandulenko b72df416a6 WIP of GP32 port. Now it is more correct port and compiles with current
CVS. Though it has some issues unresolved, one of them is that it crashes
right after splash screen without showing anything. Work in progress :)

svn-id: r17054
2005-03-09 22:21:57 +00:00

24 lines
350 B
ArmAsm

.ALIGN
.ARM
.GLOBAL cpu_speed
.GLOBAL mmu_change
cpu_speed:
stmdb r13!, {r0-r12,lr}
stmdb sp!, {r0, r1, r2}
mov r0, sp
swi #0x0d
add sp, sp, #12
ldmia r13!, {r0-r12,lr}
bx lr
nop
mmu_change:
stmdb r13!, {r0-r12,lr}
swi #0x02
ldmia r13!, {r0-r12,lr}
bx lr
nop