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