1
0
mirror of https://github.com/simh/simh.git synced 2026-01-14 07:39:29 +00:00

141 Commits

Author SHA1 Message Date
Mark Pizzolato
d3b6bb2dac alpha: Adding baseline experimental Alpha version
This is so Bob can change his alpha source and we can track changes
2017-03-14 18:15:34 -07:00
Bob Supnik
4a5d829c46 PDP11: Fixed spurious interrupt when setting GO
The code wasn't handling interrupts correctly when TCCM was written. In
particular, if the GO bit clears DONE, the code looked for the "SET IE" case
too soon and didn't clear the interrupt that was incorrectly generated.
The new code factors "GO" into the calculation.
2017-03-14 09:58:17 -07:00
Bob Supnik
053cb0fda8 I1401: Fixed possible NULL pointer dereference (COVERITY) 2017-03-14 04:23:46 -07:00
Bob Supnik
b68910ded7 I1620: Fix Coverity identified problems
CPU: Added error test on device addr
DP:    Fixed bug in write check function test
TTY:  Fixed tab stop array overrun at right margin
2017-03-14 04:21:58 -07:00
Bob Supnik
2b5ea1bdcf I7094: Fixed GET_PCHAIN macro (COVERITY) 2017-03-14 04:19:12 -07:00
Bob Supnik
01a75bc2da sigma: Fix Coverity identified problems
CIS:   Properly clear sign
DP:   Fixed bug in selecting 3281 unit F
RTC: Fixed bugs in set, show_tps
2017-03-14 04:18:07 -07:00
Bob Supnik
5ec40f26c6 VAX, VAX780: Fixed dangling else in show_opnd (COVERITY) 2017-03-14 04:16:53 -07:00
Bob Supnik
ebfc76d03d VAX, VAX780: Fixed certain indirect cases in parse (COVERITY) 2017-03-14 04:09:18 -07:00
Mark Pizzolato
7e7c633bcc GIT: Use consistent gitignore across branches 2017-03-14 04:04:48 -07:00
Bob Supnik
d031eb7476 VAX780: Fixed bad test for UBA intr level (COVERITY)
IPL_UBA already has the subtract built in:

So it shouldn't be extracted again.

The whole routine looks a little strange, but the way it works is
that an interrupt from the UBA itself sets <bit 31> in the returned vector.
Because the vector is read by code and not used by hardware, the flag
bit is "harmless."

