mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
speed up when [START] #73
This commit is contained in:
@@ -76,6 +76,9 @@
|
|||||||
.MACRO WAIT
|
.MACRO WAIT
|
||||||
; WAIT
|
; WAIT
|
||||||
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
|
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
|
||||||
|
lda CONSOL
|
||||||
|
cmp #6 ; START KEY
|
||||||
|
beq ?nowait
|
||||||
LDA VCOUNT
|
LDA VCOUNT
|
||||||
ldy vcount
|
ldy vcount
|
||||||
?WA cpy VCOUNT
|
?WA cpy VCOUNT
|
||||||
@@ -83,6 +86,7 @@
|
|||||||
?wframe
|
?wframe
|
||||||
cmp vcount
|
cmp vcount
|
||||||
bne ?wframe
|
bne ?wframe
|
||||||
|
?nowait
|
||||||
.ENDM
|
.ENDM
|
||||||
;-------------------------------------
|
;-------------------------------------
|
||||||
.macro negw
|
.macro negw
|
||||||
|
|||||||
BIN
Binary file not shown.
+21
-19
@@ -1581,15 +1581,6 @@ FinishResultDisplay
|
|||||||
lda WeaponSymbols,y
|
lda WeaponSymbols,y
|
||||||
sta TextBuffer+18
|
sta TextBuffer+18
|
||||||
|
|
||||||
;---------------------
|
|
||||||
;displaying the energy of a tank
|
|
||||||
;---------------------
|
|
||||||
|
|
||||||
lda Energy,x
|
|
||||||
|
|
||||||
sta decimal
|
|
||||||
mwa #textbuffer+48 displayposition
|
|
||||||
jsr displaybyte
|
|
||||||
;---------------------
|
;---------------------
|
||||||
;displaying quantity of the given weapon
|
;displaying quantity of the given weapon
|
||||||
;---------------------
|
;---------------------
|
||||||
@@ -1608,20 +1599,31 @@ FinishResultDisplay
|
|||||||
sta temp ;get back number of the weapon
|
sta temp ;get back number of the weapon
|
||||||
mva #0 temp+1
|
mva #0 temp+1
|
||||||
; times 16 (because this is length of weapon name)
|
; times 16 (because this is length of weapon name)
|
||||||
ldy #3 ; rotate 4 times
|
ldy #3 ; shift left 4 times
|
||||||
RotateDISP02
|
@
|
||||||
aslw temp
|
aslw temp
|
||||||
dey
|
dey
|
||||||
bpl RotateDISP02
|
bpl @-
|
||||||
|
|
||||||
adw temp #NamesOfWeapons
|
adw temp #NamesOfWeapons
|
||||||
ldy #6 ; from 6th character
|
ldy #6 ; from 6th character
|
||||||
|
|
||||||
ldy #15
|
ldy #15
|
||||||
loop06
|
@
|
||||||
lda (temp),y
|
lda (temp),y
|
||||||
sta textbuffer+23,y
|
sta textbuffer+23,y
|
||||||
dey
|
dey
|
||||||
bpl loop06
|
bpl @-
|
||||||
|
|
||||||
|
;---------------------
|
||||||
|
;displaying the energy of a tank
|
||||||
|
;---------------------
|
||||||
|
|
||||||
|
lda Energy,x
|
||||||
|
|
||||||
|
sta decimal
|
||||||
|
mwa #textbuffer+48 displayposition
|
||||||
|
jsr displaybyte
|
||||||
|
|
||||||
;=========================
|
;=========================
|
||||||
;display Force
|
;display Force
|
||||||
|
|||||||
+6
-2
@@ -753,7 +753,7 @@ UpNotYet
|
|||||||
beq HowMuchToFallRight2
|
beq HowMuchToFallRight2
|
||||||
.nowarn dew xdraw
|
.nowarn dew xdraw
|
||||||
lda xdraw
|
lda xdraw
|
||||||
bne RollinContinues ; like cpw xdraw #0
|
jne RollinContinues ; like cpw xdraw #0
|
||||||
lda xdraw+1
|
lda xdraw+1
|
||||||
jne RollinContinues
|
jne RollinContinues
|
||||||
beq ExplodeNow
|
beq ExplodeNow
|
||||||
@@ -1274,7 +1274,7 @@ AfterStrongShoot
|
|||||||
|
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
TankFalls .proc;
|
.proc TankFalls;
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
mva #sfx_shield_off sfx_effect
|
mva #sfx_shield_off sfx_effect
|
||||||
lda #0
|
lda #0
|
||||||
@@ -2380,6 +2380,9 @@ HowManyBullets .proc
|
|||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
ShellDelay .proc
|
ShellDelay .proc
|
||||||
|
lda CONSOL
|
||||||
|
cmp #6
|
||||||
|
beq noShellDelay
|
||||||
ldx flyDelay
|
ldx flyDelay
|
||||||
DelayLoop
|
DelayLoop
|
||||||
lda VCOUNT
|
lda VCOUNT
|
||||||
@@ -2387,6 +2390,7 @@ DelayLoop
|
|||||||
beq @-
|
beq @-
|
||||||
dex
|
dex
|
||||||
bne DelayLoop
|
bne DelayLoop
|
||||||
|
noShellDelay
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user