mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Memory optimization.
This commit is contained in:
+1
-1
@@ -2021,7 +2021,7 @@ EndPut4x4
|
||||
|
||||
.proc SetMainScreen
|
||||
; mva #0 dmactls
|
||||
VDLI DLIinterruptGraph ; jsr SetDLI for graphics (game) screen
|
||||
SetDLI DLIinterruptGraph ; jsr SetDLI for graphics (game) screen
|
||||
mwa #dl dlptrs ; issue #72 (glitches when switches)
|
||||
lda #%00111110
|
||||
; and #$fc
|
||||
|
||||
+20
-3
@@ -1849,8 +1849,22 @@ noingame
|
||||
bne @-
|
||||
rts
|
||||
.endp
|
||||
|
||||
|
||||
;--------------------------------------------------
|
||||
.macro SetDLI
|
||||
; SetDLI #WORD
|
||||
; Initialises Display List Interrupts
|
||||
LDY # <:1
|
||||
LDX # >:1
|
||||
jsr _SetDLIproc
|
||||
.endm
|
||||
.proc _SetDLIproc
|
||||
LDA #$C0
|
||||
STY VDSLST
|
||||
STX VDSLST+1
|
||||
STA NMIEN
|
||||
rts
|
||||
.endp
|
||||
;--------------------------------------------------
|
||||
/* ;--------------------------------------------------
|
||||
.macro randomize floor ceiling
|
||||
;--------------------------------------------------
|
||||
@@ -1972,7 +1986,10 @@ EndofBFGDLI
|
||||
.endp
|
||||
; ------------------------
|
||||
.proc BFGblink
|
||||
VDLI DLIinterruptBFG
|
||||
SetDLI DLIinterruptBFG ; blinking on
|
||||
ldy #50
|
||||
jsr PauseYFrames
|
||||
SetDLI DLIinterruptGraph ; blinking off
|
||||
rts
|
||||
.endp
|
||||
;--------------------------------------------------
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+4
-4
@@ -33,7 +33,7 @@
|
||||
mva #$ca COLOR1
|
||||
mva #$00 COLBAKS ; set color of background
|
||||
|
||||
VDLI DLIinterruptOptions ; jsr SetDLI for Options text screen
|
||||
SetDLI DLIinterruptOptions ; jsr SetDLI for Options text screen
|
||||
|
||||
; -------- setup bottom (tanks) line
|
||||
lda NumberOfPlayers
|
||||
@@ -293,7 +293,7 @@ AfterManualPurchase
|
||||
GoToActivation
|
||||
mva #$ff LastWeapon
|
||||
|
||||
VDLI DLIinterruptText ; jsr SetDLI for text (purchase) screen
|
||||
SetDLI DLIinterruptText ; jsr SetDLI for text (purchase) screen
|
||||
jsr PMoutofScreen
|
||||
mwa #PurchaseDL dlptrs
|
||||
lda #@dmactl(narrow|dma) ; narrow screen width, DL on, P/M off
|
||||
@@ -1076,7 +1076,7 @@ NoArrowDown
|
||||
mwa #NameDL dlptrs
|
||||
lda #%00110001 ; narrow screen width, DL on, P/M off
|
||||
sta dmactls
|
||||
VDLI DLIinterruptText ; jsr SetDLI for text (names) screen
|
||||
SetDLI DLIinterruptText ; jsr SetDLI for text (names) screen
|
||||
|
||||
mva #0 TankNr
|
||||
sta COLBAKS ; set color of background
|
||||
@@ -2074,7 +2074,7 @@ FinishResultDisplay
|
||||
sta COLBAKS ; set color of background
|
||||
sta CreditsVScrol
|
||||
mva #TextForegroundColor COLOR2
|
||||
VDLI DLIinterruptGameOver ; jsr SetDLI for Game Over screen
|
||||
SetDLI DLIinterruptGameOver ; jsr SetDLI for Game Over screen
|
||||
; make text and color lines for each tank
|
||||
ldx NumberOfPlayers ;we start from the highest (best) tank
|
||||
dex ;and it is the last one
|
||||
|
||||
+1
-3
@@ -57,10 +57,8 @@ tracer
|
||||
rts
|
||||
.endp
|
||||
.proc BFG
|
||||
mva #sfx_baby_missile sfx_effect
|
||||
mva #sfx_plasma_2_2 sfx_effect
|
||||
jsr BFGblink
|
||||
;wait 50
|
||||
;VDLI DLIinterruptGraph ; blinking off (but no memory :) )
|
||||
; Kill all :)
|
||||
ldx NumberOfPlayers
|
||||
dex
|
||||
|
||||
Reference in New Issue
Block a user