===========================================================================
| 3710 | |
| 3711 | //=========================================================================== |
| 3712 | Update_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 | //=========================================================================== |
no test coverage detected