summaryrefslogtreecommitdiff
path: root/asm/readKeyInput.s
diff options
context:
space:
mode:
authortheo <arisstephenson2@gmail.com>2020-05-18 16:22:11 -0700
committertheo <arisstephenson2@gmail.com>2020-05-18 16:22:11 -0700
commitcfc757cd5829ebe138884febd57568e2a8db23ed (patch)
tree6fb839eb4bd06a36bffd58a8cb7d7b2be527b535 /asm/readKeyInput.s
parent1e34d9fcc6c2a5b3d2300eb0f227d567328086d0 (diff)
including ommitted files
Diffstat (limited to 'asm/readKeyInput.s')
-rw-r--r--asm/readKeyInput.s21
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