summaryrefslogtreecommitdiff
path: root/asm/macros/ec.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm/macros/ec.s')
-rw-r--r--asm/macros/ec.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/asm/macros/ec.s b/asm/macros/ec.s
new file mode 100644
index 000000000..a70b8e244
--- /dev/null
+++ b/asm/macros/ec.s
@@ -0,0 +1,19 @@
+ .macro ec_word word
+ .2byte EC_WORD_\word
+ .endm
+
+ .macro ec_move1 name
+ .2byte (EC_GROUP_MOVE_1 << 9) | MOVE_\name
+ .endm
+
+ .macro ec_move2 name
+ .2byte (EC_GROUP_MOVE_2 << 9) | MOVE_\name
+ .endm
+
+ .macro ec_pokemon1 name
+ .2byte (EC_GROUP_POKEMON << 9) | SPECIES_\name
+ .endm
+
+ .macro ec_pokemon2 name
+ .2byte (EC_GROUP_POKEMON2 << 9) | SPECIES_\name
+ .endm