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

Function CmdCursorFollowTarget

source/Debugger/Debug.cpp:3275–3295  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3273
3274//===========================================================================
3275Update_t CmdCursorFollowTarget ( int nArgs )
3276{
3277 WORD nAddress = 0;
3278 if (_6502_GetTargetAddress( g_nDisasmCurAddress, nAddress ))
3279 {
3280 g_nDisasmCurAddress = nAddress;
3281
3282 if (CURSOR_ALIGN_CENTER == nArgs)
3283 {
3284 WindowUpdateDisasmSize();
3285 }
3286 else
3287 if (CURSOR_ALIGN_TOP == nArgs)
3288 {
3289 g_nDisasmCurLine = 0;
3290 }
3291 DisasmCalcTopBotAddress();
3292 }
3293
3294 return UPDATE_ALL;
3295}
3296
3297
3298//===========================================================================

Callers 1

DebuggerProcessKeyFunction · 0.85

Calls 3

_6502_GetTargetAddressFunction · 0.85
WindowUpdateDisasmSizeFunction · 0.85
DisasmCalcTopBotAddressFunction · 0.85

Tested by

no test coverage detected