mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
some oam constants
This commit is contained in:
parent
e538027c82
commit
c0e2170f01
9
gbhw.asm
9
gbhw.asm
@ -28,6 +28,15 @@ TIMER EQU 2
|
|||||||
SERIAL EQU 3
|
SERIAL EQU 3
|
||||||
JOYPAD EQU 4
|
JOYPAD EQU 4
|
||||||
|
|
||||||
|
; OAM attribute flags
|
||||||
|
OAM_PALETTE EQU %111
|
||||||
|
OAM_TILE_BANK EQU 3
|
||||||
|
OAM_OBP_NUM EQU 4 ; Non CGB Mode Only
|
||||||
|
OAM_X_FLIP EQU 5
|
||||||
|
OAM_Y_FLIP EQU 6
|
||||||
|
OAM_PRIORITY EQU 7 ; 0: OBJ above BG, 1: OBJ behind BG (colors 1-3)
|
||||||
|
|
||||||
|
|
||||||
; Hardware registers
|
; Hardware registers
|
||||||
rJOYP EQU $ff00 ; Joypad (R/W)
|
rJOYP EQU $ff00 ; Joypad (R/W)
|
||||||
rSB EQU $ff01 ; Serial transfer data (R/W)
|
rSB EQU $ff01 ; Serial transfer data (R/W)
|
||||||
|
6
main.asm
6
main.asm
@ -101,9 +101,9 @@ NUM_FACINGS EQU (FacingsEnd - Facings) / 2
|
|||||||
; db y, x, attributes, tile index
|
; db y, x, attributes, tile index
|
||||||
|
|
||||||
; Attributes:
|
; Attributes:
|
||||||
X_FLIP EQU 1 << 5
|
X_FLIP EQU 1 << OAM_X_FLIP
|
||||||
Y_FLIP EQU 1 << 6
|
Y_FLIP EQU 1 << OAM_Y_FLIP
|
||||||
BEHIND_BG EQU 1 << 7
|
BEHIND_BG EQU 1 << OAM_PRIORITY
|
||||||
|
|
||||||
|
|
||||||
Facing00:
|
Facing00:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user