mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
New (faster) ingame DLI
This commit is contained in:
+2
-2
@@ -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
@@ -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
Binary file not shown.
BIN
Binary file not shown.
@@ -414,6 +414,8 @@ ResultX
|
|||||||
;ResultY .DS 1
|
;ResultY .DS 1
|
||||||
ResultOfTankNr
|
ResultOfTankNr
|
||||||
.DS 1
|
.DS 1
|
||||||
|
DliColorBack
|
||||||
|
.ds 1
|
||||||
|
|
||||||
;----------------------------------------------------
|
;----------------------------------------------------
|
||||||
;PutChar4x4
|
;PutChar4x4
|
||||||
|
|||||||
Reference in New Issue
Block a user