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
This commit is contained in:
Daniel Loffgren 2015-12-22 08:13:21 +00:00
parent 87c8a20489
commit 4e4be90331
1 changed files with 11 additions and 11 deletions

View File

@ -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");