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

Function CmdCursorPageUp

source/Debugger/Debug.cpp:3765–3794  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3763
3764//===========================================================================
3765Update_t CmdCursorPageUp (int nArgs)
3766{
3767 int iLines = 0; // show at least 1 line from previous display
3768 int nLines = WindowGetHeight( g_iWindowThis );
3769
3770 if (nLines < 2)
3771 nLines = 2;
3772
3773 if (g_iWindowThis == WINDOW_DATA)
3774 {
3775 const int nStep = 128;
3776 _CursorMoveUpAligned( nStep );
3777 }
3778 else
3779 {
3780// while (++iLines < nLines)
3781// CmdCursorLineUp(nArgs);
3782 nLines -= (g_nDisasmCurLine + 1);
3783 if (nLines < 1)
3784 nLines = 1;
3785
3786 while (iLines++ < nLines)
3787 {
3788 CmdCursorLineUp( 0 ); // smart line up
3789 // CmdCursorLineUp( -nLines );
3790 }
3791 }
3792
3793 return UPDATE_DISASM;
3794}
3795
3796//===========================================================================
3797Update_t CmdCursorPageUp256 (int nArgs)

Callers 1

DebuggerProcessKeyFunction · 0.85

Calls 3

WindowGetHeightFunction · 0.85
_CursorMoveUpAlignedFunction · 0.85
CmdCursorLineUpFunction · 0.85

Tested by

no test coverage detected