diff options
Diffstat (limited to 'backends/gp32/cpuspeed.s')
-rw-r--r-- | backends/gp32/cpuspeed.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/backends/gp32/cpuspeed.s b/backends/gp32/cpuspeed.s new file mode 100644 index 0000000000..1e952c38cb --- /dev/null +++ b/backends/gp32/cpuspeed.s @@ -0,0 +1,23 @@ + + .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 |