diff options
Diffstat (limited to 'constants/hardware_constants.asm')
-rw-r--r-- | constants/hardware_constants.asm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm index b84419815..7e7681acf 100644 --- a/constants/hardware_constants.asm +++ b/constants/hardware_constants.asm @@ -50,6 +50,7 @@ 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) +; BP Map attribute flags PALETTE_MASK EQU %111 VRAM_BANK_1 EQU 1 << OAM_TILE_BANK ; $08 OBP_NUM EQU 1 << OAM_OBP_NUM ; $10 @@ -57,6 +58,10 @@ X_FLIP EQU 1 << OAM_X_FLIP ; $20 Y_FLIP EQU 1 << OAM_Y_FLIP ; $40 BEHIND_BG EQU 1 << OAM_PRIORITY ; $80 +; Other useful constants +LCDC_DEFAULT EQU %11100011 +LY_VBLANK EQU 144 + ; Hardware registers rJOYP EQU $ff00 ; Joypad (R/W) rSB EQU $ff01 ; Serial transfer data (R/W) @@ -114,16 +119,14 @@ rWave_d EQU $ff3d rWave_e EQU $ff3e rWave_f EQU $ff3f rLCDC EQU $ff40 ; LCD Control (R/W) -rLCDC_SPRITE_ENABLE EQU 1 -rLCDC_SPRITE_SIZE EQU 2 -rLCDC_WINDOW_TILEMAP EQU 6 -rLCDC_ENABLE EQU 7 -rLCDC_DEFAULT EQU %11100011 +rLCDC_SPRITES_ENABLE EQU 1 ; 0=Off, 1=On +rLCDC_SPRITE_SIZE EQU 2 ; 0=8x8, 1=8x16 +rLCDC_WINDOW_TILEMAP EQU 6 ; 0=9800-9BFF, 1=9C00-9FFF +rLCDC_ENABLE EQU 7 ; 0=Off, 1=On rSTAT EQU $ff41 ; LCDC Status (R/W) rSCY EQU $ff42 ; Scroll Y (R/W) rSCX EQU $ff43 ; Scroll X (R/W) rLY EQU $ff44 ; LCDC Y-Coordinate (R) -LY_VBLANK EQU 144 rLYC EQU $ff45 ; LY Compare (R/W) rDMA EQU $ff46 ; DMA Transfer and Start Address (W) rBGP EQU $ff47 ; BG Palette Data (R/W) - Non CGB Mode Only |