mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
A slightly faster SoilDown.
This commit is contained in:
+1
-2
@@ -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
@@ -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
@@ -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
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user