diff options
author | Diegoisawesome <diego@domoreaweso.me> | 2016-11-01 10:56:23 -0500 |
---|---|---|
committer | Diegoisawesome <diego@domoreaweso.me> | 2016-11-01 10:56:23 -0500 |
commit | f09f9cef752c37e3cc0686573c1fdb29da842772 (patch) | |
tree | 22bee285750a6739643859eb6afd52be4ded87e1 /asm/macros/map.inc | |
parent | 442002dada4183c96b5ec09fcde8486aa5ba29b1 (diff) | |
parent | 4db33778ad3faa64d994f46358a28c22c393f7c6 (diff) |
Merge remote-tracking branch 'refs/remotes/pret/master'
Diffstat (limited to 'asm/macros/map.inc')
-rw-r--r-- | asm/macros/map.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc new file mode 100644 index 000000000..452f9b714 --- /dev/null +++ b/asm/macros/map.inc @@ -0,0 +1,15 @@ + .macro new_map_group + .set cur_map_group, cur_map_group + 1 + .set cur_map_num, 0 + .endm + + .macro map_group map_name + .set GROUP_\map_name, cur_map_group + .set MAP_\map_name, cur_map_num + .set cur_map_num, cur_map_num + 1 + .endm + + .macro map map_name + .byte GROUP_\map_name + .byte MAP_\map_name + .endm |