1
0
mirror of https://github.com/simh/simh.git synced 2026-01-13 15:27:14 +00:00
Mark Pizzolato 71e745b0c8 PDP11: Fixed bug in history virtual addressing (Bob Supnik)
The problem has to do with the difference in how the PSW is stored when
the simulator is running (it's all in pieces) or stopped (it's collected in PSW).
cpu_ex is a console routine and expects the PSW to be stored in PSW, but
when history is collected, it's not. In particular, cm (current mode) is in local
variable cm.

cpu_ex with /v calls relocC, which derives the current mode from the
switches:

- if /ksup, use kernel/supervisor/user/previous mode (from PSW); otherwise,
   use current mode from PSW
- if /d, use data space; otherwise, use instruction space

relocC is doing current mode i-space, which is what's wanted... except that
it's deriving current mode from PSW, rather than cm, which is where it's stored
while the simulator is running. It's fairly likely that PSW is long obsolete by the
time the history is invoked.
2016-03-06 06:27:15 -08:00
..
2014-10-27 17:14:28 -07:00
2013-07-05 00:16:11 -04:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2015-02-13 06:18:24 -08:00
2016-01-07 01:24:43 -08:00
2015-02-13 06:18:24 -08:00
2015-11-25 05:21:55 -08:00