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

4652 Commits

Author SHA1 Message Date
Lars Brinkhoff
fd3a79ebb5 LINC: New emulator for the classic LINC.
This emulates the classic LINC.  The design was settled in 1965,
increasing memory to 2048 words, and adding a Z register, an overflow
flag, and an interrupt facility.
2025-10-23 09:17:15 +02:00
Lars Brinkhoff
1740ac10fa VIDEO: Accept the ISO "left backslash" key.
Adds support for the ISO/European "left backslash" or "less than" key.
It's found between left shift and Z.
2025-10-11 19:52:05 +02:00
Sergey Svishchev
6e9324e09f PDP11: Changes for Terak 8510/a simulator:
Accept devices mapped at IOPAGEBASE -- text buffer/character generator
memory on video board starts at 160000.

Clear invalid PSW bits in trap handler -- system acceptance test writes
PSW 113705 to vector 34 (TRAP instruction).
2025-09-10 15:24:49 -04:00
Richard Cornwell
042b635ce3 KA10: Update PI Panel to properly display the MI register. 2025-09-10 13:38:46 -04:00
Richard Cornwell
aa05b9baea KA10: Update DD and TYM drivers to remove compile warning. 2025-09-10 13:37:59 -04:00
Paul Koning
c064bb6676 Revert vmnet support, PR #443
This reverts commits 361ef76d through 6fd146ae.
2025-08-27 15:52:55 -04:00
B. Scott Michel
c20b391eea ETH_MAC indirection erratum
Pervasive misuse of "ETH_MAC *" (a pointer to an ETH_MAC, aka a 6
element unsigned char array) when a simple "ETH_MAC" is correct.  The
best example of this was eth_mac_fmt() in sim_ether.c with the following
prototype:

    t_stat eth_mac_fmt (ETH_MAC* const mac, char* strmac)

The first parameter is a pointer to an array of 6 unsigned characters,
whereas it really just wants to be a pointer to the first element of the
array:

    t_stat eth_mac_scan (const ETH_MAC mac, char* strmac)

The "ETH_MAC *" indirection error also results in subtle memcpy() and
memcmp() issues, e.g.:

    void network_func(DEVICE *dev, ETH_MAC *mac)
    {
      ETH_MAC other_mac;

      /* ...code... */

      /* memcpy() bug: */
      memcpy(other_mac, mac, sizeof(ETH_MAC));

      /* or worse: */
      memcpy(mac, other_mac, sizeof(ETH_MAC));
    }

eth_copy_mac() and eth_mac_cmp() replace calls to memcpy() and memcmp()
that copy or compare Ethernet MAC addresses. These are type-enforcing
functions, i.e., the parameters are ETH_MAC-s, to avoid the subtle
memcpy() and memcmp() bugs.

This fix solves at least one Heisenbug in _eth_close() while free()-ing
write request buffers (and possibly other Heisenbugs.)
2025-08-17 16:02:56 -04:00
ken rector
73e5df3928 sigma: implement attention interrupt to sigma)mt.c 2025-08-17 15:33:25 -04:00
B. Scott Michel
7adffe5794 Github CI/CD updates
- Nuke and reinstall HomeBrew for macOS builds. Gets around the whole
  problem of stale links and conflicting packages installed in the GitHub
  macOS images.

- macOS 12 and Ubuntu 20.04 officially deprecated. Ubuntu 20.04 will be
  removed from GitHub's runner images on 01 APR 2025.

- .travis/deps.sh: Add mingw32 as a dependency target, enable MinGW64
  32-bit builds.

- Work around LTO bug on Ubuntu and macOS compilers, where LTO appears
  to miscalculate the number of bytes stored when using the default byte
  swapping 'for' loop. This is a workaround that uses compiler swapping
  intrinsics for well known sizes that appeases LTO. The alternative is
  to wait for a compiler fix, which is infeasible.
