2017-12-12 10:22:19 -08:00
|
|
|
; MovementPointers indexes (see engine/movement.asm)
|
2015-07-15 12:48:44 -07:00
|
|
|
enum_start
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
; Directional movements
|
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_turn_head ; $00
|
2017-12-28 04:23:44 -08:00
|
|
|
turn_head: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_turn_head | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_turn_step ; $04
|
2017-12-28 04:23:44 -08:00
|
|
|
turn_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_turn_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_slow_step ; $08
|
2017-12-28 04:23:44 -08:00
|
|
|
slow_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_slow_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step ; $0c
|
2017-12-28 04:23:44 -08:00
|
|
|
step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_big_step ; $10
|
2017-12-28 04:23:44 -08:00
|
|
|
big_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_big_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_slow_slide_step ; $14
|
2017-12-28 04:23:44 -08:00
|
|
|
slow_slide_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_slow_slide_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_slide_step ; $18
|
2017-12-28 04:23:44 -08:00
|
|
|
slide_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_slide_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_fast_slide_step ; $1c
|
2017-12-28 04:23:44 -08:00
|
|
|
fast_slide_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_fast_slide_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_turn_away ; $20
|
2017-12-28 04:23:44 -08:00
|
|
|
turn_away: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_turn_away | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_turn_in ; $24
|
2017-12-28 04:23:44 -08:00
|
|
|
turn_in: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_turn_in | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_turn_waterfall ; $28
|
2017-12-28 04:23:44 -08:00
|
|
|
turn_waterfall: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_turn_waterfall | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_slow_jump_step ; $2c
|
2017-12-28 04:23:44 -08:00
|
|
|
slow_jump_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_slow_jump_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_jump_step ; $30
|
2017-12-28 04:23:44 -08:00
|
|
|
jump_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_jump_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_fast_jump_step ; $34
|
2017-12-28 04:23:44 -08:00
|
|
|
fast_jump_step: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_fast_jump_step | \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
; Control
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_remove_sliding ; $38
|
2017-12-28 04:23:44 -08:00
|
|
|
remove_sliding: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_remove_sliding
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2016-03-01 19:31:21 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_set_sliding ; $39
|
2017-12-28 04:23:44 -08:00
|
|
|
set_sliding: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_set_sliding
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-15 12:48:44 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_remove_fixed_facing ; $3a
|
2017-12-28 04:23:44 -08:00
|
|
|
remove_fixed_facing: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_remove_fixed_facing
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_fix_facing ; $3b
|
2017-12-28 04:23:44 -08:00
|
|
|
fix_facing: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_fix_facing
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
enum movement_show_object ; $3c
|
2017-12-28 04:23:44 -08:00
|
|
|
show_object: MACRO
|
2017-12-24 10:46:34 -08:00
|
|
|
db movement_show_object
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-15 12:48:44 -07:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
enum movement_hide_object ; $3d
|
2017-12-28 04:23:44 -08:00
|
|
|
hide_object: MACRO
|
2017-12-24 10:46:34 -08:00
|
|
|
db movement_hide_object
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
; Sleep
|
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_sleep ; $3e
|
2017-12-28 04:23:44 -08:00
|
|
|
step_sleep: MACRO
|
2016-05-14 09:28:00 -07:00
|
|
|
if \1 <= 8
|
|
|
|
db movement_step_sleep + \1 - 1
|
|
|
|
else
|
|
|
|
db movement_step_sleep + 8, \1
|
|
|
|
endc
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2016-05-14 09:28:00 -07:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 8
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_end ; $47
|
2017-12-28 04:23:44 -08:00
|
|
|
step_end: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_end
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_48 ; $48
|
2017-12-28 04:23:44 -08:00
|
|
|
step_48: MACRO
|
2016-07-29 07:48:27 -07:00
|
|
|
db movement_step_48
|
2017-12-14 21:38:52 -08:00
|
|
|
db \1 ; ???
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-15 12:48:44 -07:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
enum movement_remove_object ; $49
|
2017-12-28 04:23:44 -08:00
|
|
|
remove_object: MACRO
|
2017-12-24 10:46:34 -08:00
|
|
|
db movement_remove_object
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_loop ; $4a
|
2017-12-28 04:23:44 -08:00
|
|
|
step_loop: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_loop
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_4b ; $4b
|
2017-12-28 04:23:44 -08:00
|
|
|
step_4b: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_4b
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-15 12:48:44 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_teleport_from ; $4c
|
2017-12-28 04:23:44 -08:00
|
|
|
teleport_from: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_teleport_from
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_teleport_to ; $4d
|
2017-12-28 04:23:44 -08:00
|
|
|
teleport_to: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_teleport_to
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_skyfall ; $4e
|
2017-12-28 04:23:44 -08:00
|
|
|
skyfall: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_skyfall
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_dig ; $4f
|
2017-12-28 04:23:44 -08:00
|
|
|
step_dig: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_dig
|
|
|
|
db \1 ; length
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_bump ; $50
|
2017-12-28 04:23:44 -08:00
|
|
|
step_bump: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_bump
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-18 20:45:39 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_fish_got_bite ; $51
|
2017-12-28 04:23:44 -08:00
|
|
|
fish_got_bite: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_fish_got_bite
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-18 20:45:39 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_fish_cast_rod ; $52
|
2017-12-28 04:23:44 -08:00
|
|
|
fish_cast_rod: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_fish_cast_rod
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-15 12:48:44 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_hide_emote ; $53
|
2017-12-28 04:23:44 -08:00
|
|
|
hide_emote: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_hide_emote
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_show_emote ; $54
|
2017-12-28 04:23:44 -08:00
|
|
|
show_emote: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_show_emote
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_step_shake ; $55
|
2017-12-28 04:23:44 -08:00
|
|
|
step_shake: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_step_shake
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; displacement
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_tree_shake ; $56
|
2017-12-28 04:23:44 -08:00
|
|
|
tree_shake: MACRO
|
2016-04-10 10:47:24 -07:00
|
|
|
db movement_tree_shake
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2016-04-10 10:47:24 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_rock_smash ; $57
|
2017-12-28 04:23:44 -08:00
|
|
|
rock_smash: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_rock_smash
|
|
|
|
db \1 ; length
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-11-15 18:28:15 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_return_dig ; $58
|
2017-12-28 04:23:44 -08:00
|
|
|
return_dig: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_return_dig
|
|
|
|
db \1 ; length
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-12-15 07:55:56 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum movement_skyfall_top ; $59
|
2017-12-28 04:23:44 -08:00
|
|
|
skyfall_top: MACRO
|
2017-12-14 21:38:52 -08:00
|
|
|
db movement_skyfall_top
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|