1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

5079 Commits

Author SHA1 Message Date
Mark Pizzolato
ab832ce274 TAPE: Better expose the various tape debug options usable from device debug
- Cleanup tape debug options and internal usage
- Add MTSE_DBG_INT for internal API activities
- Make sure SCSI uses the correct debug value for tape debug
2025-12-02 08:19:09 -10:00
Mark Pizzolato
5c68a17c13 SCP: Provide better support for SHOW devices with only one unit
- Cleaner display of SHOW DEBUG for devices with UNIT level debugging
2025-12-02 08:14:22 -10:00
Mark Pizzolato
b5bb4fa6dd Visual Studio Projects: Add a 'clean' option for the command line build 2025-12-02 08:14:21 -10:00
Mark Pizzolato
4fd9ded9ae CONSOLE: Add better support for SET CONSOLE TELNET=CONNECT
- Some OS support had a bug in the command passed to run telnet in the
  new window.
- Report when there appears to be no telnet client available on the
  local system.
- Add support for Fedora KDE.
2025-12-02 08:14:21 -10:00
Mark Pizzolato
7c47a6be6d Visual Studio Projects: Leverage the Visual Studio independent windows_build
- Add zlib to support compressed screenshots for libpng
2025-11-25 07:31:13 -10:00
Patrick Linstruth
d81cb4fc48 Altair8800: SIMH device and WD17XX API corrections
SIMH: Adds support for wildcard filename transfers
WD17XX: Corrects a problem with DRQ status
2025-11-23 19:27:16 -05:00
Patrick Linstruth
aad5351080 Altair8800: New Simulator
This is the initial release of the Altair8800 simulator.

Why another Altair simulator? AltairZ80 has been described as a
“software simulator”, where the intent is to run software designed
specifically for executing under a simulator. Altair8800 is intended
to accurately simulate the Altair hardware and execute software
that will run unchanged on real hardware. Software and disk images
can be moved between the Altair8800 simulator and real Altair and
other S-100 hardware without any changes. The Altair8800 simulator
is a tool that can assist with the restoration of vintage Altair
and other S-100 hardware and software along with the development
of new hardware and software. The accomplish this, the following
are major differences between AltairZ80 and Altair8800.

* The monolithic design where devices access other devices directly
through external variables and functions is no longer supported.
All devices exchange data through a new BUS device. Memory and I/O
address decoding and transfers are now handled by the BUS device.
All interrupt requests are handled by the BUS device.

* System RAM was moved from the CPU device to a new RAM device and
managed by the BUS device.

* Banked RAM was moved from the CPU device to a new BRAM device.

* Banked RAM can only be accessed through the BUS device. Memory in
banks that are not currently selected cannot be accessed. The AZ80
“banked” RAM was removed.

* ROMs were moved from the CPU and DSK devices to the new ROM device.
Mike Douglas’ Altmon Monitor is also available through the ROM
device. The custom AltairZ80 ALTAIRROM, which is not compatible
with original Altair disk images, is also available.

* The custom ALTAIRROM boot loader was replaced with the original
MITS Disk Boot Loader as the default ROM.

* The monolithic Multiple-CPU/RAM/ROM/IO/BankedRAM CPU device has
been replaced with a generic CPU device that provides an abstraction
layer between SIMH and the supported CPU architectures (currently
8080 and Z80). All IO is handled through the BUS device. RAM, Banked
RAM, and ROM are each handled by their own independent devices.

* The AltairZ80 SIO device was replaced with the M2SIO0 and M2SIO1
devices. The M2SIO devices fully support TMXR.

* A new SIO device was added to provide generic, programmable, Serial
IO. TMXR is not supported on this device.

* The Altair 8800 did not have PTR or PTP hardware devices. They have
been removed and replaced with the M2SIO1 device. PTR and PTP devices
are defined by software executing on the simulator.

* Contention between multiple enabled serial devices checking the
single host keyboard for input is now handled by the BUS device.
Port 0xFF sense switches was moved to a new SSW device and IMSAI
programmed output was moved to a new PO device.

* The SIMH pseudo device no longer uses the removed PTR and PTP
devices. The SIMH device has its own IO system. To avoid conflicts
with other devices and remain compatible with the R and W utilities
written for AltairZ80, SIMH “borrows” I/O ports 12H and 13H during
file transfers. Only SIMH commands needed to support R and W file
transfers are supported. All other SIMH commands were removed.

* AltairZ80-specific versions of CP/M are not supported by Altair8800.

* PC queue was removed from CPU device and replaced with CPU HISTORY.

* The Altair8800 simulator only supports 16-bit address and 8-bit
data buses. 8086 and 68K CPU architectures were removed.

* All CPU timing (clockFrequency) and “sleeps” (SIO SLEEP) have been
removed. SIMH THROTTLE is fully supported and is the recommended
way to manage simulator speed and host CPU utilization. Executing
“SET THROTTLE 100K/1”, for example, should provide ample speed
without tasking the host CPU.

