summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2018-09-01 20:58:23 -0400
committerGitHub <noreply@github.com>2018-09-01 20:58:23 -0400
commit963026695da30e7eaca8396f8624730d8d556c6e (patch)
tree5b34737d7050f39e90793236e70bd3033579bbf7 /macros
parent83b5aa356fcb0fac1363730200e7ebbc8a8b43f3 (diff)
parent075a3bcad0ad9cffbe3c21e9a7514b631a3749c1 (diff)
Merge pull request #560 from Rangi42/master
Fix #537: Palettes generated from PNGs use .gbcpal directly.
Diffstat (limited to 'macros')
-rw-r--r--macros/gfx.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/gfx.asm b/macros/gfx.asm
index ff07ba468..2753373e0 100644
--- a/macros/gfx.asm
+++ b/macros/gfx.asm
@@ -17,3 +17,8 @@ color EQUS "+ PAL_COLOR_SIZE *"
tiles EQUS "* LEN_2BPP_TILE"
tile EQUS "+ LEN_2BPP_TILE *"
+
+; extracts the middle two colors from a 2bpp binary palette
+; example usage:
+; INCBIN "foo.gbcpal", middle_colors
+middle_colors EQUS "PAL_COLOR_SIZE, PAL_COLOR_SIZE * 2"