Commit graph

4162 commits

Author SHA1 Message Date
Mark Pizzolato
2b68660876 SCP: Add a TESTLIB command to invoke sim_* library test on devices
- Previously invoking a simulator with -T was the only way to invoke the
  library tests for ALL devices.  That still works now with the additional
  flexibility to invoke a specific device's test from the sim> prompt.
- Adding TESTLIB help text encountered a maximum constant string length
  limit in the C compiler.  Reworked to allow multiple strings which are then
  concatenated on the first HELP command invocation.
2020-04-17 17:22:43 -07:00
Peter Schorn
9b71968ada AltairZ80: Use non blocking socket for net device 2020-04-14 19:14:12 +02:00
Lars Brinkhoff
1cc1daed96 PDP11: Fix warning about size_t converted to uint16. 2020-04-14 07:44:24 +02:00
Lars Brinkhoff
35574f1365 DISPLAY: Fix warning about shifting negative value. 2020-04-14 07:40:15 +02:00
Mark Pizzolato
ee1c055abe TMXR: All sockets should default to non blocking 2020-04-13 17:29:42 -07:00
Mark Pizzolato
07682806a5 DISK: Fix size detection and validation for VHD disks 2020-04-13 10:05:46 -07:00
Mark Pizzolato
d0022e9328 DISK: Update VHD Footer to current info 2020-04-12 08:13:28 -07:00
Mark Pizzolato
42938b9c83 PDP11, VAX: Allow RQ RA8U disk type which is verified as valid at attach time 2020-04-11 19:57:13 -07:00
Mark Pizzolato
13dc1b54cd PDP11, Unibus VAXen: Leverage sim_disk provided autosize logic for RL and HK 2020-04-11 13:12:51 -07:00
Mark Pizzolato
defe31183f PDP11, Massbus VAXen: Remove redundant RP device autosize logic 2020-04-11 13:11:30 -07:00
Mark Pizzolato
91550ec291 TMXR: Active outbound TCP connects should be non-blocking
- add testing for socket address parsing
- extend testing for various connect scenarios
2020-04-11 13:08:08 -07:00
Mark Pizzolato
6af7a8a434 SOCK: Remove duplicate nonblocking code in sim_connect_sock_ex 2020-04-11 13:04:53 -07:00
Mark Pizzolato
35780cf5e2 SCP: Enhance SCP library testing to report and stop on errors 2020-04-11 13:03:00 -07:00
Mark Pizzolato
049ba32505 DISK: Add robust disk container validation 2020-04-11 13:01:48 -07:00
Mark Pizzolato
3950478e00 SCP: Fix compile when compiler doesn't support variable macro arguments
Reported by Peter Coghlan building on AXP VMS.
2020-04-10 18:24:05 -07:00
Mark Pizzolato
07c274ac97 ETHER: Restore support fir Windows Npcap as Ethernet packet API
Version of Npcap 0.9990 restores full WinPcap functionality

As discussed in nmap/nmap#1929 and nmap/nmap#1343
2020-04-06 10:36:31 -07:00
Mark Pizzolato
ab66fa1484 DISK: Fix attach time auto sizing to walk through list of potential drive types 2020-04-05 16:50:16 -07:00
Mark Pizzolato
f9883668f1 NOVA, ECLIPSE, PDP11, PDP8, SIGMA, Unibus VAXen: Call tape detach API on unload 2020-04-04 09:49:15 -07:00
Mark Pizzolato
d0de8b807f SCP: Add missing new entry in the scp_errors array 2020-04-04 09:13:22 -07:00
Lars Brinkhoff
eb242da79e PDP11: Fix warning about ~0 not fitting in an uint16. 2020-04-04 16:05:56 +02:00
Mark Pizzolato
73df9b1c4e PDP10, PDP11, Massbus VAXen, DISK: Rework PDP10 use of sim_disk
- Make all PDP11, VAX RP and RQ devices autosizing behave similarly
- Generalize the attach help to be specific to the device/system being
   attached
- Remove the sim_disk_pdp10_* calls which weren't correct or needed
   since sim_disk_attach_ex provides sector size which is used correctly
2020-04-03 17:32:14 -07:00
Mark Pizzolato
b168114f61 SCP: Remove duplicate time message in SHOW VERSION output 2020-04-03 13:12:39 -07:00
Mark Pizzolato
3de147a35c Visual Studio Projects: Correct minor spelling error 2020-04-03 13:11:59 -07:00
Michael Thompson
933373ecd3 PDP9: Add postbuild pdp9_test.ini
As discussed in #831
2020-04-03 11:59:59 -07:00
John Forecast
f8a369e6d4 TAPE: Add DOS11 tape support for dynamic tape containing local files 2020-04-02 10:20:47 -07:00
Mark Pizzolato
b7824943df DISK: Minimize the sim_disk_pdp10_attach arguments to minimize aguments
The sim_disk_pdp10_... API's specifically provide 1024 byte sector
interfaces for 64bit data.

Customize the attach help output to be more appropriate for the devices
in the running simulator and the device who's help is being displayed.
2020-03-31 19:37:33 -07:00
John Forecast
6efa9c0a92 PDP10, DISK: Add sim_disk support for PDP10 format disks add to the RP device
This allows the underlying disk container formats that that sim_disk supports
(VHD, SIMH or RAW) to be accessed from the PDP10 KS10 simulator, and later
on to Rich Cornwell's PDP10-KA, PDP10-KI, and PDP10-KL simulators.
2020-03-31 15:20:04 -07:00
Mark Pizzolato
b3542f8fdb makefile: Stop looking for SDL 1.x include and library
As mentioned in #828, simh no longer will build cleanly when using SDL 1.x.