UBA interrupts occur only under strange circumstances, like bad map
pages and device NXMs. Under the simulator, with a debugged OS, they
never happen.
2017-03-13 17:37:33 -07:00
Bob Supnik
48a9b5b42b PDP10, PDP11, PDP18B, PDP8: Annotate switch case fall through (COVERITY) 2017-03-13 10:32:27 -07:00
Bob Supnik
3aff340c17 GRI, H316, I7094, NOVA, SDS, sigma: Annotate switch case fall through (COVERITY) 2017-03-13 10:31:44 -07:00
Bob Supnik
2edf3d9ded VAX: Annotated intentional fall throughs in switch statements (COVERITY) 2017-03-13 10:17:23 -07:00
Bob Supnik
38f925a4f5 PDP10: Fixed word count test in EXE loader (COVERITY) 2017-03-09 19:59:30 -08:00
Bob Supnik
8029b1075f PDP1, PDP18B: Fixed dt_seterr to handle nx unit select (COVERITY) 2017-03-09 19:58:32 -08:00
Bob Supnik
43d8ee6323 PDP10: Added mask on EXE repeat count (COVERITY) 2017-03-09 19:40:24 -08:00
Bob Supnik
d2100f7549 PDP8: Fixed PCQ_ENTRY for interrupts (COVERITY) 2017-03-09 19:39:17 -08:00
Bob Supnik
bbb02d5bb8 ID16, ID32: Added mask on EXE repeat count (COVERITY) 2017-03-09 19:38:14 -08:00
Bob Supnik
300bfaa3c0 I1401: Protect character conversions from garbage files (COVERITY) 2017-03-09 19:37:02 -08:00
Bob Supnik
417b85f0d6 NOVA: Fixed missing break in loader & overlook case in address parse (COVERITY) 2017-03-09 19:36:00 -08:00
Bob Supnik
888b84af54 SDS: trap_P not set if mem mgt trap during fetch (COVERITY) 2017-03-09 19:28:19 -08:00
Bob Supnik
6cd53d9d86 I1620: Guardbanded translation table lookups (COVERITY) 2017-03-09 19:27:43 -08:00
Bob Supnik
7963188721 VAX780: Added missing break (COVERITY) 2017-03-09 19:23:19 -08:00
Mark Pizzolato
3124e5fe41 Visual Studio Projects: Add project for sigma simulator 2017-03-09 08:29:27 -08:00
Bob Supnik
1f77645f32 SIGMA: Add LOAD support for Carriage Control Tape 2017-03-09 08:16:30 -08:00
Bob Supnik
952a75a1c9 SIGMA: Fixed unspecified return value in HIO 2017-03-09 08:12:40 -08:00
Bob Supnik
ae3179e2fe PDP11, PDP10, VAX780: CR11 is BR6, CD11 is BR4 2017-03-07 09:05:59 -08:00
Bob Supnik
d7a98da256 PDP8: Change RESET CPU to clear L'AC
As discussed in #400 and described in the maintenance manuals and/or
schematics for all five PDP-8 models (8, 8/S, 8/I, 8/E, 8/A).
2017-02-19 21:36:42 -08:00
Bob Supnik
e22ffedb29 PDP11: Fixed RF device CSR address in boot code 2017-02-13 08:27:47 -08:00
Bob Supnik
9f4b198afd PDP11: Fix address block length for RS device
As discussed in #396
2017-02-11 10:33:51 -08:00
Bob Supnik
b86fa93174 PDP10: Fix RIM load loader count
As further discussed in #278
2017-02-01 08:04:09 -08:00
Bob Supnik
6705fe9398 PDP8: Renamed switch register variable to SR
As discussed in: #385
2017-01-28 12:11:01 -08:00
Bob Supnik
4740135958 PDP10: Fixed RIM loader to handle ITS and RIM10B formats
As discussed in #378

The fixes include:

1. Tightening up the "magic" code so that it can now tell EXE, SAV, and RIM
    formats apart.
2. Skipping the loader itself for both RIM10B and ITS RIM. (PDP10 Macro manual
    says that RIM10B always includes the loader.) 3. Distinguishing ITS RIM from
    RIM10B by the length of the loader block.
4. Adding the slight differences in processing between ITS RIM and RIM10B.

