diff options
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 |