DLI optimization

No more WSYNC :)
This commit is contained in:
Pecusx
2022-10-29 16:22:53 +02:00
parent fe990a6668
commit c7aea8e3ab
4 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -13,9 +13,10 @@ PurchaseDL
DLPurTitleAddr DLPurTitleAddr
.word PurchaseTitle .word PurchaseTitle
.byte $50 .byte $50
.byte $42+$80 .byte $42
.word purchaseTextBuffer .word purchaseTextBuffer
.byte $60,$42 .byte $00+$80
.byte $50,$42
MoreUpdl MoreUpdl
.word EmptyLine .word EmptyLine
.byte 0,$42 .byte 0,$42
+4 -4
View File
@@ -1168,14 +1168,14 @@ MakeTanksVisible
lda dliCounter lda dliCounter
bne EndofPMG bne EndofPMG
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 EndOfDLI_GO
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 EndOfDLI_GO
ColoredLines ColoredLines
@@ -1184,7 +1184,7 @@ ColoredLines
tay tay
lda GameOverColoursTable-3,y ; -2 because this is DLI nr 2 and -1 (labels line) lda GameOverColoursTable-3,y ; -2 because this is DLI nr 2 and -1 (labels line)
ldy #$0a ; text colour (brightnes) ldy #$0a ; text colour (brightnes)
STA WSYNC ;STA WSYNC
sta COLPF2 sta COLPF2
sty COLPF1 sty COLPF1
bne EndOfDLI_GO bne EndOfDLI_GO
@@ -1202,7 +1202,7 @@ EndOfDLI_GO
;sta dliA ;sta dliA
pha pha
lda #TextBackgroundColor lda #TextBackgroundColor
sta WSYNC ;sta WSYNC
sta COLPF2 sta COLPF2
mva #TextForegroundColor COLPF3 mva #TextForegroundColor COLPF3
;lda dliA ;lda dliA
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.