diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-13 23:18:59 -0500 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-13 23:18:59 -0500 |
commit | afbc7deaea1d66d39331bc078d3f2e22cbdec0a3 (patch) | |
tree | 22cbd16fe6ddd64f686ecc02499ad648162bf964 /asm | |
parent | 453618864e685eacae640dc2b317a645422264e2 (diff) |
Decomped SetWalkAction()
Diffstat (limited to 'asm')
-rw-r--r-- | asm/code_8044CC8.s (renamed from asm/code_804ACA0.s) | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/asm/code_804ACA0.s b/asm/code_8044CC8.s index 7e25d6d..f5a3aca 100644 --- a/asm/code_804ACA0.s +++ b/asm/code_8044CC8.s @@ -1,34 +1,10 @@ #include "asm/constants/gba_constants.inc" - #include "asm/macros.inc" + #include "asm/macros.inc" - .syntax unified - - .text - - thumb_func_start SetWalkAction -SetWalkAction: - push {r4,lr} - adds r4, r0, 0 - lsls r0, r1, 16 - asrs r0, 16 - bl GetIsMoving - lsls r0, 24 - cmp r0, 0 - beq _08044CB6 - movs r0, 0x2 - b _08044CB8 -_08044CB6: - movs r0, 0x1 -_08044CB8: - strh r0, [r4] - movs r0, 0 - strb r0, [r4, 0x4] - strb r0, [r4, 0xC] - pop {r4} - pop {r0} - bx r0 - thumb_func_end SetWalkAction + .syntax unified + .text + thumb_func_start sub_8044CC8 sub_8044CC8: push {lr} |