mirror of
https://github.com/RyuKojiro/apple1.git
synced 2024-06-26 13:29:30 +00:00
Automatically load debugger script named apple1.dbg if it exists
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@63 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
parent
379075260f
commit
caf0f3b028
|
@ -88,6 +88,15 @@ int main(int argc, const char * argv[])
|
||||||
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 debugger script
|
||||||
|
int verbose = 0;
|
||||||
|
FILE *file = fopen("apple1.dbg", "r");
|
||||||
|
if (file) {
|
||||||
|
printf("Loading debugger script...\n");
|
||||||
|
v6502_runDebuggerScript(cpu, file, breakpoint_list, table, run, &verbose);
|
||||||
|
fclose(file);
|
||||||
|
}
|
||||||
|
|
||||||
// Attach PIA
|
// Attach PIA
|
||||||
printf("Initializing PIA...\n");
|
printf("Initializing PIA...\n");
|
||||||
pia = pia_create(cpu->memory);
|
pia = pia_create(cpu->memory);
|
||||||
|
@ -98,7 +107,6 @@ int main(int argc, const char * argv[])
|
||||||
printf("Running...\n");
|
printf("Running...\n");
|
||||||
run(cpu);
|
run(cpu);
|
||||||
|
|
||||||
int verbose = 0;
|
|
||||||
int commandLen;
|
int commandLen;
|
||||||
HistEvent ev;
|
HistEvent ev;
|
||||||
History *hist = history_init();
|
History *hist = history_init();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user