From 29aff84107a6463a94f0d7d81de8a1603e0d741f Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 17 Sep 2014 12:35:51 -0700 Subject: Enumerate move constants and add unnamed animation constants. --- macros.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'macros.asm') diff --git a/macros.asm b/macros.asm index 52518d47..ca2dc82d 100644 --- a/macros.asm +++ b/macros.asm @@ -14,6 +14,17 @@ dex EQUS "db $5f, $50" ; End a Pokedex entry. percent EQUS "* $ff / 100" +; Constant enumeration is useful for monsters, items, moves, etc. +const_def: MACRO +const_value = 0 +ENDM + +const: MACRO +\1 EQU const_value +const_value = const_value + 1 +ENDM + + homecall: MACRO ld a, [H_LOADEDROMBANK] push af -- cgit v1.3.1-sl0p