From 1589b290f71ebffff6448b33add28072655ee4d9 Mon Sep 17 00:00:00 2001 From: rawr51919 Date: Fri, 2 Jun 2023 12:35:15 -0300 Subject: [PATCH] Identify the rest of the unknown hardware constants (#104) This PR identifies the rest of the unknown hardware constants as seen in the Pan Docs. Aped from pokered, pokeyellow, pokegold, and pokecrystal. --- constants/hardware_constants.asm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm index 7ccaa43..51704d1 100644 --- a/constants/hardware_constants.asm +++ b/constants/hardware_constants.asm @@ -157,12 +157,8 @@ DEF rBGPD EQU $ff69 ; CGB Mode Only - Background Palette Data DEF rOBPI EQU $ff6a ; CGB Mode Only - Sprite Palette Index DEF rOBPI_AUTO_INCREMENT EQU 7 ; increment rOBPI after write to rOBPD DEF rOBPD EQU $ff6b ; CGB Mode Only - Sprite Palette Data -DEF rUNKNOWN1 EQU $ff6c ; (FEh) Bit 0 (Read/Write) - CGB Mode Only +DEF rOPRI EQU $ff6c ; CGB Mode Only - Object Priority Modenly DEF rSVBK EQU $ff70 ; CGB Mode Only - WRAM Bank -DEF rUNKNOWN2 EQU $ff72 ; (00h) - Bit 0-7 (Read/Write) -DEF rUNKNOWN3 EQU $ff73 ; (00h) - Bit 0-7 (Read/Write) -DEF rUNKNOWN4 EQU $ff74 ; (00h) - Bit 0-7 (Read/Write) - CGB Mode Only -DEF rUNKNOWN5 EQU $ff75 ; (8Fh) - Bit 4-6 (Read/Write) -DEF rUNKNOWN6 EQU $ff76 ; (00h) - Always 00h (Read Only) -DEF rUNKNOWN7 EQU $ff77 ; (00h) - Always 00h (Read Only) +DEF rPCM12 EQU $ff76 ; Channel 1 & 2 Amplitude (R) +DEF rPCM34 EQU $ff77 ; Channel 3 & 4 Amplitude (R) DEF rIE EQU $ffff ; Interrupt Enable (R/W)