Commit graph

2837 commits

Author SHA1 Message Date
Mark Pizzolato
f404343b56 SCP: Make sure that SIMH version information is always available
include sim_rev.h in sim_defs.h
2017-06-23 04:24:54 -07:00
Mark Pizzolato
a93078cef9 I1620: Add register and modifier descriptions to CDR, LPT and DP devices 2017-06-20 08:06:21 -07:00
Mark Pizzolato
588c22dce5 I1620: Avoid use of 4.X APIs when building with simh 3.X 2017-06-20 07:52:38 -07:00
Mark Pizzolato
7e380e2b12 I1620: Fix SET CPU CPS to correctly change all unit DEFIO_CPS values
Add descriptions to registers and command modifiers
2017-06-20 06:12:27 -07:00
Mark Pizzolato
33d37b4f71 I1620: Add TTY device modifier descriptions 2017-06-20 06:10:11 -07:00
Mark Pizzolato
99798ec547 I1620: Fix PTP CPS and add register descriptions 2017-06-20 05:30:18 -07:00
Mark Pizzolato
5d50bfdfdc I1620: Add optional CPS polling to TTY input activities 2017-06-20 05:15:09 -07:00
Mark Pizzolato
8560c4a32f I1620: Fix wording in descriptive comment 2017-06-14 16:18:55 -07:00
Mark Pizzolato
0c4bf36e1e I620: Provide optional rate limited I/O for TTY, PTR & ptp
Default behavior is to schedule the inter character I/O based on the
TIME (PTP, PTR) and TTIME (TTY) register variables.  With default values
here I/O completes very quickly.

A user may influence I/O rate behavior to proceed at a particular character
rate per second by using:

    sim> SET CPU CPS=nnn

or equivalently:

    sim> SET CPS=nnn

The resulting I/O completion rate will be independent of host system
processor speed and/or any I/O throttling that may be in effect.  The
above commands set the deferred I/O character completion rate for
all devices that do deferred I/O (PTP, PTR and TTY).

Each deferred I/O device can have its particular character delivery rates
specified with one of these commands:

    sim> deposit PTP CPS xxx
    sim> deposit PTR CPS yyy
    sim> deposit TTY CPS zzz

A CPS register value of 0 indicates that the default cycle based delays
specified by TIME (PTP & PTR) and TTIME (TTY) registers will control
character completion rates.
2017-06-14 15:44:47 -07:00
Mark Pizzolato
cb47ea3852 doc: Add description of optional PC value API used in debug output 2017-06-13 22:36:15 -07:00
Mark Pizzolato
a50403cd0a doc: Added description of optional Stop Message Formatting API (Dave Bryan) 2017-06-13 22:13:56 -07:00
Mark Pizzolato
605ede8c7b I1620: Provide consistent rate limited I/O for TTY, PTR & PTP
- Default CPS is 50
- Add SET {CPU}  CPS=nnn and SHOW {CPU} CPS commands.
   Individual device specific rates are changeable and visible as CPS register
   in each device.
