From 77cb37355c2f1244bf8cb731d78a77d1155fbf1c Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 23 Dec 2019 23:03:31 -0500 Subject: [PATCH] Pitstop II: reset to reboot --- src/prelaunch/pitstop.ii.a | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/prelaunch/pitstop.ii.a diff --git a/src/prelaunch/pitstop.ii.a b/src/prelaunch/pitstop.ii.a new file mode 100644 index 000000000..ca0f45c03 --- /dev/null +++ b/src/prelaunch/pitstop.ii.a @@ -0,0 +1,21 @@ +;license:MIT +;(c) 2019 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH/PITSTOP.II",plain +*=$106 + + !source "src/prelaunch/common.a" + + lda #$60 + sta $4055 + jsr $4000 ; decompress + +LC_REBOOT + lda #$2c + sta $b12 + sta $b17 ; don't let game change reset vector + jmp $a00 + +!if * > $1C0 { + !error "code is too large, ends at ", * +}