diff options
Diffstat (limited to 'constants.asm')
-rw-r--r-- | constants.asm | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/constants.asm b/constants.asm index c3b05f321..3694ee5a1 100644 --- a/constants.asm +++ b/constants.asm @@ -1,5 +1,8 @@ _CRYSTAL EQU 1 +FarCall EQU $08 +Bankswitch EQU $10 + dwb: MACRO dw \1 db \2 @@ -21,13 +24,18 @@ bigdw: MACRO callab: MACRO ld hl, \1 ld a, BANK(\1) - rst $08 + rst FarCall ENDM callba: MACRO ld a, BANK(\1) ld hl, \1 - rst $08 + rst FarCall + ENDM + +TX_RAM: MACRO + db 1 + dw \1 ENDM TX_FAR: MACRO @@ -36,6 +44,10 @@ TX_FAR: MACRO db BANK(\1) ENDM +RGB: MACRO + dw ((\3 << 10) | (\2 << 5) | (\1)) + ENDM + ; eventually replace with python macro note: MACRO db \1 @@ -3360,3 +3372,20 @@ Unkn1Pals EQU $d000 ; 8 4-color palettes little endian) Unkn2Pals EQU $d040 ; 8 4-color palettes little endian) BGPals EQU $d080 ; 8 4-color palettes little endian) OBPals EQU $d0c0 ; 8 4-color palettes little endian) + +; oh my god this is hacky stop being so hacky +frame: MACRO + db \1 + db \2 + ENDM +setrepeat: MACRO + db $fe + db \1 + ENDM +dorepeat: MACRO + db $fd + db \1 + ENDM +endanim: MACRO + db $ff + ENDM |