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

@@ -431,9 +431,9 @@ ConfirmContinue:
call DelayFrame
call GetJoypad
ld hl, hJoyPressed
bit A_BUTTON_F, [hl]
bit B_PAD_A, [hl]
jr nz, .PressA
bit B_BUTTON_F, [hl]
bit B_PAD_B, [hl]
jr z, .loop
scf
ret
@@ -1158,8 +1158,8 @@ TitleScreenMain:
call GetJoypad
ld hl, hJoyDown
ld a, [hl]
and D_UP + B_BUTTON + SELECT
cp D_UP + B_BUTTON + SELECT
and PAD_UP + PAD_B + PAD_SELECT
cp PAD_UP + PAD_B + PAD_SELECT
jr z, .delete_save_data
; To bring up the clock reset dialog:
@@ -1170,8 +1170,8 @@ TitleScreenMain:
jr z, .check_clock_reset
ld a, [hl]
and D_DOWN + B_BUTTON + SELECT
cp D_DOWN + B_BUTTON + SELECT
and PAD_DOWN + PAD_B + PAD_SELECT
cp PAD_DOWN + PAD_B + PAD_SELECT
jr nz, .check_start
ld a, $34
@@ -1181,21 +1181,21 @@ TitleScreenMain:
; Keep Select pressed, and hold Left + Up.
; Then let go of Select.
.check_clock_reset
bit SELECT_F, [hl]
bit B_PAD_SELECT, [hl]
jr nz, .check_start
xor a
ldh [hClockResetTrigger], a
ld a, [hl]
and D_LEFT + D_UP
cp D_LEFT + D_UP
and PAD_LEFT + PAD_UP
cp PAD_LEFT + PAD_UP
jr z, .reset_clock
; Press Start or A to start the game.
.check_start
ld a, [hl]
and START | A_BUTTON
and PAD_START | PAD_A
jr nz, .incave
ret