mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
Next try...
This commit is contained in:
@@ -220,5 +220,18 @@ ClearPlot
|
|||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc SetMainScreen
|
||||||
|
; mva #0 dmactls
|
||||||
|
SetDLI DLIinterruptGraph ; jsr SetDLI for graphics (game) screen
|
||||||
|
mwa #dl dlptrs ; issue #72 (glitches when switches)
|
||||||
|
lda #%00111110
|
||||||
|
; and #$fc
|
||||||
|
; ora #$02 ; 2=normal, 3 = wide screen width
|
||||||
|
sta dmactls
|
||||||
|
mva WallsType COLBAKS ; set color of background
|
||||||
|
jsr WaitOneFrame
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
|
||||||
.ENDIF
|
.ENDIF
|
||||||
@@ -220,5 +220,12 @@ ClearPlot
|
|||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc SetMainScreen
|
||||||
|
SwitchVICBank(0)
|
||||||
|
SetScreenMemory(displayC64)
|
||||||
|
SetHiresBitmapMode ; Hires mode on
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
|
||||||
.ENDIF
|
.ENDIF
|
||||||
@@ -2244,19 +2244,6 @@ quit_seppuku
|
|||||||
|
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
|
||||||
.proc SetMainScreen
|
|
||||||
; mva #0 dmactls
|
|
||||||
SetDLI DLIinterruptGraph ; jsr SetDLI for graphics (game) screen
|
|
||||||
mwa #dl dlptrs ; issue #72 (glitches when switches)
|
|
||||||
lda #%00111110
|
|
||||||
; and #$fc
|
|
||||||
; ora #$02 ; 2=normal, 3 = wide screen width
|
|
||||||
sta dmactls
|
|
||||||
mva WallsType COLBAKS ; set color of background
|
|
||||||
jsr WaitOneFrame
|
|
||||||
rts
|
|
||||||
.endp
|
|
||||||
; -------------------------------------
|
; -------------------------------------
|
||||||
.proc SetupXYdraw
|
.proc SetupXYdraw
|
||||||
lda ytankstable,x
|
lda ytankstable,x
|
||||||
|
|||||||
BIN
Binary file not shown.
+3
-27
@@ -182,9 +182,6 @@ FirstSTART
|
|||||||
DisplayCopyPurchaseEnd = 0
|
DisplayCopyPurchaseEnd = 0
|
||||||
DisplayCopyPurchaseStart = 0
|
DisplayCopyPurchaseStart = 0
|
||||||
displayC64 = $2000 ; graphics screen memory start
|
displayC64 = $2000 ; graphics screen memory start
|
||||||
SwitchVICBank(0)
|
|
||||||
SetScreenMemory(displayC64)
|
|
||||||
SetHiresBitmapMode ; Hires mode on
|
|
||||||
|
|
||||||
jsr MakeDarkScreen
|
jsr MakeDarkScreen
|
||||||
|
|
||||||
@@ -219,6 +216,8 @@ FirstSTART
|
|||||||
; Random INIT
|
; Random INIT
|
||||||
InitializeSIDrnd
|
InitializeSIDrnd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
; Main program of the game
|
; Main program of the game
|
||||||
icl 'game.asm'
|
icl 'game.asm'
|
||||||
@@ -306,30 +305,7 @@ getkeyend
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc WaitForKeyRelease
|
.proc WaitForKeyRelease
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
mva #128-KeyRepeatSpeed pressTimer ; tricky
|
StillWait
|
||||||
StillWait
|
|
||||||
bit pressTimer
|
|
||||||
bmi KeyReleased
|
|
||||||
lda STICK0
|
|
||||||
and #$0f
|
|
||||||
cmp #$0f
|
|
||||||
bne StillWait
|
|
||||||
lda STRIG0
|
|
||||||
beq StillWait
|
|
||||||
.IF TARGET = 800
|
|
||||||
lda SKSTAT
|
|
||||||
cmp #$ff
|
|
||||||
bne StillWait
|
|
||||||
lda CONSOL
|
|
||||||
and #%00000110 ; Select and Option only
|
|
||||||
cmp #%00000110
|
|
||||||
bne StillWait
|
|
||||||
.ELSE
|
|
||||||
lda SkStatSimulator
|
|
||||||
and #%11111110
|
|
||||||
beq StillWait
|
|
||||||
.ENDIF
|
|
||||||
KeyReleased
|
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user