mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Opty and prepare for turbo in C64
This commit is contained in:
@@ -787,8 +787,7 @@ SetStartAndFlight ; set start point (virtual barrel end :) ) and make test fl
|
|||||||
sta ytraj+1
|
sta ytraj+1
|
||||||
mva #0 ytraj+2
|
mva #0 ytraj+2
|
||||||
mva NewAngle Angle
|
mva NewAngle Angle
|
||||||
lda CONSOL
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
beq @speedup
|
beq @speedup
|
||||||
jsr MoveBarrelToNewPosition
|
jsr MoveBarrelToNewPosition
|
||||||
bit escFlag
|
bit escFlag
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ START
|
|||||||
jsr MakeDarkScreen
|
jsr MakeDarkScreen
|
||||||
bit escFlag
|
bit escFlag
|
||||||
bpl @+
|
bpl @+
|
||||||
lda CONSOL
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
bne START
|
bne START
|
||||||
jmp StartAfterSplash ; reset all game option if Start key pressed (and Esc)
|
jmp StartAfterSplash ; reset all game option if Start key pressed (and Esc)
|
||||||
@
|
@
|
||||||
@@ -385,11 +384,7 @@ RoboTanks
|
|||||||
;ldx TankNr
|
;ldx TankNr
|
||||||
jsr DisplayStatus ; to make visible AI selected defensive (and offensive :) )
|
jsr DisplayStatus ; to make visible AI selected defensive (and offensive :) )
|
||||||
jsr MoveBarrelToNewPosition
|
jsr MoveBarrelToNewPosition
|
||||||
lda kbcode
|
jsr CheckExitKeys
|
||||||
cmp #@kbcode._esc ; 28 ; ESC
|
|
||||||
bne @+
|
|
||||||
jsr AreYouSure
|
|
||||||
@ bit escFlag
|
|
||||||
spl:rts ; keys Esc or O
|
spl:rts ; keys Esc or O
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+4
-8
@@ -800,8 +800,7 @@ DoNotDrawTankNr
|
|||||||
; number of blinking tank in TankNr
|
; number of blinking tank in TankNr
|
||||||
mva #18 fs ; temp, how many times flash the tank
|
mva #18 fs ; temp, how many times flash the tank
|
||||||
tankflash_loop
|
tankflash_loop
|
||||||
lda CONSOL ; turbo mode
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
sne:mva #1 fs ; finish it
|
sne:mva #1 fs ; finish it
|
||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
@@ -1313,8 +1312,7 @@ NoClearTanks
|
|||||||
.IF TARGET >= 800
|
.IF TARGET >= 800
|
||||||
lda FastSoilDown
|
lda FastSoilDown
|
||||||
bne GoFast
|
bne GoFast
|
||||||
lda CONSOL
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
bne @+
|
bne @+
|
||||||
GoFast
|
GoFast
|
||||||
jmp SoilDownTurbo.NoClearTanks
|
jmp SoilDownTurbo.NoClearTanks
|
||||||
@@ -1363,8 +1361,7 @@ FoundPeek1
|
|||||||
; main loop starts here
|
; main loop starts here
|
||||||
MainFallout2
|
MainFallout2
|
||||||
.IF TARGET >= 800
|
.IF TARGET >= 800
|
||||||
lda CONSOL
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
bne NoFastDown
|
bne NoFastDown
|
||||||
jmp SoilDownTurbo.NoClearTanks
|
jmp SoilDownTurbo.NoClearTanks
|
||||||
NoFastDown
|
NoFastDown
|
||||||
@@ -1873,8 +1870,7 @@ quit_areyousure
|
|||||||
|
|
||||||
mva #20 fs ; temp, how many times blink the billboard
|
mva #20 fs ; temp, how many times blink the billboard
|
||||||
seppuku_loop
|
seppuku_loop
|
||||||
lda CONSOL ; turbo mode
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
sne:mva #1 fs ; finish it
|
sne:mva #1 fs ; finish it
|
||||||
|
|
||||||
mva #4 ResultY ; where seppuku text starts Y-wise on the screen
|
mva #4 ResultY ; where seppuku text starts Y-wise on the screen
|
||||||
|
|||||||
+9
-4
@@ -597,8 +597,7 @@ MakeDarkScreen
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc WaitOneFrame
|
.proc WaitOneFrame
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
lda CONSOL
|
jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
seq:wait ; or waitRTC ?
|
seq:wait ; or waitRTC ?
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
@@ -615,6 +614,13 @@ MakeDarkScreen
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc CheckStartKey
|
||||||
|
;--------------------------------------------------
|
||||||
|
lda CONSOL ; turbo mode
|
||||||
|
and #%00000001 ; START KEY
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc CheckExitKeys
|
.proc CheckExitKeys
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -661,8 +667,7 @@ nokeys
|
|||||||
.proc ShellDelay
|
.proc ShellDelay
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
ldy flyDelay
|
ldy flyDelay
|
||||||
Y lda CONSOL
|
Y jsr CheckStartKey ; START KEY
|
||||||
and #%00000001 ; START KEY
|
|
||||||
beq noShellDelay
|
beq noShellDelay
|
||||||
DelayLoop
|
DelayLoop
|
||||||
lda VCOUNT
|
lda VCOUNT
|
||||||
|
|||||||
BIN
Binary file not shown.
+10
-2
@@ -321,7 +321,8 @@ MakeDarkScreen
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc WaitOneFrame
|
.proc WaitOneFrame
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
wait ; or waitRTC ?
|
jsr CheckStartKey ; START KEY
|
||||||
|
seq:wait ; or waitRTC ?
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
@@ -337,6 +338,12 @@ MakeDarkScreen
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc CheckStartKey
|
||||||
|
;--------------------------------------------------
|
||||||
|
lda #%00000001 ; START KEY not pressed
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc CheckExitKeys
|
.proc CheckExitKeys
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -352,7 +359,8 @@ MakeDarkScreen
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc ShellDelay
|
.proc ShellDelay
|
||||||
ldy flyDelay
|
ldy flyDelay
|
||||||
Y
|
Y jsr CheckStartKey ; START KEY
|
||||||
|
beq noShellDelay
|
||||||
DelayLoop
|
DelayLoop
|
||||||
lda $d012
|
lda $d012
|
||||||
@ cmp $d012
|
@ cmp $d012
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user