summaryrefslogtreecommitdiff
path: root/agbx/source/key/getkeymap.s
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/source/key/getkeymap.s')
-rw-r--r--agbx/source/key/getkeymap.s7
1 files changed, 3 insertions, 4 deletions
diff --git a/agbx/source/key/getkeymap.s b/agbx/source/key/getkeymap.s
index e433f04..38c6dbe 100644
--- a/agbx/source/key/getkeymap.s
+++ b/agbx/source/key/getkeymap.s
@@ -10,15 +10,14 @@
.globl agbx_getkeymap
.func
-
.thumb_func
agbx_getkeymap:
@ Load the keys:
- ldr r0,.addr
- ldrh r0,[r0]
+ ldr r0,.addr @ agbx_i20 addr = 0x4000130u;
+ ldrh r0,[r0] @ agbx_keymap keymap = *(agbx_i10 *)addr;
- bx lr
+ bx lr @ return keymap;
.endfunc