Added a single step on run to escape breakpoints when run immediately from them

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@67 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2015-12-10 01:25:30 +00:00
parent df221f0440
commit 39b525ae71
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,10 @@ static void run(v6502_cpu *cpu) {
FILE *asmfile = fopen("runtime.s", "w");
pia_start(pia, continuousMode);
// Step once (since the PIA is now up) to escape debugger traps if we happened to be resumed from a breakpoint
v6502_step(cpu);
// This depends on the fact that pia_start will get curses up and going
if (!consoleMessageSeen) {
wmove(pia->screen, getmaxy(pia->screen) - 1, getmaxx(pia->screen) - sizeof(DEBUGGER_MESSAGE));