rewrote main loop, cleaned up stuff, B button to step one frame
This commit is contained in:
@@ -18,14 +18,6 @@ ScrollNintendoOut:
|
||||
dec b
|
||||
jr nz, .wait
|
||||
|
||||
; sound ON
|
||||
ld a, $80
|
||||
ldh [rNR52], a
|
||||
ld a, $77
|
||||
ldh [rNR50], a ; max volume on both speakers
|
||||
ld a, $88
|
||||
ldh [rNR51], a ; noise channel on both speakers
|
||||
|
||||
; make noise
|
||||
xor a
|
||||
ldh [rNR41], a ; set sound duration
|
||||
@@ -93,8 +85,4 @@ ScrollNintendoOut:
|
||||
cp a, 88
|
||||
jp nz, .scrollup
|
||||
|
||||
; sound off
|
||||
xor a
|
||||
ldh [rNR52], a
|
||||
|
||||
ret
|
||||
Reference in New Issue
Block a user