===========================================================================
| 3605 | |
| 3606 | //=========================================================================== |
| 3607 | Update_t CmdCursorJumpPC (int nArgs) |
| 3608 | { |
| 3609 | // TODO: Allow user to decide if they want next g_aOpcodes at |
| 3610 | // 1) Centered (traditionaly), or |
| 3611 | // 2) Top of the screen |
| 3612 | |
| 3613 | // if (UserPrefs.bNextInstructionCentered) |
| 3614 | if (CURSOR_ALIGN_CENTER == nArgs) |
| 3615 | { |
| 3616 | g_nDisasmCurAddress = regs.pc; // (2) |
| 3617 | WindowUpdateDisasmSize(); // calc cur line |
| 3618 | } |
| 3619 | else |
| 3620 | if (CURSOR_ALIGN_TOP == nArgs) |
| 3621 | { |
| 3622 | g_nDisasmCurAddress = regs.pc; // (2) |
| 3623 | g_nDisasmCurLine = 0; |
| 3624 | } |
| 3625 | |
| 3626 | DisasmCalcTopBotAddress(); |
| 3627 | |
| 3628 | return UPDATE_ALL; |
| 3629 | } |
| 3630 | |
| 3631 | |
| 3632 | //=========================================================================== |
no test coverage detected