From 4e4be90331a35d2bfe5367ae4d733f8d9a6a65bd Mon Sep 17 00:00:00 2001 From: Daniel Loffgren Date: Tue, 22 Dec 2015 08:13:21 +0000 Subject: [PATCH] The boot sequence is a little more sensible now, and the messages are better, too. git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@79 64f78de7-aa59-e511-a0e8-0002a5492df0 --- apple1/main.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apple1/main.c b/apple1/main.c index c1e9ca0..193a460 100644 --- a/apple1/main.c +++ b/apple1/main.c @@ -101,23 +101,23 @@ int main(int argc, const char * argv[]) printf("Loading ROM...\n"); v6502_loadFileAtAddress(cpu->memory, "apple1.rom", RESET_VECTOR); //v6502_map(cpu->memory, start, ROM_SIZE, romMirrorCallback, NULL, NULL); - + + // Load integer BASIC + FILE *file = fopen("apple1basic.bin", "r"); + if (file) { + fclose(file); + printf("Loading BASIC...\n"); + v6502_loadFileAtAddress(cpu->memory, "apple1basic.bin", BASIC_LOAD_ADDRESS); + } + // Load debugger script int verbose = 0; - FILE *file = fopen("apple1.dbg", "r"); + file = fopen("apple1.dbg", "r"); if (file) { - printf("Loading debugger script...\n"); + printf("Executing debugger script...\n"); v6502_runDebuggerScript(cpu, file, breakpoint_list, table, run, &verbose); fclose(file); } - - // Load integer BASIC - file = fopen("apple1basic.bin", "r"); - if (file) { - fclose(file); - printf("Loading BASIC tape at 0x%4x...\n", BASIC_LOAD_ADDRESS); - v6502_loadFileAtAddress(cpu->memory, "apple1basic.bin", BASIC_LOAD_ADDRESS); - } // Attach PIA printf("Initializing PIA...\n");