summaryrefslogtreecommitdiff
path: root/macros/scripts/gfx_anims.asm
blob: a3fa710a060925431c95621abaeb94cb1cbb1d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
; pic + oam animations

frame: macro
	db \1
x = \2
if _NARG > 2
rept _NARG +- 2
x = x | (1 << (\3 + 1))
	shift
endr
endc
	db x
	endm

	enum_start $fc

	enum delanim_command ; $fc
delanim: macro ; used for oam
	db delanim_command
	endm

	enum dorepeat_command ; $fd
dorepeat: macro
	db dorepeat_command
	db \1 ; #
	endm

	enum setrepeat_command ; $fe
setrepeat: macro
	db setrepeat_command
	db \1 ; #
	endm

	enum endanim_command ; $ff
endanim: macro
	db endanim_command
	endm

__enum__ = $fe

	enum dorestart_command ; $fe
dorestart: macro ; used for oam
	db dorestart_command
	endm