mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Meteors opty
This commit is contained in:
+17
-14
@@ -143,6 +143,7 @@ lab2
|
|||||||
; ------- RMT -------
|
; ------- RMT -------
|
||||||
SkipRMTVBL
|
SkipRMTVBL
|
||||||
; ------ meteors ------ start
|
; ------ meteors ------ start
|
||||||
|
ldx #0
|
||||||
bit Mcounter
|
bit Mcounter
|
||||||
bpl MeteorOnSky
|
bpl MeteorOnSky
|
||||||
bit MeteorsFlag
|
bit MeteorsFlag
|
||||||
@@ -163,30 +164,20 @@ SkipRMTVBL
|
|||||||
sta Mpoint2Y
|
sta Mpoint2Y
|
||||||
mva #10 Mcounter
|
mva #10 Mcounter
|
||||||
MeteorOnSky
|
MeteorOnSky
|
||||||
lda Mpoint1Y
|
jsr GoMplot
|
||||||
cmp #64
|
|
||||||
beq NoFirstPlot
|
|
||||||
sta EplotY
|
|
||||||
inc Mpoint1Y
|
|
||||||
mwa Mpoint1X EplotX
|
|
||||||
inw Mpoint1X
|
|
||||||
jsr Explot
|
|
||||||
NoFirstPlot
|
NoFirstPlot
|
||||||
|
ldx #2 ; second point coordinates
|
||||||
lda Mcounter
|
lda Mcounter
|
||||||
beq @+
|
beq @+
|
||||||
dec Mcounter
|
dec Mcounter
|
||||||
bpl SkipSecondPlot
|
bpl SkipSecondPlot
|
||||||
@ lda Mpoint2Y
|
@ lda Mpoint1Y,x
|
||||||
cmp #64
|
cmp #64
|
||||||
bne GoSecondPlot
|
bne GoSecondPlot
|
||||||
mva #$ff Mcounter
|
mva #$ff Mcounter
|
||||||
bmi SkipMeteors
|
bmi SkipMeteors
|
||||||
GoSecondPlot
|
GoSecondPlot
|
||||||
sta EplotY
|
jsr GoMplot2
|
||||||
inc Mpoint2Y
|
|
||||||
mwa Mpoint2X EplotX
|
|
||||||
inw Mpoint2X
|
|
||||||
jsr Explot
|
|
||||||
SkipSecondPlot
|
SkipSecondPlot
|
||||||
SkipMeteors
|
SkipMeteors
|
||||||
; ------ meteors ------ end
|
; ------ meteors ------ end
|
||||||
@@ -293,6 +284,18 @@ exit
|
|||||||
pla
|
pla
|
||||||
rti
|
rti
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
GoMplot
|
||||||
|
lda Mpoint1Y,x
|
||||||
|
cmp #64
|
||||||
|
beq @+
|
||||||
|
GoMplot2
|
||||||
|
sta EplotY
|
||||||
|
inc Mpoint1Y,x
|
||||||
|
mwa Mpoint1X,x EplotX
|
||||||
|
inw Mpoint1X,x
|
||||||
|
jmp Explot
|
||||||
|
@ rts
|
||||||
|
|
||||||
.endp
|
.endp
|
||||||
.IF TARGET = 5200
|
.IF TARGET = 5200
|
||||||
.proc kb_continue
|
.proc kb_continue
|
||||||
|
|||||||
+2
-2
@@ -42,10 +42,10 @@ AdditionalZPvariables = $20
|
|||||||
.zpvar EplotByte .word
|
.zpvar EplotByte .word
|
||||||
.zpvar EplotY .byte
|
.zpvar EplotY .byte
|
||||||
.zpvar Mpoint1X .word ; meteor first point X position
|
.zpvar Mpoint1X .word ; meteor first point X position
|
||||||
.zpvar Mpoint1Y .byte ; meteor first point Y position
|
|
||||||
.zpvar Mpoint2X .word ; meteor last point X position
|
.zpvar Mpoint2X .word ; meteor last point X position
|
||||||
.zpvar Mpoint2Y .byte ; meteor last point Y position
|
.zpvar Mpoint1Y .byte ; meteor first point Y position
|
||||||
.zpvar Mcounter .byte ; meteor length counter ( $ff - no meteor on sky )
|
.zpvar Mcounter .byte ; meteor length counter ( $ff - no meteor on sky )
|
||||||
|
.zpvar Mpoint2Y .byte ; meteor last point Y position
|
||||||
.zpvar MeteorsFlag .byte ; $ff - block meteors
|
.zpvar MeteorsFlag .byte ; $ff - block meteors
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user