mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Minor rgbasm macro cleanup
This commit is contained in:
parent
5447792dd5
commit
b850636534
@ -17,16 +17,19 @@ dn: MACRO
|
|||||||
db \1 << 4 + \2
|
db \1 << 4 + \2
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
; big-endian word
|
||||||
bigdw: MACRO
|
bigdw: MACRO
|
||||||
dw ((\1)/$100) + (((\1)&$ff)*$100)
|
dw ((\1)/$100) + (((\1)&$ff)*$100)
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
; address, bank
|
||||||
callab: MACRO
|
callab: MACRO
|
||||||
ld hl, \1
|
ld hl, \1
|
||||||
ld a, BANK(\1)
|
ld a, BANK(\1)
|
||||||
rst FarCall
|
rst FarCall
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
; bank, address
|
||||||
callba: MACRO
|
callba: MACRO
|
||||||
ld a, BANK(\1)
|
ld a, BANK(\1)
|
||||||
ld hl, \1
|
ld hl, \1
|
||||||
@ -48,7 +51,6 @@ RGB: MACRO
|
|||||||
dw ((\3 << 10) | (\2 << 5) | (\1))
|
dw ((\3 << 10) | (\2 << 5) | (\1))
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
; eventually replace with python macro
|
|
||||||
note: MACRO
|
note: MACRO
|
||||||
db \1
|
db \1
|
||||||
ENDM
|
ENDM
|
||||||
@ -73,6 +75,25 @@ hlcoord: MACRO
|
|||||||
ld hl, Coord
|
ld hl, Coord
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
|
||||||
|
; pic animations
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
NONE EQU 0
|
NONE EQU 0
|
||||||
|
|
||||||
BULBASAUR EQU 1
|
BULBASAUR EQU 1
|
||||||
@ -3415,19 +3436,3 @@ Unkn2Pals EQU $d040 ; 8 4-color palettes little endian)
|
|||||||
BGPals EQU $d080 ; 8 4-color palettes little endian)
|
BGPals EQU $d080 ; 8 4-color palettes little endian)
|
||||||
OBPals EQU $d0c0 ; 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user