aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32/cpuspeed.s
blob: 1e952c38cb4cee988a1c6ac7955e20032d8ca520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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