npc_clear_ids_and_state
This commit is contained in:
@@ -5,25 +5,6 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
thumb_func_start npc_clear_ids_and_state
|
|
||||||
npc_clear_ids_and_state: @ 808D3F0
|
|
||||||
push {r4,lr}
|
|
||||||
adds r4, r0, 0
|
|
||||||
movs r1, 0
|
|
||||||
movs r2, 0x24
|
|
||||||
bl memset
|
|
||||||
movs r0, 0xFF
|
|
||||||
strb r0, [r4, 0x8]
|
|
||||||
movs r0, 0x1
|
|
||||||
negs r0, r0
|
|
||||||
strb r0, [r4, 0x9]
|
|
||||||
strb r0, [r4, 0xA]
|
|
||||||
strb r0, [r4, 0x1C]
|
|
||||||
pop {r4}
|
|
||||||
pop {r0}
|
|
||||||
bx r0
|
|
||||||
thumb_func_end npc_clear_ids_and_state
|
|
||||||
|
|
||||||
thumb_func_start npcs_clear_ids_and_state
|
thumb_func_start npcs_clear_ids_and_state
|
||||||
npcs_clear_ids_and_state: @ 808D410
|
npcs_clear_ids_and_state: @ 808D410
|
||||||
push {r4,r5,lr}
|
push {r4,r5,lr}
|
||||||
|
|||||||
@@ -9,6 +9,11 @@
|
|||||||
// to help in decompiling
|
// to help in decompiling
|
||||||
#define asm_comment(x) asm volatile("@ -- " x " -- ")
|
#define asm_comment(x) asm volatile("@ -- " x " -- ")
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
void memset(void *, int, size_t);
|
||||||
|
void memcpy(void *, const void *, size_t);
|
||||||
|
#endif // __APPLE__
|
||||||
|
|
||||||
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
|
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
|
||||||
|
|
||||||
#define POKEMON_NAME_LENGTH 10
|
#define POKEMON_NAME_LENGTH 10
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ SECTIONS {
|
|||||||
asm/field_camera.o(.text);
|
asm/field_camera.o(.text);
|
||||||
asm/field_door.o(.text);
|
asm/field_door.o(.text);
|
||||||
asm/field_player_avatar.o(.text);
|
asm/field_player_avatar.o(.text);
|
||||||
|
src/field_map_obj.o(.text);
|
||||||
asm/field_map_obj.o(.text);
|
asm/field_map_obj.o(.text);
|
||||||
asm/field_ground_effect.o(.text);
|
asm/field_ground_effect.o(.text);
|
||||||
asm/map_obj_8097404.o(.text);
|
asm/map_obj_8097404.o(.text);
|
||||||
|
|||||||
+8
-1
@@ -13,4 +13,11 @@
|
|||||||
|
|
||||||
// Code
|
// Code
|
||||||
|
|
||||||
|
void npc_clear_ids_and_state(struct MapObject *mapObject)
|
||||||
|
{
|
||||||
|
memset(mapObject, 0, sizeof(struct MapObject));
|
||||||
|
mapObject->localId = 0xFF;
|
||||||
|
mapObject->mapNum = -1;
|
||||||
|
mapObject->mapGroup = -1;
|
||||||
|
mapObject->mapobj_unk_1C = -1;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user