diff --git a/display_static.asm b/display_static.asm index dd3556a..92021a5 100644 --- a/display_static.asm +++ b/display_static.asm @@ -117,8 +117,8 @@ dl ; MAIN game display list .byte $70 .byte $42 .word statusBuffer - .byte $02, $02 +$80 ;DLI - .byte $10 ; 2 blank lines + .byte $02, $02 + .byte $10+$80 ; 2 blank lines + DLI .byte $4f .word display ; 1 line diff --git a/scorch.asm b/scorch.asm index 53eea34..0117c05 100644 --- a/scorch.asm +++ b/scorch.asm @@ -1125,7 +1125,7 @@ MakeTanksVisible rts .endp ;-------------------------------------------------- -.proc DLIinterruptGraph +/* .proc DLIinterruptGraph ;sta dliA ;sty dliY pha @@ -1145,6 +1145,25 @@ MakeTanksVisible ply pla 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 ;-------------------------------------------------- .proc DLIinterruptOptions @@ -1213,6 +1232,7 @@ DLIinterruptNone ;-------------------------------------------------- .proc VBLinterrupt mva #0 dliCounter + mva #$02 DliColorBack lda PAL and #%00001110 diff --git a/scorch.bin b/scorch.bin index 0055c8c..952afa4 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index deceafd..2763941 100644 Binary files a/scorch.xex and b/scorch.xex differ diff --git a/variables.asm b/variables.asm index 9098334..18988b2 100644 --- a/variables.asm +++ b/variables.asm @@ -414,6 +414,8 @@ ResultX ;ResultY .DS 1 ResultOfTankNr .DS 1 +DliColorBack + .ds 1 ;---------------------------------------------------- ;PutChar4x4