mirror of
https://github.com/simh/simh.git
synced 2026-01-19 17:38:39 +00:00
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.
Description
Languages
C
97.6%
Assembly
1%
Batchfile
0.5%
Makefile
0.4%
Module Management System
0.3%