2021-09-08 18:18:20 +00:00
|
|
|
.include "asm/macros.inc"
|
|
|
|
.include "global.inc"
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start Sav2_FollowPoke_sizeof
|
|
|
|
Sav2_FollowPoke_sizeof: ; 0x0202ED18
|
2021-09-08 18:18:20 +00:00
|
|
|
mov r0, #8
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end Sav2_FollowPoke_sizeof
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start Sav2_FollowPoke_init
|
|
|
|
Sav2_FollowPoke_init: ; 0x0202ED1C
|
2021-09-08 18:18:20 +00:00
|
|
|
mov r1, #0
|
|
|
|
strb r1, [r0]
|
|
|
|
strb r1, [r0, #1]
|
|
|
|
strb r1, [r0, #2]
|
|
|
|
strb r1, [r0, #3]
|
|
|
|
strb r1, [r0, #4]
|
|
|
|
strb r1, [r0, #5]
|
|
|
|
strb r1, [r0, #6]
|
|
|
|
strb r1, [r0, #7]
|
|
|
|
str r1, [r0]
|
|
|
|
bx lr
|
|
|
|
.balign 4, 0
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end Sav2_FollowPoke_init
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start Sav2_FollowPoke_get
|
|
|
|
Sav2_FollowPoke_get: ; 0x0202ED34
|
2021-09-08 18:18:20 +00:00
|
|
|
ldr r3, _0202ED3C ; =SavArray_get
|
|
|
|
mov r1, #0x21
|
|
|
|
bx r3
|
|
|
|
nop
|
|
|
|
_0202ED3C: .word SavArray_get
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end Sav2_FollowPoke_get
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start SavFollowPoke_SetMapId
|
|
|
|
SavFollowPoke_SetMapId: ; 0x0202ED40
|
2021-09-08 18:18:20 +00:00
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end SavFollowPoke_SetMapId
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start SavFollowPoke_GetMapId
|
|
|
|
SavFollowPoke_GetMapId: ; 0x0202ED44
|
2021-09-08 18:18:20 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end SavFollowPoke_GetMapId
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start SavFollowPoke_SetUnused2bitField
|
|
|
|
SavFollowPoke_SetUnused2bitField: ; 0x0202ED48
|
2021-09-08 18:18:20 +00:00
|
|
|
ldr r3, [r1, #4]
|
|
|
|
mov r2, #3
|
|
|
|
bic r3, r2
|
|
|
|
mov r2, #3
|
|
|
|
and r0, r2
|
|
|
|
orr r0, r3
|
|
|
|
str r0, [r1, #4]
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end SavFollowPoke_SetUnused2bitField
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start SavFollowPoke_SetInhibitFlagState
|
|
|
|
SavFollowPoke_SetInhibitFlagState: ; 0x0202ED58
|
2021-09-08 18:18:20 +00:00
|
|
|
ldr r3, [r0, #4]
|
|
|
|
mov r2, #4
|
|
|
|
lsl r1, r1, #0x1f
|
|
|
|
bic r3, r2
|
|
|
|
lsr r1, r1, #0x1d
|
|
|
|
orr r1, r3
|
|
|
|
str r1, [r0, #4]
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end SavFollowPoke_SetInhibitFlagState
|
2021-09-08 18:18:20 +00:00
|
|
|
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_start SavFollowPoke_GetInhibitFlagState
|
|
|
|
SavFollowPoke_GetInhibitFlagState: ; 0x0202ED68
|
2021-09-08 18:18:20 +00:00
|
|
|
ldr r0, [r0, #4]
|
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
asr r0, r0, #0x1f
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
|
|
|
bx lr
|
2022-02-09 20:31:59 +00:00
|
|
|
thumb_func_end SavFollowPoke_GetInhibitFlagState
|