mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Minor optimizations
This commit is contained in:
+5
-7
@@ -1401,7 +1401,6 @@ FalloutOfLine
|
||||
ldy #0
|
||||
lda (temp),y
|
||||
sta ydraw
|
||||
lda (temp),y
|
||||
clc
|
||||
adc #1
|
||||
sta (temp),y
|
||||
@@ -1441,11 +1440,11 @@ NothingToFall
|
||||
|
||||
; starting point
|
||||
getrandomY ;getting random Y coordinate
|
||||
sec
|
||||
; sec ; ???
|
||||
lda random
|
||||
cmp #screenheight-(margin*4) ;it means that max line=199
|
||||
bcs getrandomY
|
||||
clc
|
||||
; clc ; C is clear
|
||||
adc #(margin*2)
|
||||
sta ydraw
|
||||
sta yfloat+1
|
||||
@@ -1762,16 +1761,15 @@ DOTOldLowestValue
|
||||
:3 asl ; *8
|
||||
clc
|
||||
adc #<TanksNames
|
||||
sta temp ; TextAddress
|
||||
sta LineAddress4x4 ; TextAddress
|
||||
lda #0
|
||||
adc #>Tanksnames
|
||||
sta temp+1 ; TextAddress+1
|
||||
mwa temp LineAddress4x4
|
||||
sta LineAddress4x4+1 ; TextAddress+1
|
||||
|
||||
;find length of the tank's name
|
||||
ldy #7
|
||||
@
|
||||
lda (temp),y
|
||||
lda (LineAddress4x4),y
|
||||
bne end_found
|
||||
dey
|
||||
bne @-
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user