Skip to content

Commit

Permalink
Added shortcuts to step more instructions
Browse files Browse the repository at this point in the history
Holding Ctrl modifies multiplies the 10/100/1000 step keys by 1000 for even
larger steps. These can be handy when narrowing down emulation issues.
  • Loading branch information
simonowen committed Jul 7, 2021
1 parent 2d9be9e commit a8133dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Base/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,14 +450,16 @@ void View::SetAddress(uint16_t wAddr_, bool /*fForceTop_*/)

bool View::cmdNavigate(int nKey_, int nMods_)
{
auto ctrl = (nMods_ == HM_CTRL);

switch (nKey_)
{
case HK_KP7: cmdStep(1, nMods_ != HM_NONE); break;
case HK_KP8: cmdStepOver(nMods_ == HM_CTRL); break;
case HK_KP8: cmdStepOver(ctrl); break;
case HK_KP9: cmdStepOut(); break;
case HK_KP4: cmdStep(10); break;
case HK_KP5: cmdStep(100); break;
case HK_KP6: cmdStep(1000); break;
case HK_KP4: cmdStep(ctrl ? 10'000 : 10); break;
case HK_KP5: cmdStep(ctrl ? 100'000 : 100); break;
case HK_KP6: cmdStep(ctrl ? 1'000'000 : 1000); break;

default: return false;
}
Expand Down
6 changes: 3 additions & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ Disassembly View:
Keypad-7 = single step 1 instruction
Keypad-8 = step over instruction
Keypad-9 = step out of function
Keypad-4 = step 10 instructions
Keypad-5 = step 100 instructions
Keypad-6 = step 1000 instructions
Keypad-4 = step 10 instructions (10000)
Keypad-4/5/6 = step 10/100/1000 instructions
Ctrl-KP4/5/6 = step 10K/100K/1M instructions
Ctrl-Keypad-8 = step over with code timing (no ints, border contention)
Left/Right = scroll 1 byte
Up/Down = scroll 1 instruction
Expand Down

0 comments on commit a8133dd

Please sign in to comment.