summaryrefslogtreecommitdiff
path: root/src/macros.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2016-01-16 14:49:30 +0100
committerxCrystal <rgr.crystal@gmail.com>2016-01-16 14:49:30 +0100
commit3d8dba485896e987e60e4a15979f32e824ca71e4 (patch)
tree6868b8db5ccdd96c25e2aa68da09f6b65e7f0ec7 /src/macros.asm
parent7d83d6d9768460d71b8c4323a999eb9b6e562d7d (diff)
no more underscores in card text pointers
Diffstat (limited to 'src/macros.asm')
-rwxr-xr-xsrc/macros.asm17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/macros.asm b/src/macros.asm
index 30190b6..b628670 100755
--- a/src/macros.asm
+++ b/src/macros.asm
@@ -1,6 +1,4 @@
-RGB: MACRO
- dw (\3 << 10 | \2 << 5 | \1)
-ENDM
+;;; engine macros
bank1call: MACRO
rst $18
@@ -27,6 +25,10 @@ emptybank: MACRO
endr
ENDM
+RGB: MACRO
+ dw (\3 << 10 | \2 << 5 | \1)
+ENDM
+
text: MACRO
dw ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) & $ffff
db ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) >> 16
@@ -35,7 +37,8 @@ GLOBAL \1_
const_value = const_value + 1
ENDM
-; notes/instruments
+;;; notes/instruments macros
+
C_: MACRO
db $10 | (\1 - 1)
ENDM
@@ -249,6 +252,8 @@ sfx_end: MACRO
db $f0
ENDM
+;;; card macros
+
energy: MACRO
fg = 0
lw = 0
@@ -293,3 +298,7 @@ ENDM
gfx: MACRO
dw ($4000 * (BANK(\1) - BANK(GrassEnergyCardGfx)) + (\1 - $4000)) / 8
ENDM
+
+tx: MACRO
+ dw \1_
+ENDM