summaryrefslogtreecommitdiff
path: root/include/macros.inc
diff options
context:
space:
mode:
Diffstat (limited to 'include/macros.inc')
-rw-r--r--include/macros.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/macros.inc b/include/macros.inc
index 2f4d28d..26165bc 100644
--- a/include/macros.inc
+++ b/include/macros.inc
@@ -23,6 +23,21 @@ farjp: macro
endm
+RGB: macro
+ rept _NARG / 3
+ dw palred (\1) + palgreen (\2) + palblue (\3)
+ shift 3
+ endr
+endm
+
+palred EQUS "(1 << 0) *"
+palgreen EQUS "(1 << 5) *"
+palblue EQUS "(1 << 10) *"
+
+palettes EQUS "* PALETTE_SIZE"
+palette EQUS "+ PALETTE_SIZE *"
+color EQUS "+ PAL_COLOR_SIZE *"
+
tiles EQUS "* $10"