Sound4Calc/src/syscall.s

48 lines
783 B
ArmAsm

.global _Keyboard_GetKey
.type _Keyboard_GetKey, @function
_Keyboard_GetKey:
mov.l sc_addr, r2
mov.l 1f, r0
jmp @r2
nop
1: .long 0x247
.global _Keyboard_GetPressedKey
.type _Keyboard_GetPressedKey, @function
_Keyboard_GetPressedKey:
mov.l sc_addr, r2
mov.l 2f, r0
jmp @r2
nop
2: .long 0x24A
.global _Keyboard_IsKeyPressed
.type _Keyboard_IsKeyPressed, @function
_Keyboard_IsKeyPressed:
mov.l sc_addr, r2
mov.l 3f, r0
jmp @r2
nop
3: .long 0x24B
.global _Keyboard_KeyDown
.type _Keyboard_KeyDown, @function
_Keyboard_KeyDown:
mov.l sc_addr, r2
mov.l 4f, r0
jmp @r2
nop
4: .long 0x24D
.global _Keyboard_ClrBuffer
.type _Keyboard_ClrBuffer, @function
_Keyboard_ClrBuffer:
mov.l sc_addr, r2
mov.l 5f, r0
jmp @r2
nop
5: .long 0x241
sc_addr:
.long 0x80010070