diff options
author | xCrystal <rgr.crystal@gmail.com> | 2018-06-12 13:08:33 +0200 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2018-06-12 13:08:33 +0200 |
commit | eb954b0364e04df40c571817cb6092390a7e716f (patch) | |
tree | e45ade2cd9a8f4f24bdbaea40476b6a499b319e1 /src/constants/hardware_constants.asm | |
parent | fefed7461368d7685114e69205be9bb2fc742d3d (diff) |
Redesign TX_SYMBOL constants
Diffstat (limited to 'src/constants/hardware_constants.asm')
-rw-r--r-- | src/constants/hardware_constants.asm | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/constants/hardware_constants.asm b/src/constants/hardware_constants.asm index 098b569..a93e250 100644 --- a/src/constants/hardware_constants.asm +++ b/src/constants/hardware_constants.asm @@ -1,7 +1,9 @@ -; From http://nocash.emubase.de/pandocs.htm. +; From http://bgb.bircd.org/pandocs.htm GBC EQU $11 +LY_VBLANK EQU 145 + ; MBC3 MBC3SRamEnable EQU $0000 MBC3RomBank EQU $2000 @@ -30,8 +32,6 @@ 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 @@ -44,18 +44,18 @@ OAM_PRIORITY EQU 7 ; 0: OBJ above BG, 1: OBJ behind BG (colors 1-3) rJOYP EQU $ff00 ; Joypad (R/W) rSB EQU $ff01 ; Serial transfer data (R/W) rSC EQU $ff02 ; Serial Transfer Control (R/W) -rSC_ON EQU 7 -rSC_CGB EQU 1 -rSC_CLOCK EQU 0 +SC_ON EQU 7 +SC_CGB EQU 1 +SC_CLOCK EQU 0 rDIV EQU $ff04 ; Divider Register (R/W) rTIMA EQU $ff05 ; Timer counter (R/W) rTMA EQU $ff06 ; Timer Modulo (R/W) rTAC EQU $ff07 ; Timer Control (R/W) -rTAC_ON EQU 2 -rTAC_4096_HZ EQU 0 -rTAC_262144_HZ EQU 1 -rTAC_65536_HZ EQU 2 -rTAC_16384_HZ EQU 3 +TAC_ON EQU 2 +TAC_4096_HZ EQU 0 +TAC_262144_HZ EQU 1 +TAC_65536_HZ EQU 2 +TAC_16384_HZ EQU 3 rIF EQU $ff0f ; Interrupt Flag (R/W) rNR10 EQU $ff10 ; Channel 1 Sweep register (R/W) rNR11 EQU $ff11 ; Channel 1 Sound length/Wave pattern duty (R/W) @@ -79,8 +79,7 @@ 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 +LCDC_ON EQU 7 rSTAT EQU $ff41 ; LCDC Status (R/W) rSCY EQU $ff42 ; Scroll Y (R/W) rSCX EQU $ff43 ; Scroll X (R/W) |