Commit graph

2045 commits

Author SHA1 Message Date
Mark Pizzolato
b935a2dafc SCP: Make sure SIM_BIN_NAME environment variable is always defined.
Previously it would only be defined in certain instances and after
processing some combinations of startup files.
2016-06-20 11:54:28 -07:00
Mark Pizzolato
e158408268 SCP: Add simulator binary name in a SIM_BIN_NAME environment variable 2016-06-19 22:10:17 -07:00
Mark Pizzolato
f2656acb38 TMXR: Fix logic which interprets DTR transitions 2016-06-19 08:08:19 -07:00
Mark Pizzolato
d741bdc375 VIDEO: Allow SCREENSHOT command to optionally specify bitmap file extension
When PNG support is available, both .png and .bmp screenshots can be
generated based on the file extension specified by the user on the SCREENSHOT
command.  If no extension is specified, then a PNG format screenshot will be
produced.
2016-06-15 00:27:07 -07:00
Mark Pizzolato
a24aba69ae VIDEO: Added priority boost to thread performing SDL processing and updates
Reworked all priority adjustment code to leverage a new
sim_os_set_thread_priority API which is coded to use pthreads or OS
priority adjustment APIs as necessary.
2016-06-11 09:52:33 -07:00
Mark Pizzolato
3743d3d68a VIDEO: Avoid losing mouse button state when coalescing motion events
Identified by @shattered in #321

Added better debug output for keyboard events.
2016-06-11 08:39:25 -07:00
Mark Pizzolato
b89369e896 QVSS: Add support for keyboard bell 2016-06-11 08:30:36 -07:00
Mark Pizzolato
1c551b7b5a TMXR: Use single character output buffer when writing to physical serial ports 2016-06-11 08:28:28 -07:00
Mark Pizzolato
82b12084b0 Remove accidentally added file 2016-06-08 10:13:47 -07:00
Mark Pizzolato
f3467d678c SCP: Extend RUN and GO commands with optional UNTIL criteria.
The new RUN/GO command syntax supports a stop criteria.
There are two forms of stop criteria:

1) A normal breakpoint (which exists only until it is encountered)
2) A user specified output string is emitted by the simulated system.

Command syntax is:

    RUN|GO {START-PC-VALUE} {UNTIL breakpoint|"output-string"}
2016-06-05 02:39:41 -07:00
Mark Pizzolato
c5ee1ad971 SCP: Enhance EXPECT support to allow multiple rules with the same match string
Multiple rules with the same match string are processed in the order the EXPECT
commands are entered.  NOEXPECT will remove all pending EXPECT rules which
have the match string provided on the NOEXPECT line.
2016-06-05 01:40:38 -07:00
Tony Nicholson
d9f3743783 ETHER: Fix incompatible ptr type and relocate _eth_get_system_id for Cygwin
Compilation under Cygwin with gcc 5.3.0 - missing const gave rise to
incompatible pointer type warning, and _eth_get_system_id for _WIN32
was included under a conditional for either _WIN32 or __CYGWIN__
and later redefined for !_WIN32
2016-06-03 00:35:54 -07:00
Mark Pizzolato
8d7e8f4d30 VAX: Fixed WordLshift (ASHP left overflow calc)
As observed by EVKAB diagnostic and reported in #319
2016-05-30 14:43:35 -07:00
Mark Pizzolato
8b08e6c2d9 SCP: Allow spawn commands to not require space after ! 2016-05-30 04:14:45 -07:00
Mark Pizzolato
e67bf602a0 SCP: Added shutdown flag for detach_all 2016-05-28 13:32:15 -07:00
Mark Pizzolato
b0e67d5900 SCP: Fixed potential memory leak in get_asearch 2016-05-28 13:31:50 -07:00
Mark Pizzolato
a71a7c6882 VAX: Add octaword result information to instruction history
Also reworked drom result bitfield macros to use standard shift and masks
2016-05-28 06:03:21 -07:00
Mark Pizzolato
4e7fada26c VAX: Fix decode of octaword instructions
EXAMINE -M now properly displays instruction arguments for octaword
instructions.
2016-05-27 15:09:40 -07:00
Mark Pizzolato
8e5d0b0a40 VAX: Allow history log file to have mixed case filename 2016-05-27 07:55:17 -07:00
Mark Pizzolato
64450a778c windows-build: Update required version to include libSDL2 _allshr fix
SDL's static build support provides some primitive x64 functions used
with x64 values when compiling under x86.
2016-05-26 17:36:11 -07:00
Richard Cornwell
c717ee928f B5500: Added buffer size option to DTC.
Added buffer size option allowing buffers to be set at a multiple of
28 characters. This is to allow R/C to be run without modifications.
2016-05-24 20:36:22 -04:00
Mark Pizzolato
8bc31af29c PDP11, VAX: Allow Ethernet SET MAC arguments to have upper/lowe case values 2016-05-24 11:58:58 -07:00
Mark Pizzolato
451b53daeb TMXR: Allow Line based logging to be both disabled and enabled before attach
Previously attempts to disable logging for an unattached mux (or line) could
crash the simulator.
2016-05-24 08:53:05 -07:00
Mark Pizzolato
ae6f3b97e4 PDP11, VAX: Use generated unique default MAC addresses for Ethernet devices 2016-05-24 08:47:01 -07:00
Mark Pizzolato
3dcd5124e9 ETHER: issue explanatory messages when rejecting invalid MAC addresses. 2016-05-24 08:45:28 -07:00
Mark Pizzolato
2d907980f1 ETHER: Add support for generated interface MAC addresses
sim> SET XQ MAC=aa:bb:cc:dd:ee:ff{/bits}{>filespec}

where:

