an_look_any simple
This commit is contained in:
@@ -5,80 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start an_look_any
|
||||
@ void an_look_any(struct npc_state *fieldObject, struct obj *object, u8 direction)
|
||||
an_look_any: @ 809390C
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
adds r5, r1, 0
|
||||
lsls r1, r2, 24
|
||||
lsrs r1, 24
|
||||
bl FieldObjectSetDirection
|
||||
adds r0, r4, 0
|
||||
bl npc_coords_shift_still
|
||||
ldrb r0, [r4, 0x18]
|
||||
lsls r0, 28
|
||||
lsrs r0, 28
|
||||
bl get_go_image_anim_num
|
||||
adds r2, r0, 0
|
||||
lsls r2, 24
|
||||
lsrs r2, 24
|
||||
adds r0, r4, 0
|
||||
adds r1, r5, 0
|
||||
bl obj_npc_animation_step
|
||||
adds r2, r5, 0
|
||||
adds r2, 0x2C
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x40
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
movs r0, 0x1
|
||||
strh r0, [r5, 0x32]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end an_look_any
|
||||
|
||||
thumb_func_start sub_8093950
|
||||
sub_8093950: @ 8093950
|
||||
push {lr}
|
||||
movs r2, 0x1
|
||||
bl an_look_any
|
||||
movs r0, 0x1
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_8093950
|
||||
|
||||
thumb_func_start sub_8093960
|
||||
sub_8093960: @ 8093960
|
||||
push {lr}
|
||||
movs r2, 0x2
|
||||
bl an_look_any
|
||||
movs r0, 0x1
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_8093960
|
||||
|
||||
thumb_func_start sub_8093970
|
||||
sub_8093970: @ 8093970
|
||||
push {lr}
|
||||
movs r2, 0x3
|
||||
bl an_look_any
|
||||
movs r0, 0x1
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_8093970
|
||||
|
||||
thumb_func_start sub_8093980
|
||||
sub_8093980: @ 8093980
|
||||
push {lr}
|
||||
movs r2, 0x4
|
||||
bl an_look_any
|
||||
movs r0, 0x1
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_8093980
|
||||
|
||||
thumb_func_start npc_apply_direction
|
||||
@ void npc_apply_direction(struct npc_state *fieldObject, struct obj *object, u8 direction, u8 speed)
|
||||
npc_apply_direction: @ 8093990
|
||||
|
||||
Reference in New Issue
Block a user