diff options
Diffstat (limited to 'asm/code_8012A18.s')
-rw-r--r-- | asm/code_8012A18.s | 172 |
1 files changed, 0 insertions, 172 deletions
diff --git a/asm/code_8012A18.s b/asm/code_8012A18.s index 90b3ebd..c430037 100644 --- a/asm/code_8012A18.s +++ b/asm/code_8012A18.s @@ -5,178 +5,6 @@ .text - thumb_func_start GetKeyPress -GetKeyPress: - push {lr} - adds r1, r0, 0 - cmp r1, 0 - beq _08012ADE - adds r0, 0x29 - ldrb r0, [r0] - cmp r0, 0 - beq _08012AB4 - movs r0, 0x1 - b _08012AE2 -_08012AB4: - adds r0, r1, 0 - adds r0, 0x2A - ldrb r0, [r0] - cmp r0, 0 - beq _08012AC2 - movs r0, 0x2 - b _08012AE2 -_08012AC2: - adds r0, r1, 0 - adds r0, 0x2C - ldrb r0, [r0] - cmp r0, 0 - beq _08012AD0 - movs r0, 0x9 - b _08012AE2 -_08012AD0: - adds r0, r1, 0 - adds r0, 0x2B - ldrb r0, [r0] - cmp r0, 0 - beq _08012ADE - movs r0, 0xA - b _08012AE2 -_08012ADE: - bl sub_8012AE8 -_08012AE2: - pop {r1} - bx r1 - thumb_func_end GetKeyPress - - thumb_func_start sub_8012AE8 -sub_8012AE8: - push {lr} - ldr r2, _08012B08 - ldrh r1, [r2] - movs r3, 0x80 - lsls r3, 1 - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08012B4A - ldrh r1, [r2, 0x2] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _08012B0C - movs r0, 0xB - b _08012BBE - .align 2, 0 -_08012B08: .4byte gRealInputs -_08012B0C: - ldrh r1, [r2, 0x4] - movs r0, 0x40 - ands r0, r1 - cmp r0, 0 - beq _08012B1A - movs r0, 0xC - b _08012BBE -_08012B1A: - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _08012B26 - movs r0, 0xD - b _08012BBE -_08012B26: - movs r0, 0x20 - ands r0, r1 - cmp r0, 0 - beq _08012B32 - movs r0, 0xE - b _08012BBE -_08012B32: - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - beq _08012B3E - movs r0, 0xF - b _08012BBE -_08012B3E: - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08012BBC - movs r0, 0x6 - b _08012BBE -_08012B4A: - ldrh r1, [r2, 0x2] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _08012B58 - movs r0, 0x1 - b _08012BBE -_08012B58: - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _08012B64 - movs r0, 0x2 - b _08012BBE -_08012B64: - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _08012B70 - movs r0, 0x3 - b _08012BBE -_08012B70: - movs r0, 0x8 - ands r0, r1 - cmp r0, 0 - beq _08012B7C - movs r0, 0x4 - b _08012BBE -_08012B7C: - ldrh r1, [r2, 0x4] - movs r0, 0x40 - ands r0, r1 - cmp r0, 0 - beq _08012B8A - movs r0, 0x7 - b _08012BBE -_08012B8A: - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _08012B96 - movs r0, 0x8 - b _08012BBE -_08012B96: - movs r0, 0x20 - ands r0, r1 - cmp r0, 0 - beq _08012BA2 - movs r0, 0x9 - b _08012BBE -_08012BA2: - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - beq _08012BAE - movs r0, 0xA - b _08012BBE -_08012BAE: - movs r0, 0x80 - lsls r0, 2 - ands r0, r1 - cmp r0, 0 - beq _08012BBC - movs r0, 0x5 - b _08012BBE -_08012BBC: - movs r0, 0 -_08012BBE: - pop {r1} - bx r1 - thumb_func_end sub_8012AE8 - thumb_func_start sub_8012BC4 sub_8012BC4: push {r4-r7,lr} |