- all of the aa:bb:cc:dd:ee:ff values must be hex digits
- bits is the number of bits which are to be taken from the supplied
   MAC aa:bb:cc:dd:ee:ff with legal values from 16 to 48 and a default
   of 48 bits.
- filespec specifies a file which contains the MAC address to be used
   and if it doesn't exist an appropriate generated address will be stored
   in this file and a subsequent SET MAC invocation specifying the same
   file will use the value stored in the file rather than generating a new
   MAC.

As discussed in #317
2016-05-23 16:56:06 -07:00
Mark Pizzolato
63510629d9 makefile: isys8010 and isys8020 can now be compiled with a C++ compiler 2016-05-23 16:43:22 -07:00
Bill Beech
cbdcaec162 ISYS8010, ISYS8020: Cleanup Build issues for gcc and clang and g++ and clang++
Corrected declaration sizes to match for consistency across different modules.
2016-05-23 14:28:19 -07:00
Peter Schorn
9d2b7ee968 AltairZ80: Fixed NUM_CHIP_TYPE warning and added missing declaration 2016-05-23 13:26:17 -07:00
Mark Pizzolato
3d7c4dc510 Visual Studio Projects: Avoid compiler warnings when building pthreads
The project migration process from VS2008 to VS2015 doesn't bring in
project/solution wide migration compile defines that are introduced in
Visual Studio Community's migration which adds _USING_V110_SDK71.
This affects source modules which explicitly don't inherit project wide
defines.  The compile of pthread.c (in various projects) is such a case.
2016-05-22 11:36:39 -07:00
Mark Pizzolato
d3bc8f6633 ETHER: Fix compile issue when building on VMS. 2016-05-20 10:18:36 -07:00
Mark Pizzolato
d4ed9da2ff PDP11, VAX: Fix autoconfigure to properly allocate fixed vectors and addresses
Multiple devices sharing the same pool of fixed and/or vector addresses
need to properly account for earlier devices that may have already consumed
available fixed addresses or vectors.
2016-05-19 14:47:42 -07:00
Mark Pizzolato
385d14ee4f alpha: Fix pal_eval_intr() to properly reference the ev5_icsr
The original code mistakenly evaluated several constant expressions rather
than referencing the ev5_iscr variable.
2016-05-19 11:04:49 -07:00
Mark Pizzolato
7a7b4de971 DISK: Fix MinGW build when compiling under g++ 2016-05-18 15:36:13 -07:00
Mark Pizzolato
2c16110d94 ETHER: Properly describe const MAC address parameter in eth_mac_fmt
Fix problem reported in #316
2016-05-18 14:43:49 -07:00
Mark Pizzolato
253e9deea7 All VAX: Fix idle/inifinite loop detection for instructions with side effects
Recent enhancements to idle/infinite loop detection generalized handling
of detecting 'loop to self' cases.  This was done without considering that
some instructions have side effects (i.e. change other state like the stack
pointer) and thus aren't merely loop to self cases.

This problem was reported in #315
2016-05-18 09:02:22 -07:00
Mark Pizzolato
0c2bc4c617 Visual Studio Projects: Allow building network capable simulators with C++ 2016-05-17 23:01:05 -07:00
Mark Pizzolato
e8ce83073f DISK: Allow building with g++ on Windows with MinGW 2016-05-17 22:58:32 -07:00
Mark Pizzolato
89f8aff2cf TAPE: Fix potential compiler warning. 2016-05-16 20:04:10 -07:00
Mark Pizzolato
ef9018c9a7 HP2100: Reformulated the definitions of op_mask (from Dave Bryan) 2016-05-16 19:03:48 -07:00
Mark Pizzolato
64716dad74 makefile: Fix MinGW build to allow C++ compiles 2016-05-16 16:17:22 -07:00
Richard Cornwell
0e1f84357c B5500: Changes to allow DCMCP to use DTC device.
Also changed how interrupts are generated. When a line changes state
and interrupt should be generated. Once this is read no further
notification should be posted. If no characters are written in a
record the DTC should transition to IDLE state.
2016-05-16 08:14:44 -07:00
Richard Cornwell
44f523a036 B5500: Fixed bug with Alpha mode reads
If the record ended as a multiple of 8 characters, an extra gm would be
addded and an extra word written.
2016-05-16 08:13:11 -07:00
Mark Pizzolato
03445f5f94 B5500: Promote sim_card to a top level simh library
Rich Cornwell's sim_card module is about to be used by another new simulator
so it is being promoted.
2016-05-15 18:01:38 -07:00
Sergey Svishchev
504bc7c61f VAX: 2681 UART: implement ACR and IPR 2016-05-15 15:44:15 -07:00
Sergey Svishchev
ba4b951bd6 VAX: replace magic numbers with constants 2016-05-15 15:44:14 -07:00
Mark Pizzolato
5531ccb175 ALL: Massive 'const' cleanup
These changes facilitate more robust parameter type checking and helps
to identify unexpected coding errors.

Most simulators can now also be compiled with a C++ compiler without
warnings.

Additionally, these changes have also been configured to facilitate easier
backporting of simulator and device simulation modules to run under the
simh v3.9+ SCP framework.
2016-05-15 15:25:33 -07:00
Peter Schorn
60a8a2d43d AltairZ80: Fixed device descriptions for all devices. 2016-05-15 14:44:09 -07:00
Mark Pizzolato
5fc2207774 NOVA: Extend character input delay to 300 for PTR device
As discussed in #203
2016-05-13 11:50:55 -07:00
Mark Pizzolato
e70606c75b PDP11, all VAX: Fix handling of TU58 initialization command.
The processing of initialization commands improperly attempted to initialize
all controllers AND these attempts (for controllers beyond 0) referenced
beyond the bounds of the unit array.  This problem was reported in issue #309
2016-05-13 11:43:09 -07:00