From 9b5a97afc21438fffcfbd5e92b45b24b66deb280 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Fri, 19 Nov 2010 23:00:56 -0700 Subject: =?UTF-8?q?create=20a=20new=20macro=20to=20make=20byte=E2=80=93wor?= =?UTF-8?q?d=20pairs=20more=20readable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hg-commit-id: 24c0b06fa1c3 --- constants.asm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'constants.asm') 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) -- cgit v1.2.3