Remove rNR20/rNR40 and add rPCM12/rPCM34 (#947)

This commit is contained in:
Colton G. Rushton
2022-06-17 23:29:09 -03:00
committed by GitHub
parent 5f0597e944
commit 6a9e929bf9
2 changed files with 4 additions and 6 deletions

View File

@@ -353,7 +353,7 @@ UpdateChannels:
ldh a, [rNR52]
and %10001101 ; ch2 off
ldh [rNR52], a
ld hl, rNR20
ld hl, rNR21 - 1 ; there is no rNR20
call ClearChannel
ret
@@ -491,7 +491,7 @@ endr
ldh a, [rNR52]
and %10000111 ; ch4 off
ldh [rNR52], a
ld hl, rNR40
ld hl, rNR41 - 1 ; there is no rNR40
call ClearChannel
ret