From f0e0b599c981cc41801d6e61a617c4c3a926ae7b Mon Sep 17 00:00:00 2001 From: Peter Ferrie <peter.ferrie@gmail.com> Date: Mon, 25 May 2020 22:32:03 -0700 Subject: [PATCH] fix Agent USA reset vector --- src/prelaunch/agent.u.s.a.a | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/prelaunch/agent.u.s.a.a diff --git a/src/prelaunch/agent.u.s.a.a b/src/prelaunch/agent.u.s.a.a new file mode 100644 index 000000000..59701c21f --- /dev/null +++ b/src/prelaunch/agent.u.s.a.a @@ -0,0 +1,29 @@ +;license:MIT +;(c) 2020 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH/AGENT.U.S.A",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $36D3 + jsr $366D ; decompress + + ldx #5 +- lda $100,x + sta $300,x + dex + bpl - + sec + rol $3F3 ; point to $300 instead + jsr $FB6F + + +DISABLE_ACCEL + jmp $837 + +!if * > $1C0 { + !error "code is too large, ends at ", * +}