mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
50% of Tetryx
This commit is contained in:
@@ -2,12 +2,22 @@
|
|||||||
icl '../../Atari/lib/ATARISYS.ASM'
|
icl '../../Atari/lib/ATARISYS.ASM'
|
||||||
icl '../../Atari/lib/MACRO.ASM'
|
icl '../../Atari/lib/MACRO.ASM'
|
||||||
|
|
||||||
|
.zpvar dliCounter .byte = $80
|
||||||
|
.zpvar TetryxColor .byte
|
||||||
|
|
||||||
org $2000
|
org $2000
|
||||||
|
|
||||||
WeaponFont
|
WeaponFont
|
||||||
ins '../weapons_AW6_mod.fnt' ; 'artwork/weapons.fnt'
|
ins '../weapons_AW6_mod.fnt' ; 'artwork/weapons.fnt'
|
||||||
|
|
||||||
main
|
main
|
||||||
|
lda #0
|
||||||
|
sta TetryxColor
|
||||||
|
lda RANDOM
|
||||||
|
bmi TnotVisible
|
||||||
|
lda #10
|
||||||
|
sta TetryxColor
|
||||||
|
TnotVisible
|
||||||
ldx #3
|
ldx #3
|
||||||
@ lda colors,x
|
@ lda colors,x
|
||||||
sta COLOR0-1,x
|
sta COLOR0-1,x
|
||||||
@@ -15,19 +25,62 @@ main
|
|||||||
bpl @-
|
bpl @-
|
||||||
mva #>WeaponFont chbas
|
mva #>WeaponFont chbas
|
||||||
mwa #MenuDL dlptrs
|
mwa #MenuDL dlptrs
|
||||||
|
VMAIN VBLinterrupt,7 ;jsr SetVBL
|
||||||
|
SetDLI DLIinterrupt
|
||||||
lda #@dmactl(narrow|dma) ; narrow screen width, DL on, P/M off
|
lda #@dmactl(narrow|dma) ; narrow screen width, DL on, P/M off
|
||||||
sta dmactls
|
sta dmactls
|
||||||
|
|
||||||
stop
|
stop
|
||||||
jmp stop
|
jmp stop
|
||||||
|
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc DLIinterrupt
|
||||||
|
pha
|
||||||
|
lda dliCounter
|
||||||
|
bne SecondDLI
|
||||||
|
FirstDLI
|
||||||
|
lda #0
|
||||||
|
;sta WSYNC
|
||||||
|
sta COLPF2
|
||||||
|
beq EndOfDLI
|
||||||
|
SecondDLI
|
||||||
|
lda TetryxColor
|
||||||
|
sta COLPF1
|
||||||
|
EndOfDLI
|
||||||
|
inc dliCounter
|
||||||
|
pla
|
||||||
|
DLIinterruptNone
|
||||||
|
rti
|
||||||
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc VBLinterrupt
|
||||||
|
mva #0 dliCounter
|
||||||
|
jmp XITVBV
|
||||||
|
.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
|
||||||
|
;--------------------------------------------------
|
||||||
|
|
||||||
; DL for menu
|
; DL for menu
|
||||||
MenuDL
|
MenuDL
|
||||||
.byte $70,$70,$70,$70
|
.byte $70,$70,$70,$70
|
||||||
.byte $4e
|
.byte $4e
|
||||||
.word picData
|
.word picData
|
||||||
:29 .byte $0e
|
:29 .byte $0e
|
||||||
.byte $70,$70
|
.byte $70,$70+$80
|
||||||
.byte $47
|
.byte $47
|
||||||
.word MenuTitle
|
.word MenuTitle
|
||||||
.byte $30,$70
|
.byte $30,$70
|
||||||
@@ -35,6 +88,7 @@ MenuDL
|
|||||||
.word MenuOptions
|
.word MenuOptions
|
||||||
.byte $10,$02
|
.byte $10,$02
|
||||||
.byte $10,$02
|
.byte $10,$02
|
||||||
|
.byte $10+$80,$02
|
||||||
.byte $41
|
.byte $41
|
||||||
.word MenuDL
|
.word MenuDL
|
||||||
|
|
||||||
@@ -78,10 +132,11 @@ colors
|
|||||||
.BYTE 0,14,10,4
|
.BYTE 0,14,10,4
|
||||||
|
|
||||||
MenuTitle
|
MenuTitle
|
||||||
dta d" select option "*
|
dta d" SELECT OPTION "
|
||||||
MenuOptions
|
MenuOptions
|
||||||
dta d" E - English Manual "
|
dta d" E - English Manual "
|
||||||
dta d" P - Polska instrukcja "
|
dta d" P - Polska instrukcja "
|
||||||
dta d" G - Start Game "
|
dta d" G - Start Game "
|
||||||
|
dta d" T - Start Tetryx Game "
|
||||||
|
|
||||||
run main
|
run main
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user