2020-02-05 21:09:39 +01:00
|
|
|
/*.global _test
|
2019-12-09 15:57:06 +01:00
|
|
|
.type _test, @function
|
|
|
|
|
|
|
|
.align 2
|
|
|
|
_test:
|
|
|
|
sts.l pr, @-r15
|
|
|
|
|
|
|
|
mov.l .syscall_vram, r0
|
|
|
|
mov.l .syscall_entry, r1
|
|
|
|
jsr @r1
|
|
|
|
nop
|
|
|
|
tst r0, r0
|
|
|
|
bf _test
|
|
|
|
nop
|
|
|
|
|
|
|
|
lds.l @r15+, pr
|
|
|
|
rts
|
|
|
|
nop
|
|
|
|
|
|
|
|
.align 4
|
|
|
|
.syscall_entry: .long 0xa0010070
|
|
|
|
.syscall_vram: .long 0x00000135
|
2020-02-05 21:09:39 +01:00
|
|
|
.end*/
|