From aa486656b3cd71b3e506d1b446f3506162f8bea3 Mon Sep 17 00:00:00 2001 From: Peter Evans <pevans@activecampaign.com> Date: Wed, 10 Jan 2018 16:47:18 -0600 Subject: [PATCH] Set the reset vector to the applesoft interpreter address --- src/apple2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apple2.c b/src/apple2.c index 5ca3e81..8ffe081 100644 --- a/src/apple2.c +++ b/src/apple2.c @@ -190,6 +190,11 @@ apple2_boot(apple2 *mach) } } + // To begin with, we need to set the reset vector to the Applesoft + // interpeter. + vm_segment_set16(mach->memory, APPLE2_RESET_VECTOR, + APPLE2_APPLESOFT_MAIN); + if (option_flag(OPTION_FLASH)) { mos6502_flash_memory(mach->cpu, mach->drive1->data); }