sim_video will be reworked to clean out the SDL 1 stuff at some point
2020-03-31 10:34:58 -07:00
Mark Pizzolato
3d2394a2fb SOCK: Add tmxr (and socket) library tests 2020-03-31 09:07:39 -07:00
Mark Pizzolato
16e7ffa901 SOCK: Fix issues in IPv6 emulation routines used when IPv6 isn't available.
Also provide a way to build so that the IPv6 fallback stubs can be tested on
systems with native IPv6 support when compiled with TEST_INFO_STUBS
defined.
2020-03-31 09:06:09 -07:00
Mark Pizzolato
cfbd76e011 BESM6, NOVA, ECLIPSE, SIGMA: Set DEVICE type to DEV_MUX in MUX devices
Removed deprecated DEV_NET
2020-03-31 08:59:50 -07:00
Seth Morabito
18532be134 makefile: Fix incorrect 3B2 include directory 2020-03-30 11:32:49 -07:00
Mark Pizzolato
261abfc35f SCP: Fix missing string from format in help output 2020-03-26 15:26:35 -07:00
Mark Pizzolato
1c38700d6f All VAX: Increase test RUNLIMIT time to account for VAX8200 extended tests
Features of the VAX 8200 CPU need extra time for diagnostic execution.
2020-03-26 15:26:03 -07:00
Seth Morabito
1a3e5af755 3b2: Refactoring in preparation for Rev 3
Refactor in preparation for the addition of a Rev 3 simulator for the
3B2/1000 system.

This change also includes a full cleanup of the rat's-nest of includes
and externs that plagued the 3B2 simulator and made it difficult to
understand and maintain. Headers are now required in the following
order:

  compilation unit -> "3b2_defs.h" -> {... dependencies ...}

Finally, HELP has been added to the CPU device.
2020-03-26 15:12:08 -07:00
Mark Pizzolato
083080e71d SCP: Add SET <dev|unit> APPEND|EOF to position to EOF
Sequential devices (LPT, PTR , PTP, etc.) can be positioned to EOF.
Readable devices will encounter EOF on the next I/O operation.
Writable devices will append.  Either APPEND or EOF produce
the same result independent of whether the device is opened for
oread or write.
2020-03-26 09:58:24 -07:00
Richard Cornwell
c22766b760 KA10: Corrected error in NIA Padding. Handle disabled RH devices. 2020-03-25 20:24:13 -07:00
Mark Pizzolato
7d1a81b9f9 SCP: Add GOTO :EOF as a means of returning from a DO command 2020-03-25 14:41:03 -07:00
Mark Pizzolato
998f2a5254 VAX8200: Standardize model output strings for consistency 2020-03-25 14:34:46 -07:00
Mark Pizzolato
487e78ef36 swtp6800: Fix incorrect address to data table SOFTWARE INTERRUPT vector
As reported/suggested Clinton Yourth @cyourth-cognonic in #820

Fix approved by simulator Bill Beech
2020-03-24 22:00:49 -07:00
Mark Pizzolato
27c2dfa8f0 All DECtape devices: Undo previous unnecessary change relating to -A switch
Although these devices interpret a -A switch at attach time, they are not
sequential output devices and thus don't have an ambiguous interpretation
of the switch.

Incorrectly mentioned in #821
2020-03-24 08:35:55 -07:00
Mark Pizzolato
1c589030ae TIMER: Provide a means for VM to indicate its expected calibration rate
As reported and discussed in #817

This allows RUNLIMIT to provide useful results on fast or slow host systems.
2020-03-23 07:48:45 -07:00
Mark Pizzolato
03466a6806 SCP: Tolerate commas in decimal numbers during expression evaluation 2020-03-22 18:55:14 -07:00
Mark Pizzolato
614ad52091 All: Fix devices that attach files and have special meaning for -A switch
The -A attach time switch implicitly means to open files in append
mode.

Some devices used -A to indicate ASCII data or AUTOSIZE of disk or
fixed size tapes - DECtape.  These devices are either read only devices
(Paper tape readers or card readers), so explicit forcing of the attach
to be -R avoids unexpected positioning errors.  The random access
Disk and fixed sized tapes buffer the container contents in memory
so append mode isn't relevant, but care must be taken to assure that
the buffer reading starts at the beginning of the file without regard
to the explicit open mode.

As reported in #821
2020-03-22 09:54:54 -07:00
Mark Pizzolato
17a3219d0a Visual Studio Projects: Update project dependencies PDP10-KL 2020-03-22 09:35:23 -07:00
Ryo Kogulé
7fe9434528 ETHER: Fix tap support on OS/X
As reported in #823
2020-03-22 09:19:25 -07:00
Mark Pizzolato
ee317e0cb4 SCP: Adjust RUNLIMIT time values on slow host systems
As reported and discussed in #819
2020-03-21 21:30:58 -07:00
Lars Brinkhoff
45d7a1155b PDP11: Fix register definitions. 2020-03-20 07:06:30 +01:00
Mark Pizzolato
89cd649c77 SOCKET: Implement missing non-blocking for TCP sockets opened with connect
Outbound connections are rare and most may have wanted explicit blocking
behavior, so no one noticed the missing non-blocking case.

Any place which did do outbound connects have explicitly added
SIM_SOCK_OPT_BLOCKING so that the prior behavior is preserved.

The SIM_SOCK_OPT_BLOCKING flag is no honored as it was originally
intended to be.
2020-03-18 00:47:48 -07:00
Richard Cornwell
b848cb1234 KA10: Clean up some section errors in KL10B extended addressing. 2020-03-12 00:10:54 -04:00