diff options
Diffstat (limited to 'macros')
-rw-r--r-- | macros/data.asm | 4 | ||||
-rw-r--r-- | macros/gfx.asm | 17 | ||||
-rw-r--r-- | macros/wram.asm | 1 |
3 files changed, 17 insertions, 5 deletions
diff --git a/macros/data.asm b/macros/data.asm index aa7233d..241e52a 100644 --- a/macros/data.asm +++ b/macros/data.asm @@ -127,7 +127,3 @@ rept \1 x = x + DIV(32768, \1) ; a circle has 65536 "degrees" endr ENDM - -RGB: MACRO - dw (\3 << 10 | \2 << 5 | \1) -ENDM diff --git a/macros/gfx.asm b/macros/gfx.asm index 16c7d9b..ff07ba4 100644 --- a/macros/gfx.asm +++ b/macros/gfx.asm @@ -1,2 +1,19 @@ +RGB: MACRO +rept _NARG / 3 + dw palred (\1) + palgreen (\2) + palblue (\3) + shift + shift + shift +endr +ENDM + +palred EQUS "(1 << 0) *" +palgreen EQUS "(1 << 5) *" +palblue EQUS "(1 << 10) *" + +palettes EQUS "* PALETTE_SIZE" +palette EQUS "+ PALETTE_SIZE *" +color EQUS "+ PAL_COLOR_SIZE *" + tiles EQUS "* LEN_2BPP_TILE" tile EQUS "+ LEN_2BPP_TILE *" diff --git a/macros/wram.asm b/macros/wram.asm index 7e7505f..dd9b76b 100644 --- a/macros/wram.asm +++ b/macros/wram.asm @@ -1,4 +1,3 @@ - flag_array: MACRO ds ((\1) + 7) / 8 ENDM |