There is no documentation change. -R or the extension .RIM still invoke the
RIM loader, and the code tells ITS and RIM10B apart.
2017-01-20 15:21:12 -08:00
Mark Pizzolato
95f27b2cfd Visual Studio Projects: Fix PDP10 build which had removed the XU device 2017-01-20 15:11:33 -08:00
Mark Pizzolato
c23b1a5ca1 PDP10: Fixed bugs in 1-proceed
As discussed in: PDP-10: single step in DDT crashes ITS (#373)
2017-01-14 08:33:35 -08:00
Mark Pizzolato
b414f54fd4 PDP11, VAX780: Moved CR11/CD11 from BR4 to BR6 2017-01-06 12:33:59 -08:00
Mark Pizzolato
99bbc5f8cf PDP11: Add initial UC15 support from Bob Supnik 2016-12-04 15:51:22 -08:00
Mark Pizzolato
fa1fba5bd5 PDP11: TC11 - Revised to model TCCM correctly
As reported by Josh Dersch in #358

   Read hardware notes:

   - While the TCCM error bit is a real flop, it is supposed to reflect
     the OR of the TCST error bits at all time, so it is updated on read.
   - A read of TCDT while the function is RALL clears DONE.

Write hardware notes:

   - The TC11 behaves much more like a traditional DECtape controller
     than a typical PDP11 peripheral. In particular, execution is
     initiated/controlled by any write to TCCM, rather than setting
     the GO (DO) bit. Unless the function is STOP or STOP ALL, writing
     TCCM will put the selected tape in motion.
   - Writing GO (DO) clears DONE (READY) and the error flops in TCST.
   - Writing a 0 to ERROR clears the error flops in TCST. Because it
     is write 0 to clear (later controllers used write 1 to clear),
     the simulator has to know whether ERROR is actually written.
   - STOP ALL ignores select errors. Every other function is rejected
     if there is a select error.
   - An illegal operation (setting ILO) will stop the selected tape.
   - A write of TCDT while the function is RALL, WALL, or WTMK clears
     DONE (READY). RALL should not be included, but it saved a gate
     not to prevent it.
   - Because DONE (READY) may not be clear when an operation completes
     and DONE (READY) is set, the DT_SETDONE must test for DONE (READY)
     not being already set.
2016-12-04 11:08:23 -08:00
Mark Pizzolato
88105d0b16 PDP11: Removed old source files 2016-12-04 11:07:37 -08:00
Mark Pizzolato
e740e13c13 PDP10: Fix 2% wallclock issue for 50 Hz systems (R. Voorhorst) 2016-11-21 20:04:35 -08:00
Mark Pizzolato
45a5432330 PDP10: Fixed last digit error in CVTBDT instruction as discussed in #347 2016-11-05 12:07:30 -07:00
Mark Pizzolato
1ff0e65627 I1401: Fix tape to call sim_tape_attach to attach tapes 2016-10-20 12:50:13 -07:00
Mark Pizzolato
ee59a6b6d2 PDP11: Fixed bad register definitions 2016-10-11 06:34:35 -07:00
Mark Pizzolato
cf1a6e83de PDP8: Add support for 16 terminals in the TTIX device 2016-10-10 16:29:40 -07:00
Mark Pizzolato
f5e3d3b5b2 PDP11: Fix ambiguous -D decimal vs data space reference - Add -T for data 2016-08-30 13:05:49 -07:00
Mark Pizzolato
f6404e2d22 All VAX: Fix REI check when compatibilty mode. From Bob Supnik
The rule check on the PSL was incomplete. DV, FU, IV must all be zero,
and they weren't checked at all.

VAX Diagnostic EVKAE now runs to completion.
2016-07-14 11:32:20 -07:00
Mark Pizzolato
af95f21308 PDP1: ASCII/FIODEC are not SET options. ASCII mode is only attach -A 2016-07-14 06:43:20 -07:00
Mark Pizzolato
f86fc47790 PDP1: Fix PTP and PTR ASCII Mode from Bob Supnik
ASCII mode for the paper tape reader and punch didn't <quite> work.

In ASCII mode, the <simulator> must create the leader and trailer. The
leader was already there. There shouldn't be nulls in an ASCII file. The
whole point is to be able to prepare and look at input and output files
with a normal text editor.

So this version should work right. It "autogens" trailer more or less
forever. It doesn't really need to return a STOP code on EOF, but users
would probably forget to put form feed at the end, so it doesn't hurt.
2016-07-13 14:58:11 -07:00
Mark Pizzolato
a8144df255 PDP1: Revised doc for Expensive Typewriter support, etc. from Bob Supnik 2016-07-13 13:32:08 -07:00
Mark Pizzolato
4ca012ec2a PDP1: Add Expensive Typewriter support and paper tape additions from Bob Supnik
1. Implemented Expensive Typewriter mode for TTO.
2. Added ASCII conversion on paper tape punch as well as reader.
3. Changed conversion tables to recognize form feed (014) as FIODEC STOP.
2016-07-13 13:30:53 -07:00