Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)

This commit is contained in:
Rangi
2025-06-23 09:11:33 -04:00
committed by GitHub
parent ae7ee67d21
commit 4c540aa43b
149 changed files with 3444 additions and 3103 deletions

View File

@@ -6,22 +6,22 @@
; collapses during the switch.
DoubleSpeed::
ld hl, rKEY1
bit KEY1_DBLSPEED, [hl]
ld hl, rSPD
bit B_SPD_DOUBLE, [hl]
jr z, SwitchSpeed
ret
NormalSpeed::
ld hl, rKEY1
bit KEY1_DBLSPEED, [hl]
ld hl, rSPD
bit B_SPD_DOUBLE, [hl]
ret z
SwitchSpeed::
set KEY1_PREPARE, [hl]
set B_SPD_PREPARE, [hl]
xor a
ldh [rIF], a
ldh [rIE], a
ld a, (1 << rJOYP_BUTTONS) | (1 << rJOYP_DPAD)
ld a, JOYP_GET_NONE
ldh [rJOYP], a
stop ; rgbasm adds a nop after this instruction by default
ret