properly shut sound off + comments

This commit is contained in:
2019-01-03 10:05:27 +01:00
parent b7b00de3a5
commit c12654ba1e

View File

@@ -181,6 +181,7 @@ ENDR
SECTION "Main", ROM0[$150]
Start:
; shut sound off
xor a
ld [rNR52], a
; set old and rendered pointers to buffer0
@@ -377,7 +378,7 @@ Start:
.bottomright
ConwayGroup -19, -359, -340, -341, -1, -21, -20, -39
; wait end of rendering (not necessary, update is way slower than rendering...)
; wait end of rendering
.waitRender
ldh a, [LinesLeft]
ld b, a
@@ -489,11 +490,9 @@ Render:
ld h, [hl]
ld l, a
; init tile counter in C
; load counters
ldh a, [TilesLeft]
ld c, a
; init line counter in B
ldh a, [LinesLeft]
ld b, a
@@ -524,7 +523,8 @@ Render:
dec b
jr z, .finish
ld c, 20 ; reset tile counter
; reset tile counter
ld c, 20
jr .loop