properly shut sound off + comments
This commit is contained in:
@@ -181,8 +181,9 @@ ENDR
|
|||||||
SECTION "Main", ROM0[$150]
|
SECTION "Main", ROM0[$150]
|
||||||
Start:
|
Start:
|
||||||
; shut sound off
|
; shut sound off
|
||||||
|
xor a
|
||||||
ld [rNR52], a
|
ld [rNR52], a
|
||||||
|
|
||||||
; set old and rendered pointers to buffer0
|
; set old and rendered pointers to buffer0
|
||||||
ld a, HIGH(Buffer0)
|
ld a, HIGH(Buffer0)
|
||||||
ldh [Old], a
|
ldh [Old], a
|
||||||
@@ -209,7 +210,7 @@ Start:
|
|||||||
; disable screen
|
; disable screen
|
||||||
xor a
|
xor a
|
||||||
ld [rLCDC], a
|
ld [rLCDC], a
|
||||||
|
|
||||||
; load bg palette [0=black, 1=dark gray, 2=light gray, 3=white]
|
; load bg palette [0=black, 1=dark gray, 2=light gray, 3=white]
|
||||||
ld a, %11100100
|
ld a, %11100100
|
||||||
ld [rBGP], a
|
ld [rBGP], a
|
||||||
@@ -377,7 +378,7 @@ Start:
|
|||||||
.bottomright
|
.bottomright
|
||||||
ConwayGroup -19, -359, -340, -341, -1, -21, -20, -39
|
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
|
.waitRender
|
||||||
ldh a, [LinesLeft]
|
ldh a, [LinesLeft]
|
||||||
ld b, a
|
ld b, a
|
||||||
@@ -489,11 +490,9 @@ Render:
|
|||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
|
|
||||||
; init tile counter in C
|
; load counters
|
||||||
ldh a, [TilesLeft]
|
ldh a, [TilesLeft]
|
||||||
ld c, a
|
ld c, a
|
||||||
|
|
||||||
; init line counter in B
|
|
||||||
ldh a, [LinesLeft]
|
ldh a, [LinesLeft]
|
||||||
ld b, a
|
ld b, a
|
||||||
|
|
||||||
@@ -524,7 +523,8 @@ Render:
|
|||||||
dec b
|
dec b
|
||||||
jr z, .finish
|
jr z, .finish
|
||||||
|
|
||||||
ld c, 20 ; reset tile counter
|
; reset tile counter
|
||||||
|
ld c, 20
|
||||||
|
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user