summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rwxr-xr-xmacros.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 54a779e..590a405 100755
--- a/macros.asm
+++ b/macros.asm
@@ -52,3 +52,10 @@ ENDM
hlCoord: MACRO
ld hl, \3 + $20 * \2 + \1
ENDM
+
+;\1 = 5-bit Blue value
+;\2 = 5-bit Green value
+;\3 = 5-bit Red value
+RGB: MACRO
+ dw (\3 << 10 | \2 << 5 | \1)
+ ENDM