summaryrefslogtreecommitdiff
path: root/constants/hardware_constants.asm
diff options
context:
space:
mode:
Diffstat (limited to 'constants/hardware_constants.asm')
-rw-r--r--constants/hardware_constants.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm
index accab39d..8e926a11 100644
--- a/constants/hardware_constants.asm
+++ b/constants/hardware_constants.asm
@@ -1,5 +1,7 @@
; From http://nocash.emubase.de/pandocs.htm.
+GBC EQU $11
+
; MBC3
MBC3SRamEnable EQU $0000
MBC3RomBank EQU $2000
@@ -28,6 +30,8 @@ TIMER EQU 2
SERIAL EQU 3
JOYPAD EQU 4
+LY_VBLANK EQU 145
+
; OAM attribute flags
OAM_PALETTE EQU %111
OAM_TILE_BANK EQU 3
@@ -76,6 +80,8 @@ rNR50 EQU $ff24 ; Channel control / ON-OFF / Volume (R/W)
rNR51 EQU $ff25 ; Selection of Sound output terminal (R/W)
rNR52 EQU $ff26 ; Sound on/off
rLCDC EQU $ff40 ; LCD Control (R/W)
+rLCDC_ENABLE EQU 7
+rLCDC_ENABLE_MASK EQU 1 << rLCDC_ENABLE
rSTAT EQU $ff41 ; LCDC Status (R/W)
rSCY EQU $ff42 ; Scroll Y (R/W)
rSCX EQU $ff43 ; Scroll X (R/W)