* HEXLOAD and HEXSAVE commands were added. The LOAD “-h” option has
been removed. Intel Hex and sRecord (coming soon) formats are
supported.

* The WD179X device was converted to an API.

* A new DSK API was added to provide a consistent way to manage soft
sector raw disk images.

* Support for the proprietary IMD disk image format was removed. Only
RAW disk images are supported.

The following devices are supported by this initial release:

BUS - Altair (S-100) Bus
CPU - Intel 8080 / Zilog Z80
RAM - 64K RAM
ROM - ROMs
BRAM - Banked RAM
DSK - MITS 88-DCDD Floppy Disk Controller
M2SIO0 - MITS 88-2SIO Port 0
M2SIO1 - MITS 88-2SIO Port 1
SSW - Sense Switches
PO - Programmed Output
SIO - Generic Serial I/O
SBC200 - SD Systems SBC-200
TARBELL - Tarbell SD and DD Floppy Disk Controller
VFII - SD Systems VersaFloppy II
SIMH - SIMH Pseudo Device
2025-11-21 17:01:40 -05:00
Mark Pizzolato
3503e7b794 Visual Studio Projects: Build Cleanup for Initial VS2026 Support
- Cleanup build details and provide initial detection support for
  building Visual Studio 2026.
- Automatically leverage the v141 Visual Studio platform Toolset if
  it is installed.  This avoids failing build attempts when windows_build
  hasn't yet been updated to support the frequently changing VS2022
  or VS2026 build components.
- Fix pdp11.vcproj to avoid warning when project is converted.
- Fix trivial compiler warnings in alpha_cpu.c and hp_tapelib.c
2025-11-21 02:22:30 -10:00
Mark Pizzolato
3e3fc123c7 Visual Studio Projects: Enable Debug build with windows_build support missing
Change storage of solution and project files to be text rather than binary.
2025-11-17 20:36:24 -10:00
Mark Pizzolato
060747aa1e build_vstudio: Update to process current Visual Studio Version detection
- When building projects, display the project names directly
2025-11-12 14:46:18 -10:00
Mark Pizzolato
c09d0505db Visual Studio Projects: Fetch windows-build before reporting update needed
The value in _X_REQUIRED_WINDOWS_BUILD normally forces a fetch of the
latest windows_build components that are available.  This value might
not be updated before the local system's Visual Studio tool chain is
updated.  When this Visual Studio is a version that isn't supported by
the locally available windows_build, it is worth checking to see if
windows_build has already been updated to support the newest Visual
Studio version.
2025-11-12 14:36:54 -10:00
Mark Pizzolato
a860d166fc DISK: Meta data maintenance
- Clean up and avoid crazy extending when autosizing and repair any
  prior mangling.
- Get Media-ID correct after a resize.
2025-11-12 14:34:20 -10:00
Mark Pizzolato
c986b9082b makefile: Revert to prior build behavior when GNU make 4 isn't available 2025-11-12 14:33:49 -10:00
Mark Pizzolato
7cde9d27ba makefile: Defaults now show summary build commands and separate module compiles
- Invoking make with QUIET=0 (or in an exported environment variable)
  will display the full compile and link commands executed.
- Invoking make with BUILD_SEPARATE=0 will cause each simulator
  being built to be built with a single compile and link command.
  This is how things were previously, but now the default has been
  changed to more easily support active simulator development
  by compiling files that have changed.
- Silence link time warning on macOS
- cleanup C++ support for ND100 and C++ builds of other simulators
2025-11-04 15:21:37 -10:00
Mark Pizzolato
31c211c502 makefile: Remove redundant -lSDL2 library declaration from altairz80 build
Some environments don't complain, macOS has started to complain about
this.
2025-10-24 17:41:27 -10:00
Mark Pizzolato
16ee39a139 SAGE: Change various Intel part devices to unique names
This avoids potential filename confusion between simulators when
building with separate compiles.
2025-10-24 15:42:54 -10:00
Mark Pizzolato
d6a53f1c06 SCP: Cleanup allocated memory assignments for C++ compatibility 2025-10-24 08:19:42 -10:00
Lars Brinkhoff
68c9c5536f 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-24 03:44:31 -10:00
Mark Pizzolato
f8c367d75d FIO: Add Source check options to allow exceptions for Binary and Tabs 2025-10-22 11:24:11 -10:00
Mark Pizzolato
b915b3aede FIO: Add Line numbers to tab and non-ascii character reports 2025-10-21 11:34:31 -10:00
Peter Schorn
589bb5610f AltairZ80: Improved choice of boot ROM 2025-10-21 06:39:40 -10:00
Mark Pizzolato
a9e4370b38 ETHER: Really fix the Linux and macOS tap functionality
Really fix #1230
2025-10-19 16:16:31 -10:00
Mark Pizzolato
dc82d6d017 ETHER: Fix recently introduced bug affecting tap on Linux
Fix #1230
2025-10-18 12:03:54 -10:00
Mark Pizzolato
271965ca99 TT2500: Minor history enhancements
- Issue reasonable error message explaining invalid SET CPU HISTORY=n input
- Let SIGINT (^C) abort SHOW HISTORY output
2025-10-12 18:57:08 -10:00
Mark Pizzolato
d5ccdd843f LINC: Add Visual Studio project files. 2025-10-12 18:37:37 -10:00
Lars Brinkhoff
7f4bf21807 LINC: Fix test 31 and 35 on the diagnostics tape.
Block 45 held damaged data, and block 51 was identical to block 52.
2025-10-12 18:36:44 -10:00
Lars Brinkhoff
1dfddb2158 LINC: Diagnostics for classic LINC.
These are tests for the classic LINC, including the features new in
1965: 2048 words of memory, a Z register, an overflow flag, and an
interrupt facility.
2025-10-12 18:36:44 -10:00
Lars Brinkhoff
f5f2930712 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-12 18:34:50 -10:00
Lars Brinkhoff
3dd72309b5 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 12:40:31 -10:00
Mark Pizzolato
1bce78cf38 makefile: Cleanup build issues on some macOS and Android 2025-10-10 22:30:55 -10:00
Richard Cornwell
0ebf3b1c4a KA10: Removed stray tabs. 2025-10-10 19:23:48 -10:00
Richard Cornwell
0d56d53740 SCP: Clean up comments on sim_card.[ch] on format of card decks. 2025-10-10 19:23:48 -10:00
Mark Pizzolato
4562c3cf17 makefile: Tolerate host platforms which no longer package libpcre
- Also provide better support for termux builds on different Android
  versions.
