mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-19 13:32:36 +00:00
Fixed CmdCursorSetPC command: (PR #775)
. Hitting "=" in the debugger should set PC to the current cursor address
This commit is contained in:
parent
db373c6955
commit
1739a84b0f
@ -3659,9 +3659,9 @@ Update_t CmdCursorPageUp4K (int nArgs)
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
Update_t CmdCursorSetPC( int nArgs) // TODO rename
|
||||
Update_t CmdCursorSetPC(int)
|
||||
{
|
||||
regs.pc = nArgs; // HACK:
|
||||
regs.pc = g_nDisasmCurAddress; // set PC to current cursor address
|
||||
return UPDATE_DISASM;
|
||||
}
|
||||
|
||||
@ -9610,7 +9610,7 @@ void DebuggerProcessKey( int keycode )
|
||||
|
||||
case VK_RIGHT:
|
||||
if (KeybGetCtrlStatus())
|
||||
bUpdateDisplay |= CmdCursorSetPC( g_nDisasmCurAddress );
|
||||
bUpdateDisplay |= CmdCursorSetPC(0/*unused*/);
|
||||
else
|
||||
if (KeybGetShiftStatus())
|
||||
bUpdateDisplay |= CmdCursorJumpPC( CURSOR_ALIGN_TOP );
|
||||
|
Loading…
x
Reference in New Issue
Block a user