diff options
author | anmart <andrewrmartinek@gmail.com> | 2016-02-24 13:28:46 -0500 |
---|---|---|
committer | anmart <andrewrmartinek@gmail.com> | 2016-02-24 13:28:46 -0500 |
commit | f4a8c8b15853ddaafab0feaa10812bca861cabcd (patch) | |
tree | 6c7754a868634626177b2dba65be4ac4e6bc1f4b /src/macros.asm | |
parent | 798a5c1a7d7cc8e02cd649241b357f00871d1290 (diff) | |
parent | 7f094ac28af099256cbbd8769f9d4f5672c8eaec (diff) |
Merge remote-tracking branch 'refs/remotes/pret/master'
Diffstat (limited to 'src/macros.asm')
-rwxr-xr-x | src/macros.asm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/macros.asm b/src/macros.asm index 1405c8a..62a5bc5 100755 --- a/src/macros.asm +++ b/src/macros.asm @@ -30,7 +30,7 @@ emptybank: MACRO endr ENDM -RGB: MACRO +rgb: MACRO dw (\3 << 10 | \2 << 5 | \1) ENDM @@ -42,7 +42,11 @@ GLOBAL \1_ const_value = const_value + 1 ENDM -SGB: MACRO +text_hl: MACRO + ld hl, \1_ +ENDM + +sgb: MACRO db \1 * 8 + \2 ; sgb_command * 8 + length ENDM |