diff options
Diffstat (limited to 'asm/readKeyInput.s')
| -rw-r--r-- | asm/readKeyInput.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/asm/readKeyInput.s b/asm/readKeyInput.s new file mode 100644 index 00000000..eca09890 --- /dev/null +++ b/asm/readKeyInput.s @@ -0,0 +1,21 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start ReadKeyInput +ReadKeyInput: @ 0x0801D6C0 + push {lr} + ldr r0, _0801D6D4 @ =0x04000130 + ldrh r0, [r0] + ldr r1, _0801D6D8 @ =0x000003FF + bics r1, r0 + ldr r0, _0801D6DC @ =gUnk_03000FF0 + bl sub_0801D6E0 + pop {pc} + .align 2, 0 +_0801D6D4: .4byte 0x04000130 +_0801D6D8: .4byte 0x000003FF +_0801D6DC: .4byte gUnk_03000FF0 |
