diff options
| author | IIMarckus <iimarckus@gmail.com> | 2010-11-19 23:00:56 -0700 |
|---|---|---|
| committer | IIMarckus <iimarckus@gmail.com> | 2010-11-19 23:00:56 -0700 |
| commit | 9b5a97afc21438fffcfbd5e92b45b24b66deb280 (patch) | |
| tree | 24d2e0b33a149d083795136f9743bae737373077 /constants.asm | |
| parent | Minor address→label replacement (diff) | |
| download | pokeyellow-9b5a97afc21438fffcfbd5e92b45b24b66deb280.tar.gz pokeyellow-9b5a97afc21438fffcfbd5e92b45b24b66deb280.tar.xz pokeyellow-9b5a97afc21438fffcfbd5e92b45b24b66deb280.zip | |
create a new macro to make byte–word pairs more readable
hg-commit-id: 24c0b06fa1c3
Diffstat (limited to 'constants.asm')
| -rw-r--r-- | constants.asm | 6 |
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) |
