mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
First attempt - done!
This commit is contained in:
+8
-18
@@ -16,8 +16,7 @@ unPlotAfterX
|
|||||||
lda oldplotH,x
|
lda oldplotH,x
|
||||||
sta oldplot+1
|
sta oldplot+1
|
||||||
|
|
||||||
lda oldply,x
|
ldy #0
|
||||||
tay
|
|
||||||
lda oldora,x
|
lda oldora,x
|
||||||
sta (oldplot),y
|
sta (oldplot),y
|
||||||
|
|
||||||
@@ -31,30 +30,24 @@ CheckX
|
|||||||
jcs EndOfUnPlot
|
jcs EndOfUnPlot
|
||||||
MakeUnPlot
|
MakeUnPlot
|
||||||
; let's count coordinates taken from xdraw and ydraw
|
; let's count coordinates taken from xdraw and ydraw
|
||||||
;xbyte = xbyte/8
|
|
||||||
lda xdraw+1
|
|
||||||
lsr
|
|
||||||
lda xdraw
|
lda xdraw
|
||||||
ror ;just one bit over 256. Max screenwidth = 512!!!
|
and #%11111000
|
||||||
lsr
|
;sta xbyte
|
||||||
lsr
|
;---
|
||||||
;---
|
|
||||||
tay
|
|
||||||
ldx WhichUnPlot
|
|
||||||
tya
|
|
||||||
sta oldply,x
|
|
||||||
|
|
||||||
ldx ydraw
|
ldx ydraw
|
||||||
lda linetableL,x
|
clc
|
||||||
|
adc linetableL,x
|
||||||
sta xbyte
|
sta xbyte
|
||||||
sta oldplot
|
sta oldplot
|
||||||
lda linetableH,x
|
lda linetableH,x
|
||||||
|
adc xdraw+1
|
||||||
sta xbyte+1
|
sta xbyte+1
|
||||||
sta oldplot+1
|
sta oldplot+1
|
||||||
|
|
||||||
lda xdraw
|
lda xdraw
|
||||||
and #$7
|
and #$7
|
||||||
tax
|
tax
|
||||||
|
ldy #0
|
||||||
|
|
||||||
lda color
|
lda color
|
||||||
bne ClearUnPlot
|
bne ClearUnPlot
|
||||||
@@ -91,9 +84,6 @@ LetsCheckOverlapping
|
|||||||
lda oldplotH,x
|
lda oldplotH,x
|
||||||
cmp oldplotH,y
|
cmp oldplotH,y
|
||||||
bne NotTheSamePlot
|
bne NotTheSamePlot
|
||||||
lda oldply,x
|
|
||||||
cmp oldply,y
|
|
||||||
bne NotTheSamePlot
|
|
||||||
; the pixel is in the same byte so let's take correct contents
|
; the pixel is in the same byte so let's take correct contents
|
||||||
lda oldora,x
|
lda oldora,x
|
||||||
sta oldora,y
|
sta oldora,y
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
icl 'definitions.asm'
|
icl 'definitions.asm'
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
|
|
||||||
FirstZpageVariable = $30 ; $57
|
FirstZpageVariable = $58 ; $57
|
||||||
.zpvar DliColorBack .byte = FirstZpageVariable
|
.zpvar DliColorBack .byte = FirstZpageVariable
|
||||||
.zpvar GradientNr .byte
|
.zpvar GradientNr .byte
|
||||||
.zpvar GradientColors .word
|
.zpvar GradientColors .word
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user