===========================================================================
| 3763 | |
| 3764 | //=========================================================================== |
| 3765 | Update_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 | //=========================================================================== |
| 3797 | Update_t CmdCursorPageUp256 (int nArgs) |
no test coverage detected