rewrote main loop, cleaned up stuff, B button to step one frame

This commit is contained in:
2019-01-09 00:19:55 +01:00
parent 25d999968e
commit 3cd2f3d126
7 changed files with 175 additions and 194 deletions

View File

@@ -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