diff --git a/res/DEMO/LODE.RUNNER b/res/DEMO/LODE.RUNNER index 9224372ce..037d19484 100755 Binary files a/res/DEMO/LODE.RUNNER and b/res/DEMO/LODE.RUNNER differ diff --git a/res/DEMO/LODE.RUNNER.1 b/res/DEMO/LODE.RUNNER.1 deleted file mode 100755 index 81d686c70..000000000 Binary files a/res/DEMO/LODE.RUNNER.1 and /dev/null differ diff --git a/res/DEMO/LODE.RUNNER.M b/res/DEMO/LODE.RUNNER.M deleted file mode 100755 index e1f1bb690..000000000 Binary files a/res/DEMO/LODE.RUNNER.M and /dev/null differ diff --git a/res/DEMO/_FileInformation.txt b/res/DEMO/_FileInformation.txt index 0b49b5922..f6a51c9d4 100644 --- a/res/DEMO/_FileInformation.txt +++ b/res/DEMO/_FileInformation.txt @@ -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) diff --git a/src/demo/lode.runner.a b/src/demo/lode.runner.a new file mode 100644 index 000000000..bf587d74e --- /dev/null +++ b/src/demo/lode.runner.a @@ -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 (would otherwise enter editor) + sta $61FD ; ignore (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 ", * +}