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:
parent
87c8a20489
commit
4e4be90331
|
@ -101,23 +101,23 @@ int main(int argc, const char * argv[])
|
||||||
printf("Loading ROM...\n");
|
printf("Loading ROM...\n");
|
||||||
v6502_loadFileAtAddress(cpu->memory, "apple1.rom", RESET_VECTOR);
|
v6502_loadFileAtAddress(cpu->memory, "apple1.rom", RESET_VECTOR);
|
||||||
//v6502_map(cpu->memory, start, ROM_SIZE, romMirrorCallback, NULL, NULL);
|
//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
|
// Load debugger script
|
||||||
int verbose = 0;
|
int verbose = 0;
|
||||||
FILE *file = fopen("apple1.dbg", "r");
|
file = fopen("apple1.dbg", "r");
|
||||||
if (file) {
|
if (file) {
|
||||||
printf("Loading debugger script...\n");
|
printf("Executing debugger script...\n");
|
||||||
v6502_runDebuggerScript(cpu, file, breakpoint_list, table, run, &verbose);
|
v6502_runDebuggerScript(cpu, file, breakpoint_list, table, run, &verbose);
|
||||||
fclose(file);
|
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
|
// Attach PIA
|
||||||
printf("Initializing PIA...\n");
|
printf("Initializing PIA...\n");
|
||||||
|
|
Loading…
Reference in New Issue