mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Minor optimizaion
This commit is contained in:
+1
-1
@@ -1340,7 +1340,7 @@ CharOK
|
|||||||
CharacterFound
|
CharacterFound
|
||||||
; now in X we have Character (index) on PositionInName
|
; now in X we have Character (index) on PositionInName
|
||||||
; wait for centered joy
|
; wait for centered joy
|
||||||
mva #128-15 pressTimer ; reset (trick)
|
mva #128-KeyRepeatSpeed pressTimer ; reset (trick)
|
||||||
@ lda STICK0
|
@ lda STICK0
|
||||||
and #$0f
|
and #$0f
|
||||||
cmp #$0f
|
cmp #$0f
|
||||||
|
|||||||
+6
-24
@@ -226,7 +226,7 @@ PutPixelinDraw
|
|||||||
inw LineLength
|
inw LineLength
|
||||||
bit Vdebug
|
bit Vdebug
|
||||||
bmi MeasureVisualisation
|
bmi MeasureVisualisation
|
||||||
jmp ContinueDraw ; was `bne` - not good, because LineLength starts from $ffff
|
bpl ContinueDraw ; jmp
|
||||||
@
|
@
|
||||||
bvc @+
|
bvc @+
|
||||||
DrawCheck
|
DrawCheck
|
||||||
@@ -765,7 +765,7 @@ noTankNoPM
|
|||||||
bne NoShieldDraw
|
bne NoShieldDraw
|
||||||
DrawTankSh
|
DrawTankSh
|
||||||
jsr DrawTankShield
|
jsr DrawTankShield
|
||||||
jmp NoShieldDraw
|
beq NoShieldDraw ; JMP
|
||||||
DrawTankShieldWihHorns
|
DrawTankShieldWihHorns
|
||||||
jsr DrawTankShield
|
jsr DrawTankShield
|
||||||
jsr DrawTankShieldHorns
|
jsr DrawTankShieldHorns
|
||||||
@@ -773,7 +773,7 @@ DrawTankShieldWihHorns
|
|||||||
DrawTankShieldBold
|
DrawTankShieldBold
|
||||||
jsr DrawTankShield
|
jsr DrawTankShield
|
||||||
jsr DrawTankShieldBoldLine
|
jsr DrawTankShieldBoldLine
|
||||||
jmp NoShieldDraw
|
beq NoShieldDraw ; JMP
|
||||||
DrawTankFlag
|
DrawTankFlag
|
||||||
lda #char_flag ; flag symbol
|
lda #char_flag ; flag symbol
|
||||||
sta CharCode
|
sta CharCode
|
||||||
@@ -868,7 +868,7 @@ tankflash_loop
|
|||||||
inw ydraw
|
inw ydraw
|
||||||
dec temp
|
dec temp
|
||||||
bne @-
|
bne @-
|
||||||
rts
|
rts ; Z allways set
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DrawTankShieldHorns
|
.proc DrawTankShieldHorns
|
||||||
@@ -904,7 +904,7 @@ tankflash_loop
|
|||||||
.nowarn dew xdraw
|
.nowarn dew xdraw
|
||||||
dec temp
|
dec temp
|
||||||
bne @-
|
bne @-
|
||||||
rts
|
rts ; Z allways set
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DrawTankParachute
|
.proc DrawTankParachute
|
||||||
@@ -1264,24 +1264,6 @@ ThereWasNoParachute
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
/*
|
|
||||||
;--------------------------------------------------
|
|
||||||
drawmountainspixel ; never used ?
|
|
||||||
;--------------------------------------------------
|
|
||||||
mwa #0 xdraw
|
|
||||||
mwa #mountaintable modify
|
|
||||||
drawmountainspixelloop
|
|
||||||
ldy #0
|
|
||||||
lda (modify),y
|
|
||||||
sta ydraw
|
|
||||||
sty ydraw+1
|
|
||||||
jsr plot
|
|
||||||
inw modify
|
|
||||||
inw xdraw
|
|
||||||
cpw xdraw #screenwidth
|
|
||||||
bne drawmountainspixelloop
|
|
||||||
rts
|
|
||||||
*/
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc SoilDown
|
.proc SoilDown
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -1946,7 +1928,7 @@ X lda XtanksTableL,x
|
|||||||
sta yc ; current tank barrel length
|
sta yc ; current tank barrel length
|
||||||
lda angleTable,x
|
lda angleTable,x
|
||||||
sta Angle
|
sta Angle
|
||||||
jmp DrawBarrelTech
|
; jmp DrawBarrelTech ; POZOR !
|
||||||
; rts
|
; rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user