pokecrystal/macros/move_anim.asm

295 lines
4.7 KiB
NASM
Raw Normal View History

2015-01-20 08:01:23 +00:00
anim_wait: macro
if \1 >= $d0
flip out
endc
db \1
endm
; BattleAnimCommands indexes (see battle/anim_commands.asm)
enum_start $d0
enum anim_obj_command ; d0
2015-01-20 08:01:23 +00:00
anim_obj: macro
db anim_obj_command
2015-01-20 08:01:23 +00:00
db \1 ; obj
2015-12-24 03:51:50 +00:00
db (\2 << 3) + \3 ; x
db (\4 << 3) + \5 ; y
db \6 ; param
2015-01-20 08:01:23 +00:00
endm
enum anim_1gfx_command ; d1
2015-01-20 08:01:23 +00:00
anim_1gfx: macro
db anim_1gfx_command
2015-01-20 08:01:23 +00:00
db \1 ; gfx1
endm
enum anim_2gfx_command ; d2
2015-01-20 08:01:23 +00:00
anim_2gfx: macro
db anim_2gfx_command
2015-01-20 08:01:23 +00:00
db \1 ; gfx1
db \2 ; gfx2
endm
enum anim_3gfx_command ; d3
2015-01-20 08:01:23 +00:00
anim_3gfx: macro
db anim_3gfx_command
2015-01-20 08:01:23 +00:00
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
endm
enum anim_4gfx_command ; d4
2015-01-20 08:01:23 +00:00
anim_4gfx: macro
db anim_4gfx_command
2015-01-20 08:01:23 +00:00
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
db \4 ; gfx4
endm
enum anim_5gfx_command ; d5
2015-01-20 08:01:23 +00:00
anim_5gfx: macro
db anim_5gfx_command
2015-01-20 08:01:23 +00:00
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
db \4 ; gfx4
db \5 ; gfx5
endm
enum anim_incobj_command ; d6
2015-01-20 08:01:23 +00:00
anim_incobj: macro
db anim_incobj_command
2015-01-20 08:01:23 +00:00
db \1 ; id
endm
enum anim_setobj_command ; d7
2015-01-20 08:01:23 +00:00
anim_setobj: macro
db anim_setobj_command
2015-01-20 08:01:23 +00:00
db \1 ; id
db \2 ; obj
endm
enum anim_incbgeffect_command ; d8
2015-01-20 08:01:23 +00:00
anim_incbgeffect: macro
db anim_incbgeffect_command
2015-01-20 08:01:23 +00:00
db \1 ; effect
endm
enum anim_enemyfeetobj_command ; d9
2015-01-20 08:01:23 +00:00
anim_enemyfeetobj: macro
db anim_enemyfeetobj_command
2015-01-20 08:01:23 +00:00
endm
enum anim_playerheadobj_command ; da
2015-01-20 08:01:23 +00:00
anim_playerheadobj: macro
db anim_playerheadobj_command
2015-01-20 08:01:23 +00:00
endm
enum anim_checkpokeball_command ; db
2015-01-20 08:01:23 +00:00
anim_checkpokeball: macro
db anim_checkpokeball_command
2015-01-20 08:01:23 +00:00
endm
enum anim_transform_command ; dc
2015-01-20 08:01:23 +00:00
anim_transform: macro
db anim_transform_command
2015-01-20 08:01:23 +00:00
endm
enum anim_raisesub_command ; dd
2015-01-20 08:01:23 +00:00
anim_raisesub: macro
db anim_raisesub_command
2015-01-20 08:01:23 +00:00
endm
enum anim_dropsub_command ; de
2015-01-20 08:01:23 +00:00
anim_dropsub: macro
db anim_dropsub_command
2015-01-20 08:01:23 +00:00
endm
enum anim_resetobp0_command ; df
2015-01-20 08:01:23 +00:00
anim_resetobp0: macro
db anim_resetobp0_command
2015-01-20 08:01:23 +00:00
endm
enum anim_sound_command ; e0
2015-01-20 08:01:23 +00:00
anim_sound: macro
db anim_sound_command
2015-12-23 22:10:50 +00:00
db (\1 << 2) | \2 ; duration, tracks
db \3 ; id
2015-01-20 08:01:23 +00:00
endm
enum anim_cry_command ; e1
2015-01-20 08:01:23 +00:00
anim_cry: macro
db anim_cry_command
2015-01-20 08:01:23 +00:00
db \1 ; pitch
endm
enum anim_minimizeopp_command ; e2
2015-01-20 08:01:23 +00:00
anim_minimizeopp: macro
db anim_minimizeopp_command
2015-01-20 08:01:23 +00:00
endm
enum anim_oamon_command ; e3
2015-01-20 08:01:23 +00:00
anim_oamon: macro
db anim_oamon_command
2015-01-20 08:01:23 +00:00
endm
enum anim_oamoff_command ; e4
2015-01-20 08:01:23 +00:00
anim_oamoff: macro
db anim_oamoff_command
2015-01-20 08:01:23 +00:00
endm
enum anim_clearobjs_command ; e5
2015-01-20 08:01:23 +00:00
anim_clearobjs: macro
db anim_clearobjs_command
2015-01-20 08:01:23 +00:00
endm
enum anim_beatup_command ; e6
2015-01-20 08:01:23 +00:00
anim_beatup: macro
db anim_beatup_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xe7_command ; e7
2015-01-20 08:01:23 +00:00
anim_0xe7: macro
db anim_0xe7_command
2015-01-20 08:01:23 +00:00
endm
enum anim_updateactorpic_command ; e8
2015-01-20 08:01:23 +00:00
anim_updateactorpic: macro
db anim_updateactorpic_command
2015-01-20 08:01:23 +00:00
endm
enum anim_minimize_command ; e9
2015-01-20 08:01:23 +00:00
anim_minimize: macro
db anim_minimize_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xea_command ; ea
2015-01-20 08:01:23 +00:00
anim_0xea: macro
db anim_0xea_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xeb_command ; eb
2015-01-20 08:01:23 +00:00
anim_0xeb: macro
db anim_0xeb_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xec_command ; ec
2015-01-20 08:01:23 +00:00
anim_0xec: macro
db anim_0xec_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xed_command ; ed
2015-01-20 08:01:23 +00:00
anim_0xed: macro
db anim_0xed_command
2015-01-20 08:01:23 +00:00
endm
2016-05-05 19:07:37 +00:00
enum anim_if_param_and_command ; ee
anim_if_param_and: macro
db anim_if_param_and_command
2015-01-20 08:01:23 +00:00
db \1 ; value
dw \2 ; address
endm
enum anim_jumpuntil_command ; ef
2015-01-20 08:01:23 +00:00
anim_jumpuntil: macro
db anim_jumpuntil_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
endm
enum anim_bgeffect_command ; f0
2015-01-20 08:01:23 +00:00
anim_bgeffect: macro
db anim_bgeffect_command
2015-01-20 08:01:23 +00:00
db \1 ; effect
db \2 ; unknown
db \3 ; unknown
db \4 ; unknown
endm
enum anim_bgp_command ; f1
2015-01-20 08:01:23 +00:00
anim_bgp: macro
db anim_bgp_command
2015-01-20 08:01:23 +00:00
db \1 ; colors
endm
enum anim_obp0_command ; f2
2015-01-20 08:01:23 +00:00
anim_obp0: macro
db anim_obp0_command
2015-01-20 08:01:23 +00:00
db \1 ; colors
endm
enum anim_obp1_command ; f3
2015-01-20 08:01:23 +00:00
anim_obp1: macro
db anim_obp1_command
2015-01-20 08:01:23 +00:00
db \1 ; colors
endm
enum anim_clearsprites_command ; f4
2015-01-20 08:01:23 +00:00
anim_clearsprites: macro
db anim_clearsprites_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xf5_command ; f5
2015-01-20 08:01:23 +00:00
anim_0xf5: macro
db anim_0xf5_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xf6_command ; f6
2015-01-20 08:01:23 +00:00
anim_0xf6: macro
db anim_0xf6_command
2015-01-20 08:01:23 +00:00
endm
enum anim_0xf7_command ; f7
2015-01-20 08:01:23 +00:00
anim_0xf7: macro
db anim_0xf7_command
2015-01-20 08:01:23 +00:00
endm
2016-05-05 19:07:37 +00:00
enum anim_if_param_equal_command ; f8
anim_if_param_equal: macro
db anim_if_param_equal_command
2015-01-20 08:01:23 +00:00
db \1 ; value
dw \2 ; address
endm
enum anim_setvar_command ; f9
2015-01-20 08:01:23 +00:00
anim_setvar: macro
db anim_setvar_command
2015-01-20 08:01:23 +00:00
db \1 ; value
endm
enum anim_incvar_command ; fa
2015-01-20 08:01:23 +00:00
anim_incvar: macro
db anim_incvar_command
2015-01-20 08:01:23 +00:00
endm
2016-05-05 19:07:37 +00:00
enum anim_if_var_equal_command ; fb
anim_if_var_equal: macro
db anim_if_var_equal_command
2015-01-20 08:01:23 +00:00
db \1 ; value
dw \2 ; address
endm
enum anim_jump_command ; fc
2015-01-20 08:01:23 +00:00
anim_jump: macro
db anim_jump_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
endm
enum anim_loop_command ; fd
2015-01-20 08:01:23 +00:00
anim_loop: macro
db anim_loop_command
2015-01-20 08:01:23 +00:00
db \1 ; count
dw \2 ; address
endm
enum anim_call_command ; fe
2015-01-20 08:01:23 +00:00
anim_call: macro
db anim_call_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
endm
enum anim_ret_command ; ff
2015-01-20 08:01:23 +00:00
anim_ret: macro
db anim_ret_command
2015-01-20 08:01:23 +00:00
endm