New (faster) ingame DLI

This commit is contained in:
Pecusx
2022-10-29 17:40:00 +02:00
parent c7aea8e3ab
commit cd70e8c1ec
5 changed files with 25 additions and 3 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ dl ; MAIN game display list
.byte $70 .byte $70
.byte $42 .byte $42
.word statusBuffer .word statusBuffer
.byte $02, $02 +$80 ;DLI .byte $02, $02
.byte $10 ; 2 blank lines .byte $10+$80 ; 2 blank lines + DLI
.byte $4f .byte $4f
.word display ; 1 line .word display ; 1 line
+21 -1
View File
@@ -1125,7 +1125,7 @@ MakeTanksVisible
rts rts
.endp .endp
;-------------------------------------------------- ;--------------------------------------------------
.proc DLIinterruptGraph /* .proc DLIinterruptGraph
;sta dliA ;sta dliA
;sty dliY ;sty dliY
pha pha
@@ -1145,6 +1145,25 @@ MakeTanksVisible
ply ply
pla pla
rti rti
.endp */
.proc DLIinterruptGraph
pha
lda dliColorsFore
nop
nop
.IF TARGET = 800
nop ; necessary on 800 because DLIs take less time, jitter visible without it
nop
nop
.ENDIF
sta COLPF2
lda DliColorBack
sta COLPF1
eor #$02
sta DliColorBack
pla
rti
.endp .endp
;-------------------------------------------------- ;--------------------------------------------------
.proc DLIinterruptOptions .proc DLIinterruptOptions
@@ -1213,6 +1232,7 @@ DLIinterruptNone
;-------------------------------------------------- ;--------------------------------------------------
.proc VBLinterrupt .proc VBLinterrupt
mva #0 dliCounter mva #0 dliCounter
mva #$02 DliColorBack
lda PAL lda PAL
and #%00001110 and #%00001110
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2
View File
@@ -414,6 +414,8 @@ ResultX
;ResultY .DS 1 ;ResultY .DS 1
ResultOfTankNr ResultOfTankNr
.DS 1 .DS 1
DliColorBack
.ds 1
;---------------------------------------------------- ;----------------------------------------------------
;PutChar4x4 ;PutChar4x4