Skip to content

Commit 9cba6d0

Browse files
Reinstate KEY1 and fix the comment to HDMA5
1 parent 7ef59b4 commit 9cba6d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hardware.inc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,11 @@ rWX EQU $FF4B
542542
; -- SPEED ($FF4D)
543543
; -- Select CPU Speed (R/W)
544544
; --
545-
rSPD EQU $FF4D
545+
rKEY1 EQU $FF4D
546+
rSPD EQU rKEY1
546547

547-
SPDF_DBLSPEED EQU %10000000 ; 0=Normal Speed, 1=Double Speed (R)
548-
SPDF_PREPARE EQU %00000001 ; 0=No, 1=Prepare (R/W)
548+
KEY1F_DBLSPEED EQU %10000000 ; 0=Normal Speed, 1=Double Speed (R)
549+
KEY1F_PREPARE EQU %00000001 ; 0=No, 1=Prepare (R/W)
549550

550551

551552
; --
@@ -591,7 +592,7 @@ rHDMA4 EQU $FF54
591592

592593
; --
593594
; -- HDMA5 ($FF55)
594-
; -- Transfer length (in bytes)/mode/start for Horizontal Blanking, General Purpose DMA (R/W)
595+
; -- Transfer length (in tiles minus 1)/mode/start for Horizontal Blanking, General Purpose DMA (R/W)
595596
; -- CGB Mode Only
596597
; --
597598
rHDMA5 EQU $FF55

0 commit comments

Comments
 (0)