demo launcher stuff (#436)

* Add files via upload

* Delete REPTON.1

* Add files via upload
This commit is contained in:
frankmilliron 2021-11-13 14:06:52 -08:00 committed by GitHub
parent 31a37400c4
commit 6143e05eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 139 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -65,7 +65,7 @@ LASER.BOUNCE.1=Type(F1),AuxType(0000),Access(C3)
LAZER.SILK=Type(06),AuxType(0300),Access(C3)
LODE.RUNNER=Type(06),AuxType(0200),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)
NIGHT.STALKER=Type(06),AuxType(A000),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.1=Type(F1),AuxType(0000),Access(C3)
POOYAN=Type(06),AuxType(0300),Access(C3)
REPTON=Type(06),AuxType(0300),Access(C3)
REPTON.1=Type(F1),AuxType(0000),Access(C3)
REPTON=Type(06),AuxType(0200),Access(C3)
ROBOTRON.2084=Type(06),AuxType(BF70),Access(C3)
SAMMY.LIGHTFOOT=Type(06),AuxType(BA00),Access(C3)
SERPENTINE=Type(06),AuxType(0300),Access(C3)

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator

70
src/demo/mr.cool.a Normal file
View 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
View 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 ", *
}