summaryrefslogtreecommitdiff
path: root/asm/macros/ec.s
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-10-20 18:59:47 -0700
committerYamaArashi <shadow962@live.com>2015-10-20 18:59:47 -0700
commit1e46fbec421c89c18e7abfc65b7b679f806f61fc (patch)
tree9082318ab9b238b944b6e1df6d4566c5d06031d8 /asm/macros/ec.s
parente17df124ff5d5870b97406a934da1b275f4b710a (diff)
parent45fc5763549a852c0729d15f0c41765d549d2c01 (diff)
Merge pull request #1 from yenatch/event-macros
add event script macros
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