From 238f40602479c43954916a967523d0a873cdd92b Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 13 Jan 2013 00:38:48 -0500 Subject: implement rgb macro for palettes --- constants.asm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'constants.asm') diff --git a/constants.asm b/constants.asm index c60d4a044..cc9e55474 100644 --- a/constants.asm +++ b/constants.asm @@ -31,6 +31,10 @@ TX_FAR: MACRO db BANK(\1) ENDM +RGB: MACRO + dw ((\3 << 10) | (\2 << 5) | (\1)) + ENDM + ; eventually replace with python macro note: MACRO db \1 -- cgit v1.2.3