summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2015-09-02 22:45:53 -0700
committerMarcus Huderle <huderlem@gmail.com>2015-09-02 22:45:53 -0700
commit4e478a10c8555501a703ec78477103eb068ee59c (patch)
tree4179a9ea046c0b1e3308fec8bbf9fbd32559d5b8 /macros.asm
parentf99edad599d77c35712416446b8aa3818e20324e (diff)
Added RGB macro and dumped some palettes.
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