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

@@ -240,10 +240,10 @@ DebugColorMain:
jr nc, .no_start_select
ld hl, hJoyLast
ld a, [hl]
and SELECT
and PAD_SELECT
jr nz, .NextMon
ld a, [hl]
and START
and PAD_START
jr nz, .PreviousMon
.no_start_select
@@ -546,10 +546,10 @@ DebugColor_PrintHexColor:
DebugColor_Joypad:
ldh a, [hJoyLast]
and B_BUTTON
and PAD_B
jr nz, .tmhm
ldh a, [hJoyLast]
and A_BUTTON
and PAD_A
jr nz, .toggle_shiny
ld a, [wDebugColorRGBJumptableIndex]
@@ -598,13 +598,13 @@ DebugColor_Joypad:
DebugColor_SelectColorBox:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugColor_NextRGBColor
ld a, [hl]
and D_LEFT
and PAD_LEFT
jr nz, .light
ld a, [hl]
and D_RIGHT
and PAD_RIGHT
jr nz, .dark
ret
@@ -625,10 +625,10 @@ DebugColor_SelectColorBox:
DebugColor_ChangeRedValue:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugColor_NextRGBColor
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugColor_PreviousRGBColor
ld hl, wDebugRedChannel
jr DebugColor_UpdateRGBColor
@@ -636,10 +636,10 @@ DebugColor_ChangeRedValue:
DebugColor_ChangeGreenValue:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugColor_NextRGBColor
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugColor_PreviousRGBColor
ld hl, wDebugGreenChannel
jr DebugColor_UpdateRGBColor
@@ -647,17 +647,17 @@ DebugColor_ChangeGreenValue:
DebugColor_ChangeBlueValue:
ld hl, hJoyLast
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugColor_PreviousRGBColor
ld hl, wDebugBlueChannel
; fallthrough
DebugColor_UpdateRGBColor:
ldh a, [hJoyLast]
and D_RIGHT
and PAD_RIGHT
jr nz, .increment
ldh a, [hJoyLast]
and D_LEFT
and PAD_LEFT
jr nz, .decrement
ret
@@ -708,7 +708,7 @@ DebugColor_InitTMHM:
DebugColor_TMHMJoypad:
ld hl, hJoyPressed
ld a, [hl]
and B_BUTTON
and PAD_B
jr nz, .cancel
call .scroll
ret
@@ -726,10 +726,10 @@ DebugColor_TMHMJoypad:
.scroll:
ld hl, hJoyLast
ld a, [hl]
and D_UP
and PAD_UP
jr nz, .up
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, .down
ret
@@ -1188,10 +1188,10 @@ DebugTileset_LoadPalettes:
DebugColorMain2: ; unreferenced
ld hl, hJoyLast
ld a, [hl]
and SELECT
and PAD_SELECT
jr nz, .next_palette
ld a, [hl]
and B_BUTTON
and PAD_B
jr nz, .cancel
call DebugTileset_Joypad
ret
@@ -1306,13 +1306,13 @@ DebugTileset_Joypad:
DebugTileset_SelectColorBox:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugTileset_NextRGBColor
ld a, [hl]
and D_LEFT
and PAD_LEFT
jr nz, .left
ld a, [hl]
and D_RIGHT
and PAD_RIGHT
jr nz, .right
ret
@@ -1341,10 +1341,10 @@ DebugTileset_SelectColorBox:
DebugTileset_ChangeRedValue:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugTileset_NextRGBColor
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugTileset_PreviousRGBColor
ld hl, wDebugRedChannel
jr DebugTileset_UpdateRGBColor
@@ -1352,10 +1352,10 @@ DebugTileset_ChangeRedValue:
DebugTileset_ChangeGreenValue:
ld hl, hJoyLast
ld a, [hl]
and D_DOWN
and PAD_DOWN
jr nz, DebugTileset_NextRGBColor
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugTileset_PreviousRGBColor
ld hl, wDebugGreenChannel
jr DebugTileset_UpdateRGBColor
@@ -1363,17 +1363,17 @@ DebugTileset_ChangeGreenValue:
DebugTileset_ChangeBlueValue:
ld hl, hJoyLast
ld a, [hl]
and D_UP
and PAD_UP
jr nz, DebugTileset_PreviousRGBColor
ld hl, wDebugBlueChannel
; fallthrough
DebugTileset_UpdateRGBColor:
ldh a, [hJoyLast]
and D_RIGHT
and PAD_RIGHT
jr nz, .increment
ldh a, [hJoyLast]
and D_LEFT
and PAD_LEFT
jr nz, .decrement
ret