2025-08-17 15:32:19 -04:00
Calvin Buckley
6fd146ae66 Keep track of generated vmnet MAC addr
The vmnet interface created for a simh instance has its own MAC address.
It doesn't seem too useful to for simh itself (you can just use whatever
MAC address and send/receive frames with that), but it does make
referencing it in other places (i.e. SHOW ETHERNET vs. ifconfig) easier.

The generated MAC address is provided at interface creation time; while
we could look it up earlier like with pcap, this seems more efficient.
2025-08-17 15:25:22 -04:00
Calvin Buckley
a0df08ad95 Initial pass at documenting vmnet usage 2025-08-17 15:25:22 -04:00
Calvin Buckley
d440d35560 vmnet.framework with legacy makefiles
I have not put as many checks as the CMake version has. Those may get
unwieldy.
2025-08-17 15:25:22 -04:00
Calvin Buckley
c1c2259b13 Move vmnet below the definition of MAX to avoid redefinition 2025-08-17 15:25:22 -04:00
Calvin Buckley
f0fc035087 Defensive checks for vmnet.framework
Require targeting macOS 10.10, in case the user builds with an older SDK
or sets the target version to an older release. This shouldn't be a
problem with modern macOS SDKs, but users using or targeting older macOS
should have a better message available rather than a compile message.
The check is ugly, but it should work.

A similar check is done for block support; this should only be a problem
with users using GCC instead of clang, which is default on macOS.

Also add a message for vmnet support when printing the build config.
2025-08-17 15:25:22 -04:00
Calvin Buckley
f30d7fc2ed Check for macOS 10.15 to used bridge mode, make usage clear
Bridged devices require macOS 10.15 to work correctly. Check if we're on
macOS 10.15 at runtime (so a newer SDK can be used to make simh binaries
that target older macOS), and at compile time (so an older SDK can be
used to build simh).

Also make it so vmnet: for host only is deprecated; you must explicitly
provide either host, shared, or a bridged device name.
2025-08-17 15:25:22 -04:00
Calvin Buckley
2fa8a63a6a Allow for shared/bridged mode, show in SHOW ETHERNET
Show the allowed bridged network devices SHOW ETHERNET, as well as the
shared/host networking modes. It also shows shared/host/device name for
bridge in i.e. "HELP XS" output as well.

Shared, bridged, and host modes have other options for configuration;
i.e. isolation, IP ranges, etc. Some of these are not well documented,
so should look into these. Bridged mode needs macOS 10.15.
2025-08-17 15:25:22 -04:00
Calvin Buckley
361ef76dbc Initial support for vmnet.framework
On macOS, tap devices for L2 networking are not supported out of the
box. While a kext can be added to provide tap support, the kext
experience is not very good; Apple has strongly recommended against
their usage.

As a replacement that's documented and recommended, Apple introduced the
vmnet framework, intended for emulators and virtualization software
explicitly. This API requires macOS 10.10, with bridged network support
coming in macOS 10.15.

