Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user