Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions handy-win32src-0.95-patched/gui-windows/Codewin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,16 +483,16 @@ void CCodeWin::OnLButtonDblClk(UINT nFlags, CPoint point)
C6502_REGS regs;
mSystem.GetRegs(regs);

for(int loop=0;loop<MAX_CPU_BREAKPOINTS;loop++)
int loop;
for(loop=0;loop<MAX_CPU_BREAKPOINTS;loop++)
{
// Unset if already set
if(address==regs.cpuBreakpoints[loop]) break;
}
int loop;
if(loop>=MAX_CPU_BREAKPOINTS)
{
// New breakpoint at next free
for(int loop=0;loop<MAX_CPU_BREAKPOINTS;loop++)
for(loop=0;loop<MAX_CPU_BREAKPOINTS;loop++)
{
// Unset if already set
if(regs.cpuBreakpoints[loop]>0xffff) break;
Expand Down
3 changes: 2 additions & 1 deletion handy-win32src-0.95-patched/gui-windows/Debuggerwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,15 @@ bool CDebuggerWin::CommandStep(int argc, char **argv)
else
{
LineOutput("Invalid PC, must be in range 0-ffff");
return false;
}
}
else
{
gSystemHalt=FALSE; // Make sure we run always
gSingleStepMode=TRUE; // Go for it....
}
return false;
return true;
}

bool CDebuggerWin::CommandBpoint(int argc, char **argv)
Expand Down