summaryrefslogtreecommitdiff
path: root/macros/gfx.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gfx.asm')
-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"