This introduces basic support for vmnet.framework in SIMH. I've tested
it by booting an emulated MicroVAX 3800 from an emulated InfoServer 150,
where it was able to reach OpenVMS 7.3 standalone BACKUP.
2025-08-17 15:25:22 -04:00
B. Scott Michel
ad3e744951 CMake: Regenerate
Periodic CMake update to sync with master branch changes.
2025-08-17 14:26:06 -04:00
Lars Brinkhoff
072f08a3c1 Imlac: Add Freeway game to tests.
Paper tape image provided by Zachary Harper @sparky-z.
2025-08-17 14:24:30 -04:00
Lars Brinkhoff
dfc0c677c8 Imlac: Add support for Alpha display processor.
Details figured out by Zachary Harper @sparky-z from reading the
listing "FREEWAY CROSSING PROGRAM".
2025-08-17 14:24:30 -04:00
Lars Brinkhoff
e7a151e1f1 Imlac: Improve debug output. 2025-08-17 14:24:30 -04:00
Lars Brinkhoff
c1904b50ce Imlac: Model MSB and LSB accumulators. 2025-08-17 14:24:30 -04:00
Lars Brinkhoff
8a31996d18 Imlac: Make display rate adjustable. 2025-08-17 14:24:30 -04:00
Lars Brinkhoff
29b8125aca Imlac: Set core memory size.
This adds new modifiers to the CPU device: 4k, 8k, and 16k.
2025-08-17 14:24:30 -04:00
Lars Brinkhoff
aa1f31dad0 Imlac: Add support for loading paper tapes.
"load -p" loads a paper tape image.
2025-08-17 14:24:30 -04:00
Lars Brinkhoff
ae2e3b02fd Imlac: Better parsing of load switches.
"load -s" loads a "special tty" image file, just like a plain "load" will.
An unknown switch will raise an error.
2025-08-17 14:24:30 -04:00
Lars Brinkhoff
70fdfed9a1 PDP8: Add the ICBM video game.
This is DECUS 5-277, a PDP-5 video game written by Len Berger, using
the Type 34 display.
2025-08-17 14:22:21 -04:00
Lars Brinkhoff
065f67ab7f PDP8: Add Type 34 display support. 2025-08-17 14:22:21 -04:00
Seth Morabito
e77598b61f 3B2: Address review comments 2025-08-17 14:19:18 -04:00
Seth Morabito
9fc0751c74 3B2: Support 4M RAM config on 3B2/700 2025-08-17 14:19:18 -04:00
Seth Morabito
3e0214aed0 3B2: Multiple bugfixes and improvements
- Allow 3 MB RAM configuration (previously only 1MB, 2MB, and 4MB
  configurations were allowed)
- Allow SCSI CIO card to be used under 3B2/400 emulation (previously
  it could only be used under 3B2/700 emulation)
- Improved CTC, PORTS, and SCSI diagnostic checks
- Fixed a bug in IDISK device that allowed impossible disk
  configurations

