summaryrefslogtreecommitdiff
path: root/constants.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-01-12 22:22:00 -0800
committerBryan Bishop <kanzure@gmail.com>2013-01-12 22:22:00 -0800
commitfb9fdd038d4ab94eab276585c7a8a46d8f9e33ad (patch)
treeb2b713e1e2e67ff95debf0409d7a3bb89e3fbf93 /constants.asm
parentd2fabc3b157528bd4d5d76665e27b960f7a08b60 (diff)
parent9fbe7ea42390e7a0d6a1288f076d7951ce66b5eb (diff)
Merge pull request #80 from yenatch/master
rgb macro for palettes
Diffstat (limited to 'constants.asm')
-rw-r--r--constants.asm4
1 files changed, 4 insertions, 0 deletions
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