Nuclear Winter optimization - we save 4 bytes

:)
This commit is contained in:
Pecusx
2022-06-22 17:28:31 +02:00
parent 4ae4403448
commit 2c98d73877
2 changed files with 8 additions and 10 deletions
BIN
View File
Binary file not shown.
+8 -10
View File
@@ -2356,19 +2356,18 @@ MIRValreadyAll
NextColumn NextColumn
; big loop - we repat internal loops for each column of bytes ; big loop - we repat internal loops for each column of bytes
sty magic sty magic
ldx #0 ; line counter (from 0 to ?? ) ldx #60 ; line counter (from 0 to 60 )
; first loop - inverse column of bytes for a while ; first loop - inverse column of bytes for a while
ldy magic ldy magic
NextLine1 NextLine1
jsr InverseScreenByte jsr InverseScreenByte
inx dex
inx dex
cpx #60 bpl NextLine1
bne NextLine1
; ;
wait ; wait uses A and Y wait ; wait uses A and Y
; second loop - inverse again and put random "snow" to column of bytes ; second loop - inverse again and put random "snow" to column of bytes
ldx #0 ldx #60
ldy magic ldy magic
mva #$55 magic+1 mva #$55 magic+1
NextLine2 NextLine2
@@ -2380,10 +2379,9 @@ NextLine2
lda magic+1 lda magic+1
eor #$ff eor #$ff
sta magic+1 sta magic+1
inx dex
inx dex
cpx #60 bpl NextLine2
bne NextLine2
; and go to next column ; and go to next column
iny iny
cpy #40 cpy #40