Minor optimizations

LiquidDirt and TypeChar (8x8 on graphics screen - like tanks) are little faster now.
This commit is contained in:
Pecusx
2022-05-12 19:45:42 +02:00
parent 572bee982a
commit 91b39e736b
3 changed files with 12 additions and 18 deletions
+9 -17
View File
@@ -1175,7 +1175,7 @@ DrawLine .proc
sec sec
sbc ydraw sbc ydraw
sta tempbyte01 sta tempbyte01
jsr plot jsr plot.MakePlot
;rts ;rts
jmp IntoDraw ; jumps inside Draw routine jmp IntoDraw ; jumps inside Draw routine
; because one pixel is already plotted ; because one pixel is already plotted
@@ -1261,29 +1261,21 @@ CopyMask
ldx ybit ldx ybit
beq MaskOK00 beq MaskOK00
MakeMask00 MakeMask00
clc ; INVERSE lsr mask1 ; INVERSE
ror mask1
ror mask2 ror mask2
clc ; INVERSE lsr mask1+1 ; INVERSE
ror mask1+1
ror mask2+1 ror mask2+1
clc ; INVERSE lsr mask1+2 ; INVERSE
ror mask1+2
ror mask2+2 ror mask2+2
clc ; INVERSE lsr mask1+3 ; INVERSE
ror mask1+3
ror mask2+3 ror mask2+3
clc ; INVERSE lsr mask1+4 ; INVERSE
ror mask1+4
ror mask2+4 ror mask2+4
clc ; INVERSE lsr mask1+5 ; INVERSE
ror mask1+5
ror mask2+5 ror mask2+5
clc ; INVERSE lsr mask1+6 ; INVERSE
ror mask1+6
ror mask2+6 ror mask2+6
clc ; INVERSE lsr mask1+7 ; INVERSE
ror mask1+7
ror mask2+7 ror mask2+7
sec ; INVERSE sec ; INVERSE
ror char1 ror char1
BIN
View File
Binary file not shown.
+3 -1
View File
@@ -949,11 +949,13 @@ FillHole
adw xdraw #mountaintable tempXROLLER adw xdraw #mountaintable tempXROLLER
lda (tempXROLLER),y lda (tempXROLLER),y
sta ydraw sta ydraw
beq ToHighFill ; if we filled all playfield (very rare but possible)
dec ydraw ; one pixel up dec ydraw ; one pixel up
ToHighFill
lda ydraw lda ydraw
sta (tempXROLLER),y ;mountaintable update sta (tempXROLLER),y ;mountaintable update
mva #1 color mva #1 color
jsr plot jsr plot.MakePlot
.nowarn dew FillCounter .nowarn dew FillCounter
cpw FillCounter #0 cpw FillCounter #0
jne RepeatFill jne RepeatFill