Update hardware.inc to 5.1.0

This commit is contained in:
Rangi42
2025-06-29 15:53:34 -04:00
committed by Rangi
parent 8f5a8c5b5b
commit 5abf8d01fb
84 changed files with 845 additions and 696 deletions

View File

@@ -15,9 +15,9 @@ MACRO RGB
endr
ENDM
DEF palred EQUS "(1 << 0) *"
DEF palgreen EQUS "(1 << 5) *"
DEF palblue EQUS "(1 << 10) *"
DEF palred EQUS "(1 << B_COLOR_RED) *"
DEF palgreen EQUS "(1 << B_COLOR_GREEN) *"
DEF palblue EQUS "(1 << B_COLOR_BLUE) *"
DEF palettes EQUS "* PAL_SIZE"
DEF palette EQUS "+ PAL_SIZE *"

View File

@@ -426,7 +426,7 @@ DEF PAL_OW_SILVER EQUS "PAL_OW_EMOTE"
; constants/hardware.inc (formerly constants/hardware_constants.asm)
DEF MBC3SRamEnable EQU rRAMG
DEF MBC3RomBank EQU rROMB0
DEF MBC3RomBank EQU rROMB
DEF MBC3SRamBank EQU rRAMB
DEF MBC3LatchClock EQU rRTCLATCH
DEF MBC3RTC EQU rRTCREG
@@ -516,6 +516,29 @@ DEF rBGPI_AUTO_INCREMENT EQU B_BGPI_AUTOINC
DEF rOBPI_AUTO_INCREMENT EQU B_OBPI_AUTOINC
; constants/input_constants.asm
DEF A_BUTTON_F EQU B_PAD_A
DEF B_BUTTON_F EQU B_PAD_B
DEF SELECT_F EQU B_PAD_SELECT
DEF START_F EQU B_PAD_START
DEF D_RIGHT_F EQU B_PAD_RIGHT
DEF D_LEFT_F EQU B_PAD_LEFT
DEF D_UP_F EQU B_PAD_UP
DEF D_DOWN_F EQU B_PAD_DOWN
DEF A_BUTTON EQU PAD_A
DEF B_BUTTON EQU PAD_B
DEF SELECT EQU PAD_SELECT
DEF START EQU PAD_START
DEF D_RIGHT EQU PAD_RIGHT
DEF D_LEFT EQU PAD_LEFT
DEF D_UP EQU PAD_UP
DEF D_DOWN EQU PAD_DOWN
DEF BUTTONS EQU PAD_BUTTONS
DEF D_PAD EQU PAD_CTRL_PAD
; constants/gfx_constants.asm
DEF LEN_1BPP_TILE EQU TILE_1BPP_SIZE
@@ -534,3 +557,10 @@ DEF SPRITEOAMSTRUCT_TILE_ID EQU OAMA_TILEID
DEF SPRITEOAMSTRUCT_ATTRIBUTES EQU OAMA_FLAGS
DEF SPRITEOAMSTRUCT_LENGTH EQU OBJ_SIZE
DEF NUM_SPRITE_OAM_STRUCTS EQU OAM_COUNT
; constants/audio_constants.asm
DEF VOLUME_SO1_F EQU B_AUDVOL_VIN_RIGHT
DEF VOLUME_SO2_F EQU B_AUDVOL_VIN_LEFT
DEF VOLUME_SO1_LEVEL EQU AUDVOL_RIGHT
DEF VOLUME_SO2_LEVEL EQU AUDVOL_LEFT