mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Opry - 10B free :)
This commit is contained in:
+21
-11
@@ -32,20 +32,17 @@
|
|||||||
; will be needed, because everything is calculated relatively
|
; will be needed, because everything is calculated relatively
|
||||||
mwa #$ffff LineLength
|
mwa #$ffff LineLength
|
||||||
mwa xdraw xtempDRAW
|
mwa xdraw xtempDRAW
|
||||||
mwa ydraw ytempDRAW
|
|
||||||
|
; It's a little crazy, but we don't have to check later to see if Y is out of screen
|
||||||
|
mva ydraw ytempDRAW
|
||||||
|
mva ydraw+1 ytempDRAW+1
|
||||||
|
bmi DrawOutOfTheScreen
|
||||||
|
|
||||||
; if line goes our of the screen we are not drawing it, but...
|
; if line goes our of the screen we are not drawing it, but...
|
||||||
|
|
||||||
cpw xdraw #screenwidth
|
cpw xdraw #screenwidth
|
||||||
bcs DrawOutOfTheScreen
|
bcs DrawOutOfTheScreen
|
||||||
cpw xbyte #screenwidth
|
cpw xbyte #screenwidth
|
||||||
bcs DrawOutOfTheScreen
|
bcs DrawOutOfTheScreen
|
||||||
;cpw ydraw #screenheight
|
|
||||||
;bcs DrawOutOfTheScreen
|
|
||||||
;cpw ybyte #screenheight
|
|
||||||
;bcc DrawOnTheScreen
|
|
||||||
lda ydraw+1
|
|
||||||
bmi DrawOutOfTheScreen
|
|
||||||
lda ybyte+1
|
lda ybyte+1
|
||||||
bpl DrawOnTheScreen
|
bpl DrawOnTheScreen
|
||||||
DrawOutOfTheScreen
|
DrawOutOfTheScreen
|
||||||
@@ -1496,9 +1493,15 @@ OnePart
|
|||||||
beq ToBottom
|
beq ToBottom
|
||||||
|
|
||||||
ToTop ;it means substracting
|
ToTop ;it means substracting
|
||||||
|
;sbw yfloat delta
|
||||||
sbw yfloat delta
|
sec
|
||||||
|
lda yfloat
|
||||||
|
sbc delta
|
||||||
|
sta yfloat
|
||||||
lda yfloat+1
|
lda yfloat+1
|
||||||
|
sbc delta+1
|
||||||
|
sta yfloat+1
|
||||||
|
;lda yfloat+1
|
||||||
cmp #margin
|
cmp #margin
|
||||||
bcs @+
|
bcs @+
|
||||||
; if smaller than 10
|
; if smaller than 10
|
||||||
@@ -1507,8 +1510,15 @@ ToTop ;it means substracting
|
|||||||
jmp @+
|
jmp @+
|
||||||
|
|
||||||
ToBottom
|
ToBottom
|
||||||
adw yfloat delta
|
;adw yfloat delta
|
||||||
|
clc
|
||||||
|
lda yfloat
|
||||||
|
adc delta
|
||||||
|
sta yfloat
|
||||||
lda yfloat+1
|
lda yfloat+1
|
||||||
|
adc delta+1
|
||||||
|
sta yfloat+1
|
||||||
|
;lda yfloat+1
|
||||||
cmp #screenheight-margin
|
cmp #screenheight-margin
|
||||||
bcc @+
|
bcc @+
|
||||||
; if higher than screen
|
; if higher than screen
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user