The last update is a breaking change that disables the HD161 disk
type by default, since real 3B2 hardware does not support it. The
disk type will still allowed in backward compatibility mode through
use of the "SET IDISK LARGE" command.
2025-08-17 14:19:18 -04:00
David Ellis
5a184eb71d PDP11: Fix typo in SYSTEM DR register description 2025-08-17 14:15:36 -04:00
Bob Supnik
f7048258b6 PDP11: MASSBUS controller clear vs rhwc register 2025-08-01 07:48:07 -10:00
Clement T. Cole
c5d1f8c5ef
Update isbc208.c
Comment out macro that is not being used and is conflicting with a global macro - causing build to fail
2025-06-29 16:58:05 -04:00
Thalia Archibald
29d390024f PDP11: Document CIS register-form instructions
Only the string instructions document the registers used by the
register-form instructions. Also document the BCD register-form
instructions. Although, the operands have already been loaded into the
special-purpose instructions before the op switch, I think this
documentation is useful.
2025-04-25 10:28:28 -07:00
Thalia Archibald
319f07fef3 PDP11: Fix L2DR and L3DR comments
These instructions are referred to as L2Dr and L3Dr in the PDP-11/24
System Technical Manual (https://www.vt100.net/manx/details/1,23) and
their opcode strings call them L2DR and L3DR. These comments seem to be
a simple typo.
2025-04-25 08:38:39 -07:00
Peter Kooiman
2e0d51e9e9 Avoid name space collision for the global variables PC, SP and BC when readline is dynamically loaded. 2025-04-07 16:53:44 +02:00
Patrick Linstruth
b036821a68 AltairZ80: VDM1 correct boot code, IO addressing 2025-02-13 09:15:33 -05:00
Lars Brinkhoff
feb155fbc4 H316: Convert IMP long leaders to short, and vice versa.
This adds the modifiers CONVERT and NOCOVERT to the HI units.  When
enabled for a unit, 1822 messages will transparently be converted.
IMP-to-host messages are converted from the old, short (32-bit) format
to the new, long (96-bit) format.  Host-to-IMP messages are converted
in the other direction.

The motivation for this feature, is that the currently running IMP
software is from 1974 and only supports short leaders.  Some operating
systems are from a later era, and only support long leaders.
2025-01-17 16:35:53 -05:00
ken rector
33d6b089bb sigma: return corrrect CC on line disconnect 2025-01-13 12:10:15 -05:00
B. Scott Michel
bad1e0e565
IMLAC: Type consistency warnings. (#430)
* IMLAC: Type consistency warnings.

* Remove unintentional changes

* Remove extra braces

* CUR_AC -> AC (revert)
2025-01-13 12:09:25 -05:00
B. Scott Michel
458ab73c4f TT2500: Debugging and reduce type slice warnings.
- Debug: Output the character received, if printable.
- Eliminate type slicing warnings (uint32 -> uint16)
2025-01-13 12:07:29 -05:00
B. Scott Michel
3e9d8cf864 Github: Update runner names
Update maOS the macos-14 runner name to macos-latest. Reduce the
runner's output when dealing with the leftover Python3 artifacts in
/usr/local.

Add the ubuntu-latest runner to the Ubuntu matrix.
2025-01-13 12:06:09 -05:00
Peter Schorn
96de0f0da2 AltairZ80: Support for disk images of Amstrad CPC 6128 with ULIfAC board 2025-01-13 12:03:52 -05:00
Patrick Linstruth
2437b13fb1 AltairZ80: Adds "rom" option to "load -h"
Adds "rom" option to set pages to ROM when loading an Intel
HEX file.
2024-09-05 17:21:41 -04:00
Ken Rector
36605c4950 sigma: Update latest from Bob Supnik's v3.12-5
- Add new CP and CR devices
- COC: Zero delay from SIO to INIT state Detect and UEN on 0xFF order
- COC: Moved SIO int pending test to devices
- DK: Zero delay from SIO to INIT state
- DP: Added case points for RDEES, dp_aio_status
- DP: Zero delay from SIO to INIT state
 - defs:  Added chaining modifier flag
 - defs:  Fixed DVT_NODEV definition
 - defs:  Added chan_chk_dvi definition
 - io: Added chaining modifier flag
- LP: Zero delay from SIO to INIT state
- LP: Added INIT test for illegal command
- LP: Moved SIO interrupt test to devices
- MT: Zero delay from SIO to INIT state
- PT: Zero delay from SIO to INIT state
- PT: Moved SIO interrupt test to devices
- RAD: Zero delay from SIO to INIT state
- RAD: Fixed nx unit test
- RAD: Fixed write protect test
- TT: Zero delay from SIO to INIT state
- TT: Moved SIO int pending test to devices
2024-09-05 17:21:04 -04:00
Ricardo Bánffy
9ef8bf57b4 Add note on MacPorts 2024-09-04 16:32:06 -04:00
Ricardo Bánffy
2bb425addf Add MacPorts as an option for the travis/deps.sh script 2024-09-04 16:32:06 -04:00
Tony Lawrence
c093bcdcf6 PDP11: RP11: Implement original RP11 controller flavor
Studying RSX11M source code I found out that the original RP11
controller (vs. -C and -E later versions) was still supported
in the software, and notably UMD (User Mode Diagnostics) was
still capable of handing it and dealing with its testing,
even in much later OS versions (compared to when the original
RP11 was phased out).

The change in this commit basically implements that flavor
(which only supported the RP02 drives), and also makes a few
minor fixes / cleanups for the device code, here and there.

The default mode for the RP11 controller remains the more widely
used -C/-E version, but if so desired, it can be downgraded to
support its predecessor with the "SET RR <type>" command now.
2024-09-04 13:39:47 -04:00
CRWolff
0e83a37a99 VAX: Mask QBus addresses to 22 bits for ka630/ka65x 2024-09-04 13:04:14 -04:00