2017-06-13 09:05:03 -07:00
Mark Pizzolato
17cc00f33e TIMER: Fix threshold for short vs long interval delay scheduling 2017-06-13 08:18:10 -07:00
Mark Pizzolato
d9e7afc92f SCP: Fix Coverity flagged issues 2017-06-13 04:32:18 -07:00
Mark Pizzolato
13dbe1e322 I1620: CDR error messages consistent between 3.X and 4.X 2017-06-12 19:22:41 -07:00
Mark Pizzolato
2e0110f37e I1620: Fix text of I/O Error in CDP device
As discussed in #472
2017-06-12 19:00:07 -07:00
Mark Pizzolato
9accb79b92 TIMER: Properly calibrate clocks while throttling 2017-06-11 05:00:42 -07:00
Bob Supnik
7e32130e1e I1620: Fixed typo in PTP unit (Dave Wise) 2017-06-11 04:03:43 -07:00
Mark Pizzolato
f1a6d538b9 doc: Initial import of IBM1130 document 2017-06-09 09:50:46 -07:00
Mark Pizzolato
c470d1e5e2 SCP: Allow the presence of DEVICE DEBTAB array to imply the DEV_DEBUG flag 2017-06-07 18:56:06 -07:00
Mark Pizzolato
921c012784 Visual Studio Projects: Correct windows-build dependencies for PDP11 simulator 2017-06-07 18:39:48 -07:00
Bill Beech
6fcd70128e imds-225, isys80xx, ibmpc, ibmpcxt: Address Coverity identified problems 2017-06-07 11:34:26 -07:00
Bill Beech
625d1b391e swtp6800: Solve Coverity identified issues 2017-06-07 11:06:02 -07:00
Mark Pizzolato
c389573c91 SCP: Avoid output to log during DEPOSIT command 2017-06-05 02:41:39 -07:00
Mark Pizzolato
e058b0124b ETHER: Allow clean build with USE_NETWORK and not USE_READER_THREAD 2017-06-04 11:13:37 -07:00
Bob Supnik
3b67a8658d PDP11, All VAX: Change ERROR in CR device translation tables to avoid conflicts 2017-06-04 09:56:22 -07:00
Mark Pizzolato
d452c27c74 I1620: Properly range check character value before using as index (Coverity) 2017-06-03 12:17:39 -07:00
Mark Pizzolato
fed2f126b1 I1620: Assure consistency of 1DIG/2DIG setting 2017-06-03 12:16:13 -07:00
Mark Pizzolato
8baac06f7f TAPE: Fix potential race (Coverity) 2017-06-03 08:56:51 -07:00
Mark Pizzolato
fae6a18835 TAPE: Update tape gap support (Dave Bryan)
With this update, the erase gap operation has been split out of
"sim_tape_wrgap" into a separate, internal "tape_erase_fwd" routine that
is called from "sim_tape_wrgap" as well as from the new "sim_tape_errecf"
routine.  There's a corresponding internal "tape_erase_rev" that's called
from the new "sim_tape_errecr" routine.

I've shimmed "sim_tape_rdlntf" and "sim_tape_rdlntr" to move the tape
context and debug stuff out of the routines that I'm maintaining.  This
will allow me to replace those functions in their entirety with the
corresponding functions in my development sources for future updates.
It also allows me to keep Bob's version in sync.  As my routines are static
and only called once from the shims, compilers should optimize away
the function calls and instead inline the code, so there'd be no extra call
overhead.

I'd also like to keep "tape_erase_fwd" and "tape_erase_rev" untouched for
the same reason.  If you wish to add debug calls to "sim_tape_errecf" and
"sim_tape_errecr", that's fine.
2017-06-02 00:54:13 -07:00
Mark Pizzolato
54993732dd TIMER: Properly queue all clocks when returning from sim_instr()
as reported in #460
2017-05-29 23:12:37 -07:00
Mark Pizzolato
197bca5fdd IBM1130: Add necessary parenthesis to conditional expression (Coverity) 2017-05-29 21:19:05 -07:00
Bob Supnik
a750171c30 I1620: Add deferred IO mode for slow devices
The major change is the implementation of deferred IO - a more
accurate implementation of the 1620's "stop in its tracks" IO model.
When a device uses deferred IO, instruction execution is suspended
until the IO completes successfully. Operator interruptions, errors,
and so on do not return to instruction execution; this only occurs if
the IO completes successfully or the command SET CPU RELEASE is given
(equivalent of pressing the RELEASE button). Otherwise, the current IO
operation continues to execute.

Only the console typewriter and paper tape reader/punch currently
implement deferred IO; there are operational issues with those devices
that require more accurate modeling. The card reader/punch, line
printer, and disk still execute IO "instantaneously". It's not all
that hard to convert an instantaneous device to deferred operation,
but there's no point in doing so (and possibly introducing new bugs)
unless there's an actual operational issue. The 1620 doesn't have
overlapped IO, so programs can't tell the difference, by and large.

A number of other issues have been addressed as well, including the
bizarre "treat RM as 0 in the Q field" required by MI-015; the
treatment of non-existent indicators as always off; and various other
tweaks.

I've run CU01 (again), which at least gives typewriter and paper-tape
IO a basic workout; and it works. I leave more detailed testing to
people who know the machine better than I do.

