A slightly faster SoilDown.

This commit is contained in:
Pecusx
2023-11-15 19:14:18 +01:00
parent 9c6816685c
commit 84b5904f44
6 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -202,7 +202,7 @@ ClearPlot
; checks state of the pixel (coordinates in xdraw and ydraw) ; checks state of the pixel (coordinates in xdraw and ydraw)
; xdraw (word) - X coordinate ; xdraw (word) - X coordinate
; ydraw (word) - Y coordinate ; ydraw (word) - Y coordinate
; result is in A (zero or appropriate bit is set) ; result is in A (0 - point is set; appropriate bit is set - point is clear) INVERTED!
; let's calculate coordinates from xdraw and ydraw ; let's calculate coordinates from xdraw and ydraw
@@ -226,7 +226,6 @@ ClearPlot
ldx xdraw ; optimization (256 bytes long bittable) ldx xdraw ; optimization (256 bytes long bittable)
lda (xbyte),y lda (xbyte),y
eor #$ff
and bittable1_long,x and bittable1_long,x
rts rts
.endp .endp
+1 -2
View File
@@ -159,7 +159,7 @@ ClearPlot
; checks state of the pixel (coordinates in xdraw and ydraw) ; checks state of the pixel (coordinates in xdraw and ydraw)
; xdraw (word) - X coordinate ; xdraw (word) - X coordinate
; ydraw (word) - Y coordinate ; ydraw (word) - Y coordinate
; result is in A (zero or appropriate bit is set) ; result is in A (0 - point is set; appropriate bit is set - point is clear) INVERTED!
; let's calculate coordinates from xdraw and ydraw ; let's calculate coordinates from xdraw and ydraw
@@ -182,7 +182,6 @@ ClearPlot
ldy #0 ldy #0
lda (xbyte),y lda (xbyte),y
eor #$ff
and bittable1_long,x and bittable1_long,x
rts rts
.endp .endp
+3 -3
View File
@@ -1074,7 +1074,7 @@ DoNotClearParachute
sta temp ; Loop Counter sta temp ; Loop Counter
ByteBelowTank ByteBelowTank
jsr point_plot jsr point_plot
beq EmptyPoint2 bne EmptyPoint2
sec sec
ror UnderTank2 ror UnderTank2
sec sec
@@ -1340,7 +1340,7 @@ NextColumn1
mwa #0 ydraw mwa #0 ydraw
NextPoint1 NextPoint1
jsr point_plot jsr point_plot
bne FoundFirstPoint beq FoundFirstPoint
StillNothing StillNothing
inc ydraw inc ydraw
lda ydraw lda ydraw
@@ -1392,7 +1392,7 @@ FalloutOfLine
; and checking if there is a pixel there ; and checking if there is a pixel there
sta ydraw sta ydraw
jsr point_plot jsr point_plot
bne ThereIsPixelHere beq ThereIsPixelHere
; if no pixel we plot it ; if no pixel we plot it
mva #1 color mva #1 color
jsr plot.MakePlot jsr plot.MakePlot
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.