Tank No fix and optimizations

This commit is contained in:
Pecusx
2022-09-16 18:48:58 +02:00
parent 9c5c701ca1
commit 0693e5d20e
3 changed files with 14 additions and 4 deletions
+13 -3
View File
@@ -1590,14 +1590,24 @@ nextPointChecking
lda (modify),y lda (modify),y
tax tax
NotHigher NotHigher
inw modify ; inw modify
cpw modify #(mountaintable+screenwidth) ; cpw modify #(mountaintable+screenwidth)
; --
; better code (with Y reg)
iny
bne @+
inc modify+1
@
lda modify+1
cmp #>(mountaintable+screenwidth)
bne @+
cpy #<screenwidth
@
bne nextPointChecking bne nextPointChecking
txa txa
rts rts
.endp .endp
; ----------------------------------------- ; -----------------------------------------
.proc unPlot .proc unPlot
; plots a point and saves the plotted byte, reverts the previous plot. ; plots a point and saves the plotted byte, reverts the previous plot.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1059,7 +1059,7 @@ NoArrowDown
sta difficultyLevel sta difficultyLevel
inx inx
stx decimal stx decimal
mwa #(NameScreen+41) displayposition mwa #(NameScreen2+9) displayposition
jsr displaybyte jsr displaybyte
jsr HighlightLevel ; setting choosen level of the opponent (Moron, etc) jsr HighlightLevel ; setting choosen level of the opponent (Moron, etc)