The documentation has been updated to include Tom's detailed breakdown
of IO handling for all IO operations on the typewriter, paper-tape
reader/punch, card reader/punch, and line printer.
2017-05-29 13:34:55 -07:00
Mark Pizzolato
df627b0cb1 SCP: Cleanup output produced by SHOW CONSOLE command 2017-05-27 20:25:50 -07:00
Bob Supnik
4053a6f481 alpha: Fixed reversed definitions in opcode 12 (shifts)
It turns out that the two reversed opcodes Maurice identified were not the
only problems in opcode 12 (shifts). All of the INS/EXT pairs at function
codes .57 and above were reversed. In addition, the mnemonics in the
opcode table in alpha_sys.c are wrong as well as reversed.
2017-05-27 14:30:05 -07:00
Mark Pizzolato
86b8a7d5c1 IBM1130: Avoid focus change to the command window when using a telnet console
as discussed in #467
2017-05-27 01:16:02 -07:00
Mark Pizzolato
930e497ee9 IBM1130: Properly sync GUI info at startup
as discussed in #453
2017-05-24 19:10:54 -07:00
Mark Pizzolato
99e833f9c0 IBM1130: GUI support for alternate disk booting (James Fehlinger)
as discussed in #452 and #453
2017-05-24 13:00:57 -07:00
Mark Pizzolato
85deff82ec IBM1130: Set PLOT device disabled when plot support isn't available 2017-05-24 10:18:11 -07:00
Mark Pizzolato
089740a0c5 IBM1130: Fix GUI POWER and RESET buttons to properly synch with main thread
as reported in #451
2017-05-22 11:18:20 -07:00
Bob Supnik
e086f5eb17 I1620: Update doc to reflect recent changes 2017-05-22 10:12:07 -07:00
Mark Pizzolato
83d414d6e6 IBM1130: Fix missing x64 GUI declaration
As discussed in #465
2017-05-22 10:06:51 -07:00
Mark Pizzolato
73a058a904 IBM1130: Allow 32bit and 64bit build of GUI (Jim Fehlinger)
as discussed in #465
2017-05-21 21:59:51 -07:00
Mark Pizzolato
c4c8043215 I1620: Update various CPU issues
- Changed to commit PC on certain stops
- Added SET CPU RELEASE command
- Undefined indicators don't throw an error (Dave Wise)
- Added Model I mode to allow record marks in adds (Dave Wise)
- Allowed undocumented indicator 8 (Dave Wise)
- Added option for Model I diagnostic mode (Dave Wise)

# Conflicts:
#	I1620/i1620_cpu.c
2017-05-21 21:47:30 -07:00
Bob Supnik
d72ab3ce51 I1620: Input processing cleanup - backspace, tabs, WRU
- Fixed keyboard interrupt problem for Linux
- Added input backspace for Model II
- Revised tab calculation algorithm
2017-05-21 21:40:01 -07:00
Bob Supnik
ec9c746ca7 I1620: Changed fprint_val to handle undefined opcodes on stops 2017-05-21 21:39:10 -07:00
Bob Supnik
2d46b5361f I1620: Separated EOF error from other IO errors (Dave Wise) 2017-05-21 21:36:54 -07:00
Mark Pizzolato
a9cd426701 IBM1130: Change position, color, text of buttons to match real 1130
as discussed in #459 by  James Fehlinger
2017-05-18 23:56:18 -07:00
Mark Pizzolato
b0850673ce IBM1130: Clarify prompts to handle incorrect file drops into GUI 2017-05-18 13:14:56 -07:00
Bob Supnik
a7216dbbd1 All VAX: Added model-specific AST validation test
From page 6-6 of DEC STD 032 (the VAX architecture spec):
"Execution of MTPR src, #PR$_ASTLVL with src<31:0> GEQU 5 results in
UNDEFINED behavior. The preferred implementation is to cause a reserved
operand fault." MicroVAX II, CVAX, and Rigel all conform to the preferred
behavior, as does the current simulator, which was written from the CVAX
microcode. NVAX masks to 3b and does not take an exception on a value
GEQU 5.

The 1982 Architecture Handbook describes ASTLVL as a 3b register, with
src<31:3> ignored/read as zero, and exceptions taken on values GEQU 5.
The780 microcode masks the input value to 3b before doing the GEQU 5 test.

The ASTLVL test needs to be model specific.

I suspect the behavior became undefined when MicroVAX II simplified the
original test to save a microword. I do not see how the code fragment Matt
references could work on a MicroVAX II, which was supported under 4.5.
Perhaps the device Matt mentions couldn't exist on a MicroVAX II?

For those who wants the gory details... uVAX, CVAX, and Rigel do an
unsigned compare on the unmasked src and the constant 5. Carry out
means reserved operand. Overflow is ignored. So an input of 0x80000002 -
0x00000005 (done in the data path as 0x80000002 + 0xFFFFFFFB) generates overflow (ignored) and carry out.

# Conflicts:
#	VAX/vaxmod_defs.h
2017-05-18 12:45:21 -07:00