Lode Runner demo launcher (#426)

* Add files via upload

* Delete LODE.RUNNER.1

* Delete LODE.RUNNER.M

* Add files via upload
This commit is contained in:
frankmilliron 2021-11-06 12:10:35 -07:00 committed by GitHub
parent c487e53283
commit 7e57ae9417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -71,9 +71,7 @@ LADY.TUT.1=Type(F1),AuxType(0000),Access(C3)
LASER.BOUNCE=Type(06),AuxType(0300),Access(C3)
LASER.BOUNCE.1=Type(F1),AuxType(0000),Access(C3)
LAZER.SILK=Type(06),AuxType(0300),Access(C3)
LODE.RUNNER=Type(06),AuxType(1F00),Access(C3)
LODE.RUNNER.1=Type(F1),AuxType(0000),Access(C3)
LODE.RUNNER.M=Type(F1),AuxType(0000),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)
MOON.PATROL=Type(06),AuxType(0200),Access(C3)

68
src/demo/lode.runner.a Normal file
View File

@ -0,0 +1,68 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/LODE.RUNNER",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 #14-1 ; we also need to copy the length byte
- lda newpath,x
sta $BFD0,x
dex
bpl -
lda #$60
sta $1F4E
jsr $1F00 ; decompress
lda #$24
sta $61FB ; ignore <Ctrl-E> (would otherwise enter editor)
sta $61FD ; ignore <RETURN> (would otherwise show high scores)
lda #$4C
sta $69CD
lda #$62
sta $69CD+2
lda #$01
sta $69CD+1 ; exit after user presses button
sta $61F4
lda #$62
sta $61F4+1 ; exit after demo player dies
ldx #6-1
- lda patch, x
sta $6201, x
dex
bpl - ; exit after user presses any key
+DISABLE_ACCEL
jmp $9050
patch !byte $AD,$88,$C0,$6C,$FC,$FF
newpath
!byte 13
!text "X/LODE.RUNNER"
title !byte x_e-x_b
x_b !text "X/LODE.RUNNER/LODE.RUNNER"
x_e
!if * > $300 {
!error "code is too large, ends at ", *
}