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

Function CmdCursorPageDown

source/Debugger/Debug.cpp:3712–3745  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3710
3711//===========================================================================
3712Update_t CmdCursorPageDown (int nArgs)
3713{
3714 int iLines = 0; // show at least 1 line from previous display
3715 int nLines = WindowGetHeight( g_iWindowThis );
3716
3717 if (nLines < 2)
3718 nLines = 2;
3719
3720 if (g_iWindowThis == WINDOW_DATA)
3721 {
3722 const int nStep = 128;
3723 _CursorMoveDownAligned( nStep );
3724 }
3725 else
3726 {
3727// 4
3728// while (++iLines < nLines)
3729// CmdCursorLineDown(nArgs);
3730
3731// 5
3732 nLines -= (g_nDisasmCurLine + 1);
3733 if (nLines < 1)
3734 nLines = 1;
3735
3736 while (iLines++ < nLines)
3737 {
3738 CmdCursorLineDown( 0 ); // nArgs
3739 }
3740// 6
3741
3742 }
3743
3744 return UPDATE_DISASM;
3745}
3746
3747
3748//===========================================================================

Callers 1

DebuggerProcessKeyFunction · 0.85

Calls 3

WindowGetHeightFunction · 0.85
_CursorMoveDownAlignedFunction · 0.85
CmdCursorLineDownFunction · 0.85

Tested by

no test coverage detected