mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
DLI code opt
This commit is contained in:
+11
-15
@@ -23,11 +23,11 @@ GoGradient
|
|||||||
iny
|
iny
|
||||||
lda (GradientColors),y ; mountains colors array
|
lda (GradientColors),y ; mountains colors array
|
||||||
sta COLPF2
|
sta COLPF2
|
||||||
jmp DLIinterruptGameOver.EndOfDLI_GO
|
EndOfDLI_Gr
|
||||||
; inc dliCounter
|
inc dliCounter
|
||||||
; ply
|
ply
|
||||||
; pla
|
pla
|
||||||
; rti
|
rti
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptOptions
|
.proc DLIinterruptOptions
|
||||||
@@ -42,13 +42,13 @@ GoGradient
|
|||||||
ldy #1
|
ldy #1
|
||||||
@ lda (GradientColors),y ; mountains colors array
|
@ lda (GradientColors),y ; mountains colors array
|
||||||
sta COLPF2 ; allways <> 0 !!!
|
sta COLPF2 ; allways <> 0 !!!
|
||||||
bne DLIinterruptGameOver.EndOfDLI_GO
|
bne DLIinterruptGraph.EndOfDLI_Gr
|
||||||
Subtitle
|
Subtitle
|
||||||
lda #0
|
lda #0
|
||||||
sta COLPF2
|
sta COLPF2
|
||||||
lda #4
|
lda #4
|
||||||
sta COLPF1
|
sta COLPF1
|
||||||
bne DLIinterruptGameOver.EndOfDLI_GO
|
bne DLIinterruptGraph.EndOfDLI_Gr
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptGameOver
|
.proc DLIinterruptGameOver
|
||||||
@@ -59,14 +59,14 @@ Subtitle
|
|||||||
lda #%00100001 ; playfield after P/M - prior=1
|
lda #%00100001 ; playfield after P/M - prior=1
|
||||||
;STA WSYNC
|
;STA WSYNC
|
||||||
sta PRIOR
|
sta PRIOR
|
||||||
bne EndOfDLI_GO
|
bne DLIinterruptGraph.EndOfDLI_Gr
|
||||||
EndofPMG
|
EndofPMG
|
||||||
cmp #1
|
cmp #1
|
||||||
bne ColoredLines
|
bne ColoredLines
|
||||||
lda #%00100100 ; playfield before P/M
|
lda #%00100100 ; playfield before P/M
|
||||||
;STA WSYNC
|
;STA WSYNC
|
||||||
sta PRIOR
|
sta PRIOR
|
||||||
bne EndOfDLI_GO
|
bne DLIinterruptGraph.EndOfDLI_Gr
|
||||||
ColoredLines
|
ColoredLines
|
||||||
cmp #9
|
cmp #9
|
||||||
beq CreditsScroll
|
beq CreditsScroll
|
||||||
@@ -76,15 +76,11 @@ ColoredLines
|
|||||||
;STA WSYNC
|
;STA WSYNC
|
||||||
sta COLPF2
|
sta COLPF2
|
||||||
sty COLPF1
|
sty COLPF1
|
||||||
bne EndOfDLI_GO
|
bne DLIinterruptGraph.EndOfDLI_Gr
|
||||||
CreditsScroll
|
CreditsScroll
|
||||||
lda #$00
|
lda #$00
|
||||||
sta COLPF2
|
sta COLPF2
|
||||||
EndOfDLI_GO
|
beq DLIinterruptGraph.EndOfDLI_Gr
|
||||||
inc dliCounter
|
|
||||||
ply
|
|
||||||
pla
|
|
||||||
rti
|
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc DLIinterruptText
|
.proc DLIinterruptText
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user