MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / CmdCursorJumpPC

Function CmdCursorJumpPC

source/Debugger/Debug.cpp:3607–3629  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

3605
3606//===========================================================================
3607Update_t CmdCursorJumpPC (int nArgs)
3608{
3609 // TODO: Allow user to decide if they want next g_aOpcodes at
3610 // 1) Centered (traditionaly), or
3611 // 2) Top of the screen
3612
3613 // if (UserPrefs.bNextInstructionCentered)
3614 if (CURSOR_ALIGN_CENTER == nArgs)
3615 {
3616 g_nDisasmCurAddress = regs.pc; // (2)
3617 WindowUpdateDisasmSize(); // calc cur line
3618 }
3619 else
3620 if (CURSOR_ALIGN_TOP == nArgs)
3621 {
3622 g_nDisasmCurAddress = regs.pc; // (2)
3623 g_nDisasmCurLine = 0;
3624 }
3625
3626 DisasmCalcTopBotAddress();
3627
3628 return UPDATE_ALL;
3629}
3630
3631
3632//===========================================================================

Callers 2

DebuggerMouseClickFunction · 0.85
DebuggerProcessKeyFunction · 0.85

Calls 2

WindowUpdateDisasmSizeFunction · 0.85
DisasmCalcTopBotAddressFunction · 0.85

Tested by

no test coverage detected