mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-28 03:29:59 +00:00
demo launcher stuff (#436)
* Add files via upload * Delete REPTON.1 * Add files via upload
This commit is contained in:
parent
31a37400c4
commit
6143e05eba
Binary file not shown.
Binary file not shown.
BIN
res/DEMO/MC
BIN
res/DEMO/MC
Binary file not shown.
BIN
res/DEMO/REPTON
BIN
res/DEMO/REPTON
Binary file not shown.
Binary file not shown.
@ -65,7 +65,7 @@ LASER.BOUNCE.1=Type(F1),AuxType(0000),Access(C3)
|
|||||||
LAZER.SILK=Type(06),AuxType(0300),Access(C3)
|
LAZER.SILK=Type(06),AuxType(0300),Access(C3)
|
||||||
LODE.RUNNER=Type(06),AuxType(0200),Access(C3)
|
LODE.RUNNER=Type(06),AuxType(0200),Access(C3)
|
||||||
LOST.TOMB=Type(06),AuxType(084D),Access(C3)
|
LOST.TOMB=Type(06),AuxType(084D),Access(C3)
|
||||||
MC=Type(06),AuxType(3FE7),Access(C3)
|
MC=Type(06),AuxType(0200),Access(C3)
|
||||||
MOON.PATROL=Type(06),AuxType(0200),Access(C3)
|
MOON.PATROL=Type(06),AuxType(0200),Access(C3)
|
||||||
NIGHT.STALKER=Type(06),AuxType(A000),Access(C3)
|
NIGHT.STALKER=Type(06),AuxType(A000),Access(C3)
|
||||||
NI=Type(06),AuxType(0300),Access(C3)
|
NI=Type(06),AuxType(0300),Access(C3)
|
||||||
@ -80,8 +80,7 @@ PLASMANIA=Type(06),AuxType(0200),Access(C3)
|
|||||||
PHASER.FIRE=Type(06),AuxType(9200),Access(C3)
|
PHASER.FIRE=Type(06),AuxType(9200),Access(C3)
|
||||||
PHASER.FIRE.1=Type(F1),AuxType(0000),Access(C3)
|
PHASER.FIRE.1=Type(F1),AuxType(0000),Access(C3)
|
||||||
POOYAN=Type(06),AuxType(0300),Access(C3)
|
POOYAN=Type(06),AuxType(0300),Access(C3)
|
||||||
REPTON=Type(06),AuxType(0300),Access(C3)
|
REPTON=Type(06),AuxType(0200),Access(C3)
|
||||||
REPTON.1=Type(F1),AuxType(0000),Access(C3)
|
|
||||||
ROBOTRON.2084=Type(06),AuxType(BF70),Access(C3)
|
ROBOTRON.2084=Type(06),AuxType(BF70),Access(C3)
|
||||||
SAMMY.LIGHTFOOT=Type(06),AuxType(BA00),Access(C3)
|
SAMMY.LIGHTFOOT=Type(06),AuxType(BA00),Access(C3)
|
||||||
SERPENTINE=Type(06),AuxType(0300),Access(C3)
|
SERPENTINE=Type(06),AuxType(0300),Access(C3)
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
!source "src/constants.a" ; no code in these
|
!source "src/constants.a" ; no code in these
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+GAME_REQUIRES_JOYSTICK
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
jsr EnableAccelerator
|
||||||
+LOAD_FILE_AT title, $00
|
+LOAD_FILE_AT title, $00
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
!source "src/constants.a" ; no code in these
|
!source "src/constants.a" ; no code in these
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+GAME_REQUIRES_JOYSTICK
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
jsr EnableAccelerator
|
||||||
|
|
||||||
|
70
src/demo/mr.cool.a
Normal file
70
src/demo/mr.cool.a
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2021 by Frank M.
|
||||||
|
|
||||||
|
!cpu 6502
|
||||||
|
!to "res/DEMO/MC",plain
|
||||||
|
*=$200
|
||||||
|
|
||||||
|
!source "src/constants.a" ; no code in these
|
||||||
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+READ_RAM2_WRITE_RAM2
|
||||||
|
jsr EnableAccelerator
|
||||||
|
|
||||||
|
;+LOAD_FILE_KEEP_DIR
|
||||||
|
ldx #0 ; read to main memory
|
||||||
|
stx ldrhi
|
||||||
|
stx ldrlo
|
||||||
|
+LDADDR title
|
||||||
|
jsr iLoadFileDirect
|
||||||
|
|
||||||
|
ldx #5-1 ; we also need to copy the length byte
|
||||||
|
- lda newpath,x
|
||||||
|
sta $BFD0,x
|
||||||
|
dex
|
||||||
|
bpl -
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $83C
|
||||||
|
jsr $800 ; decompress
|
||||||
|
|
||||||
|
lda #$4C
|
||||||
|
sta $597F
|
||||||
|
sta $5A05
|
||||||
|
lda #0
|
||||||
|
sta $597F+1
|
||||||
|
sta $5A05+1
|
||||||
|
lda #1
|
||||||
|
sta $597F+2 ; set exit on keypress
|
||||||
|
sta $5A05+2 ; set exit on button press
|
||||||
|
|
||||||
|
lda #$20
|
||||||
|
sta $7F37
|
||||||
|
lda #<callback
|
||||||
|
sta $7F37+1
|
||||||
|
lda #>callback
|
||||||
|
sta $7F37+2 ; exit at end of demo cycle
|
||||||
|
|
||||||
|
+DISABLE_ACCEL
|
||||||
|
|
||||||
|
jmp $4000
|
||||||
|
|
||||||
|
callback
|
||||||
|
sta $5E9B
|
||||||
|
lda $5C04
|
||||||
|
cmp #$0C
|
||||||
|
beq exit
|
||||||
|
rts
|
||||||
|
exit jmp $0100
|
||||||
|
|
||||||
|
newpath
|
||||||
|
!byte 4
|
||||||
|
!text "X/MC"
|
||||||
|
|
||||||
|
title !byte x_e-x_b
|
||||||
|
x_b !text "X/MC/MC"
|
||||||
|
x_e
|
||||||
|
|
||||||
|
!if * > $300 {
|
||||||
|
!error "code is too large, ends at ", *
|
||||||
|
}
|
65
src/demo/repton.a
Normal file
65
src/demo/repton.a
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2021 by Frank M.
|
||||||
|
|
||||||
|
!cpu 6502
|
||||||
|
!to "res/DEMO/REPTON",plain
|
||||||
|
*=$200
|
||||||
|
|
||||||
|
!source "src/constants.a" ; no code in these
|
||||||
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+READ_RAM2_WRITE_RAM2
|
||||||
|
jsr EnableAccelerator
|
||||||
|
|
||||||
|
;+LOAD_FILE_KEEP_DIR
|
||||||
|
ldx #0 ; read to main memory
|
||||||
|
stx ldrhi
|
||||||
|
stx ldrlo
|
||||||
|
+LDADDR title
|
||||||
|
jsr iLoadFileDirect
|
||||||
|
|
||||||
|
ldx #9-1 ; we also need to copy the length byte
|
||||||
|
- lda newpath,x
|
||||||
|
sta $BFD0,x
|
||||||
|
dex
|
||||||
|
bpl -
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $086D
|
||||||
|
jsr $0800 ; decompress1
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $BA18
|
||||||
|
jsr $BA03 ; decompress2
|
||||||
|
|
||||||
|
ldx #5-1
|
||||||
|
- lda patch1, x
|
||||||
|
sta $06A3, x ; ($06A6 in notes, second byte of patch also changes to $13)
|
||||||
|
dex
|
||||||
|
bpl - ; exit when user presses any key
|
||||||
|
|
||||||
|
ldx #3-1
|
||||||
|
- lda patch2, x
|
||||||
|
sta $07A4, x
|
||||||
|
dex
|
||||||
|
bpl - ; exit at end of demo cycle
|
||||||
|
|
||||||
|
+DISABLE_ACCEL
|
||||||
|
|
||||||
|
jmp $0767
|
||||||
|
|
||||||
|
patch1 !byte $10,$13,$4C,$00,$01
|
||||||
|
|
||||||
|
patch2 !byte $4C,$00,$01
|
||||||
|
|
||||||
|
newpath
|
||||||
|
!byte 8
|
||||||
|
!text "X/REPTON"
|
||||||
|
|
||||||
|
title !byte x_e-x_b
|
||||||
|
x_b !text "X/REPTON/REPTON"
|
||||||
|
x_e
|
||||||
|
|
||||||
|
!if * > $300 {
|
||||||
|
!error "code is too large, ends at ", *
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user