SDS: Add -f switch to Next command to force step-over mode

Add -f switch ("force") to the Next command to set the temporary breakpoints regardless of instruction type.  This is useful at
the bottom of loops or to avoid going off into unrelated code should an interrupt or memory paging trap occur.
This commit is contained in:
Mark Emmer 2014-04-17 07:55:12 -05:00
parent c4438e15f4
commit 2df2f33352
2 changed files with 3 additions and 2 deletions

View file

@ -1518,8 +1518,9 @@ uint32 inst;
reason = Read (P, &inst); /* get instr */
if ((reason == SCPE_OK) &&
((I_GETOP(inst) == BRM) || /* if BRM or */
(I_POP & inst))) { /* POP or SYSPOP */
((I_GETOP(inst) == BRM) || /* if BRM or */
(I_POP & inst) || /* POP or SYSPOP or */
(sim_switches & SWMASK('F')))) { /* Force switch */
returns[0] = (P + 1) & VA_MASK;
returns[1] = (P + 2) & VA_MASK;
*ret_addrs = returns;

Binary file not shown.