mirror of
https://github.com/zeldaret/tmc
synced 2026-05-24 15:21:09 -04:00
22 lines
419 B
ArmAsm
22 lines
419 B
ArmAsm
.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
|