summaryrefslogtreecommitdiff
path: root/constants.asm
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2010-11-19 23:00:56 -0700
committerIIMarckus <iimarckus@gmail.com>2010-11-19 23:00:56 -0700
commit9b5a97afc21438fffcfbd5e92b45b24b66deb280 (patch)
tree24d2e0b33a149d083795136f9743bae737373077 /constants.asm
parenteb98b000cd4224688ebb5c1e635a68dabe282347 (diff)
create a new macro to make byte–word pairs more readable
hg-commit-id: 24c0b06fa1c3
Diffstat (limited to 'constants.asm')
-rw-r--r--constants.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm
index 8d665be2..a22259d9 100644
--- a/constants.asm
+++ b/constants.asm
@@ -1,3 +1,9 @@
+; macro for putting a byte then a word
+dbw: MACRO
+ db \1
+ dw \2
+ ENDM
+
; data format macros
RGB: MACRO
dw (\3 << 10 | \2 << 5 | \1)