pokeheartgold/asm/overlay_35.s

48 lines
943 B
ArmAsm
Raw Normal View History

.include "asm/macros.inc"
2023-01-27 22:42:00 +00:00
.include "overlay_35.inc"
.include "global.inc"
.text
2021-06-18 12:29:26 +00:00
2021-06-24 22:41:22 +00:00
thumb_func_start ov35_02259D80
2021-06-27 18:48:56 +00:00
ov35_02259D80: ; 0x02259D80
2021-06-18 12:29:26 +00:00
push {r3, lr}
cmp r1, #5
bhi _02259DB4
2021-06-27 18:48:56 +00:00
add r1, r1, r1
2021-06-18 12:29:26 +00:00
add r1, pc
ldrh r1, [r1, #6]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #0x10
asr r1, r1, #0x10
2021-06-18 12:29:26 +00:00
add pc, r1
2021-06-27 18:48:56 +00:00
_02259D92: ; jump table
.short _02259DB4 - _02259D92 - 2 ; case 0
.short _02259D9E - _02259D92 - 2 ; case 1
.short _02259DB4 - _02259D92 - 2 ; case 2
.short _02259DB4 - _02259D92 - 2 ; case 3
.short _02259DA4 - _02259D92 - 2 ; case 4
.short _02259DB4 - _02259D92 - 2 ; case 5
2021-06-18 12:29:26 +00:00
_02259D9E:
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-18 12:29:26 +00:00
strb r1, [r0, #4]
pop {r3, pc}
_02259DA4:
ldrb r1, [r0, #2]
cmp r1, #2
bne _02259DB4
ldr r1, [r0, #0x44]
cmp r1, #0
beq _02259DB4
ldr r0, [r0, #0x48]
2021-06-27 21:10:38 +00:00
blx r1
2021-06-18 12:29:26 +00:00
_02259DB4:
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:41:22 +00:00
thumb_func_end ov35_02259D80
thumb_func_start ov35_02259DB8
2021-06-27 18:48:56 +00:00
ov35_02259DB8: ; 0x02259DB8
2021-06-24 22:41:22 +00:00
ldrb r0, [r0, #3]
bx lr
thumb_func_end ov35_02259DB8