2025-10-10 19:16:51 -10:00
Mark Pizzolato
85e1957fd0 ETHER: Coalesce Ethernet devices with consistent hierarchical attach help
Migrate platform dependencies into sim_ether's help rather that
scattered amongst each functional Ethernet device.
2025-10-10 17:53:57 -10:00
Mark Pizzolato
a074ebae8c VIDEO: Reject attempts to take screen shots when no display is active 2025-10-10 17:48:22 -10:00
Mark Pizzolato
6825288a94 SCP: Extend hierarchical help for device type attach language insertion
This allows all devices across all simulators to avoid having identical
attach language which may have host platform specific language.
2025-10-10 17:46:19 -10:00
Mark Pizzolato
d569493baf SCP: Minimize simulator startup time on Windows when WMIC isn't available
Optimize SHOW VERSION processing to only dig up unchanging external things
the first time show_version() is invoked by saving the original results.
2025-10-03 14:57:30 -10:00
Mark Pizzolato
ca229cc207 SCP: Gather Windows Platform details by alternate means when WMIC is gone
SIMH SHOW VERSION output displays as much potentially useful information
about both the currently running simulator and the host platform it is running
on.  On Windows host systems, some of this information has been gathered
from the output of the WMIC command which is deprecated and is already
being removed from new and future systems.

This change leverages WMIC when it is available, and attempts to gather the
interesting information from elsewhere when it is not.

As reported in #1227
2025-10-01 11:42:25 -10:00
Mark Pizzolato
5c59cced96 FIO: Add sim_trim_spc API to trim spaces from the front and back of a string 2025-10-01 10:51:03 -10:00
Mark Pizzolato
43bc996cdb SCP: Expose memory file functions to SCP private code 2025-09-28 08:15:31 -10:00
Sergey Svishchev
bcdc992cca VIDEO: handle error conditions and uninitialized displays when taking a screenshot. 2025-09-28 04:21:07 -10:00
Mark Pizzolato
b838d94282 SCP: Fix output produced when EXAMINE an array register
This problem was a latent bug introduced when summarized array register
output was added back in 2013 or 2018.

This fixes the problem reported in https://github.com/open-simh/simh/issues/499
2025-09-25 09:40:19 -10:00
Sergey Svishchev
45fe20a34b 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-12 10:23:51 -10:00
Richard Cornwell
dd31ce6e75 KA10: Update PI Panel to properly display the MI register. 2025-09-12 10:11:16 -10:00
Richard Cornwell
1673c85fc8 KA10: Update DD and TYM drivers to remove compile warning. 2025-09-12 10:09:04 -10:00
Mark Pizzolato
7619e27394 ETHER: Avoid theoretical buffer overrun defining SIM_ETHER_CAPABILITIES 2025-09-06 12:40:39 -10:00
Mark Pizzolato
46c6398912 makefile: Fix prompting of adding missing packages in some cases 2025-09-01 16:01:11 -10:00
Mark Pizzolato
ea37ca9ff5 SCP: Add a -F option to SET <dev> DISABLE command to force detach and cancel 2025-09-01 09:55:30 -10:00
Howard M. Harte
0bccaaab66 AltairZ80: wd179x: Better support for 5.25-inch floppies. 2025-08-30 21:14:48 -10:00
Lars Brinkhoff
4d57b9b44e Imlac: Add Freeway game to tests.
Paper tape image provided by Zachary Harper @sparky-z.
2025-08-30 21:05:58 -10:00