From 39b65c5e803b9b5fd16bce88803cf1764bee36df Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Sun, 12 Jul 2020 11:33:06 -0700 Subject: [PATCH] fix Gumball reset --- src/prelaunch/gumball.a | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/prelaunch/gumball.a diff --git a/src/prelaunch/gumball.a b/src/prelaunch/gumball.a new file mode 100644 index 000000000..26bd44abb --- /dev/null +++ b/src/prelaunch/gumball.a @@ -0,0 +1,32 @@ +;license:MIT +;(c) 2020 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH/GUMBALL",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $851 + jsr $800 ; load "DOS" + lda #$20 + sta $B21E + lda #callback + sta $B220 + +DISABLE_ACCEL + jmp $B2F1 + +callback + lda $5F + asl + bne + + dec $E09 ++ rts + +!if * > $1C0 { + !error "code is too large, ends at ", * +}