summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-09-14 20:43:14 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-09-14 20:43:14 -0400
commit6ca722e622c34155ab535673b9bf61eb20e92214 (patch)
tree10dbbc3203e377a8394d1d38ae0b3f5f40258679 /include
parentf0dbfe7b277b2d5ea24fec3673fdd5c9266795a0 (diff)
Start extracting color palettes
Diffstat (limited to 'include')
-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"