shithub: pokecrystal

Download patch

ref: d3da137de8bf394e2780c19a91dabf722cb757b4
parent: f74ec1053e33dc5e56e9476076ed7ae7e7e84fef
author: Colton G. Rushton <colton51919@gmail.com>
date: Sun Jul 3 22:10:24 EDT 2022

Add object priority mode constant and remove unnecessary constants (#972)

The rest of the unknown constants aren't even registers and can safely be removed without issue.

--- a/constants/hardware_constants.asm
+++ b/constants/hardware_constants.asm
@@ -155,12 +155,8 @@
 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 Mode
 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 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)