simh-testsetgenerator/TX-0
Derek Peschel cc97971dc9 TX-0: Make ^E work in readin mode.
sim_instr does not completely follow the outline in the SIMH v3
developer docs. It does not decrease sim_interval in readin mode.
Fixing this, I cleaned up some other things:

- Move the decrease of sim_interval to after the check for breakpoints,
  but before the check for ios. This ensures that sim_interval will
  decrease any time an instruction executes in normal mode, or readin
  mode executes, or ios is set and the CPU is waiting for ios to clear.
  (Except the CPU should be clearing ios itself, not waiting for ios to
  clear, but that fix requires a complete redesign of the I/O routines
  and belongs in another branch.)
- Correctly handle all four combinations of mod_tst and mod_rdin.
- When changing from readin mode to normal mode, if cpu_set_mode returns
  an error, stop with the same error. If cpu_set_mode returns SCPE_OK,
  either stop or continue execution, depending on the word read from tape.
- In petr_boot and in the readin mode code in sim_instr, if the
  PETR is not attached to a file, return SCPE_UNATT. Never try to read
  from an unattached unit; I believe this reads standard input and
  prevents ^E from working.

Overall control structure inside the while (reason == 0) loop:

- When stopping due to an error, break out of the while loop where
  possible.
- After handling "ios is set", continue, don't run readin/test/normal-
  mode code.
- After handling one readin operation, if the code didn't break out
  of the while loop, continue, don't run normal-mode code.
2023-10-09 20:17:13 -04:00
..
bin_newMouse_3-22-66.bin Add mouse maze game and tic tac toe tapes. 2012-11-07 20:57:41 -08:00
bin_tic-tac-toe_new_code_12-16-61.bin Add mouse maze game and tic tac toe tapes. 2012-11-07 20:57:41 -08:00
CMakeLists.txt CMake build infrastructure II (#53) 2023-05-17 20:18:42 -04:00
loader.simh Add mouse maze game and tic tac toe tapes. 2012-11-07 20:57:41 -08:00
mouse.simh PDP11, PDP1, TX-0: Added SDL based graphics support using sim_video. 2016-01-29 10:16:30 -08:00
tic.simh PDP11, PDP1, TX-0: Added SDL based graphics support using sim_video. 2016-01-29 10:16:30 -08:00
tx0_cpu.c TX-0: Make ^E work in readin mode. 2023-10-09 20:17:13 -04:00
tx0_defs.h Various simulators: Set line endings to CRLF for consistency, remove stray tabs 2023-03-19 16:51:27 -04:00
tx0_diag.txt Initial public version of TX-0 for SIMH 2012-11-07 20:47:26 -08:00
tx0_dpy.c TX-0: Reconcile license with open-simh. 2022-10-09 09:10:26 -07:00
tx0_stddev.c TX-0: Make ^E work in readin mode. 2023-10-09 20:17:13 -04:00
tx0_sys.c TX-0: Reconcile license with open-simh. 2022-10-09 09:10:26 -07:00
tx0_sys_orig.c TX-0: Reconcile license with open-simh. 2022-10-09 09:10:26 -07:00