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