mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Nuclear Winter optimization - we save 4 bytes
:)
This commit is contained in:
BIN
Binary file not shown.
+8
-10
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user