Commit graph

4665 commits

Author SHA1 Message Date
ken rector
609d46e801 sigma_rad:fix wp test in sense and write op 2023-05-09 11:27:44 -04:00
Mark Pizzolato
49eccc768a SCP: Include all simh supported system includes in sim_defs.h
Only SCP libraries should be including additional OS specific include
files since they cover both:
   1) Are responsible for platform specific details integrated into simh
       support
and
   2) Implement extended functionality optimally considering the proper
       behaviors to cooperate with the simh event system and existing
       capabilities.

Simulator code can optionally include any of these system include files:
  <stddef.h>, <stdlib.h>, <stdio.h>, <stdarg.h>, <string.h>, <errno.h>.
  <limits.h>, <ctype.h>, <math.h>, <setjmp.h>

Such inclusion will be redundant with what is already provided here
by sim_defs.h.  Simulator code should include SCP provided include files:
  "scp.h", "sim_card.h", "sim_console.h", "sim_disk.h", "sim_ether.h",
  "sim_fio.h", "sim_imd.h", "sim_scsi.h", "sim_serial.h", "sim_tape.h",
  "sim_timer.h", "sim_tmxr.h", "sim_video.h"
depending on the specific needs of the device being simulated.
2023-05-09 11:26:27 -04:00
Howard M. Harte
2c6ad66acd AltairZ80: IBC: Fix MCC hard disk command mask. 2023-05-09 11:23:38 -04:00
Howard M. Harte
d2b663ec94 AltairZ80: IBC: Fix line endings. 2023-05-09 11:23:38 -04:00
Lars Brinkhoff
af9c7b5ebc VAX: M7452 Unibus window module for VAXstation 100. 2023-05-04 13:28:11 +02:00
Peter Schorn
1aa76cca6e AltairZ80: Additional checks for stop_cpu condition 2023-04-26 10:19:23 -04:00
Howard M. Harte
044ba02847 AltairZ80: Add IBC computers to .vcxproj. 2023-04-25 21:00:09 -07:00
Howard M. Harte
0184492d81 AltairZ80: Add IBC computers to VS2008 project. 2023-04-25 21:00:09 -07:00
Howard M. Harte
15d2b89573 AltairZ80: Add IBC Super Cadet / Middi Cadet support. 2023-04-25 21:00:06 -07:00
Peter Schorn
f0b782b33a ND100: Added void in function declarations, removed unused function ffs 2023-04-17 11:03:09 -04:00
Seth Morabito
ae7ca950f2 3B2: Fix for diagnostics timer hang
Under certain circumstances, the timer resolution in the Version 3
could become coarse enough that very short timer intervals would lead
to an infinite loop of bus errors when running timer firmware
diagnostics.
2023-04-13 05:56:35 +02:00
Seth Morabito
7be9f2f3e8 3B2: LPT Device; MMU and SCSI fixes
This change adds support for printing to an attached text file via the
Centronics port of a simulated PORTS feature card. A new device named
"LPT" has been added. See "help lpt" for documentation.

Additionally, there has been a fix to a bug in the SCSI tape boot
implementation and a very minor bug fix to the Rev 3 MMU.
2023-04-09 12:36:15 -07:00
Peter Schorn
e4ad37eccc SCP: Fix possible memory corruption issue 2023-04-07 09:17:46 +02:00
Mark Pizzolato
374e3b8e71 SCP: Change declaration of get_yn() to have boolean argument and return value
- Fix improper get_yn() use in test library logic

Reported by Peter Schorn
2023-04-06 13:00:52 -10:00
ken rector
c654c20c49 sigma: MT: AIO must mask unit number before calling TDV status. 2023-04-05 16:32:23 -04:00
Peter Schorn
8b1b5eaeb7 AltairZ80: Add void when missing in function declaration 2023-04-05 16:28:15 +02:00
Peter Schorn
cc23adf6fd AltairZ80: Remove MetroWerks support for Macintosh OS 9 2023-04-05 16:15:41 +02:00
Mark Pizzolato
75e79a4da8 ND100: Fix CLK device setup and calibration
Original logic mixed up parameters and calibrated for 20000 ticks
per second rather than 50.
2023-04-03 10:24:53 -04:00
Patrick Linstruth
0bc7f09edf AltairZ80 VDM1: Corrects SCP error and video aspect ratio
Corrects video window aspect ratio
Corrects 'd -m c mov m,b' SCP error
Changes default dirty flag from FALSE to TRUE
2023-04-03 09:58:56 -04:00
Mark Pizzolato
9e0253f079 ETHER: Increase the number of potential interfaces to 40 2023-04-02 12:37:38 -10:00
Howard M. Harte
9947ed791f AltairZ80: Fix Windows CI builds. 2023-04-01 07:01:19 -07:00
Howard M. Harte
30d45ae7d9 AltairZ80: CPU: Properly reset PC.
After adding the sim_clock_precalibrate_commands, the PC was not zero
at the sim> prompt after loading altairz80.

Set CPU_S to zero in cpu_reset to address this issue.
2023-04-01 07:01:16 -07:00
Howard M. Harte
74eb45492a AltairZ80: Fix warnings in m68kfpu.c. 2023-04-01 07:01:15 -07:00
Howard M. Harte
7286b4a724 AltairZ80: Fix warnings in altairz80_sio.c. 2023-04-01 07:01:15 -07:00
Howard M. Harte
58b565f769 AltairZ80: Fix warnings in altairz80_hdsk.c. 2023-04-01 07:01:14 -07:00
Howard M. Harte
885f9123c1 AltairZ80: Fix warnings in altairz80_cpu.c. 2023-04-01 07:01:13 -07:00
Howard M. Harte
0521722525 AltairZ80: Resolve warnings in Flashwriter and Disk3. 2023-04-01 07:01:12 -07:00
Howard M. Harte
94d0e78a2e AltairZ80: Move find_unit_index() to altairz80_sys.c 2023-04-01 07:01:12 -07:00
Howard M. Harte
c6e9acab8a AltairZ80: wd179x: clean up / correct usage of status. 2023-04-01 07:01:11 -07:00
Howard M. Harte
d47216212c sim_imd: Resolve warnings. 2023-04-01 07:01:08 -07:00
Anders Magnusson
b40f7efde8 ND100: Initial support for Nord-100, implements the base instruction set.
Passes the test program INSTRUCTION-B.
2023-03-31 14:41:47 -04:00
Paul Koning
b0f69eea95 PDP11: Support byte write access to DHCSR.
This fixes issue #201, using a fix proposed bu Bjoren Davis.
2023-03-30 09:33:41 -04:00
Peter Schorn
27bd6b81aa Fix UTF-8 encoding for five files 2023-03-30 09:31:06 -04:00
ken rector
869dc0fe4a sigma: Correct recognition of pending DP seek interrupt.
This corrects an error that caused SIO reject when SIO occured before
a pending seek interrupt on a different device.
 - Move the interrupt pending test from sigma_io.c into each device.
 - Make the sigma_dp.c test a special case that looks for pending
   seek interrupts.
2023-03-29 10:10:14 -04:00
Richard Cornwell
4b8a6f8d2c KA10: Fixed DPY 340 second interrupt on KA10. 2023-03-29 10:08:06 -04:00
Patrick Linstruth
d70a0a16c5 AltairZ80 SOL20: Minor corrections and formatting
While working on the AltairZ80 documentation, I found some problems
with the SOL20 registers and fixed some formatting issues.
Added static and "vdm1_" prefix to "charset" variable in s100_vdm1.c
2023-03-24 21:42:10 -07:00
Mark Pizzolato
7a8cfcac05 SCP: Add .editorconfig which describes the project's long standing convention
This will hopefully automatically get small changes to adhere to the
conventions without them slipping through in the future.
2023-03-19 16:51:27 -04:00
Mark Pizzolato
decbe5b76b Various simulators: Set line endings to CRLF for consistency, remove stray tabs
Project standard source code has tabs converted to spaces and CRLF line
endings.

Other text files have CRLF line endings.
2023-03-19 16:51:27 -04:00
ken rector
f1f8cf9cb1 sigma: COC device, committed two fixes for sigma_coc.c.
sigma: COC device, add LNORDER command option
sigma: COC device, handle transmit long, stop transmit and receive break
2023-03-19 16:50:05 -04:00
ken rector
f1811c49bd SDS: Reset CR DEVICE cr_eor on disconnect. Caused algol compiler to hang. 2023-03-19 16:48:46 -04:00
Patrick Linstruth
cf9fac614c AltairZ80: Adds SOL20 and VDM1 devices
This PR adds support for the Processor Technology VDM-1 display adapter and Sol-20 computer system. The VDM-1 was integrated into the Sol-20 but has been separated out into its own device.

This PR adds the following devices to the AltairZ80 simulator:

VDM1 - Processor Technology VDM-1 display adapter
SOL20 - Processor Technology SOL20 with SOLOS ROMs
SOL20K - SOL20 Keyboard (callback from VDM1)
SOL20T - SOL20 Tape (reads/writes cassette file images)
SOL20S - SOL20 Serial Port (TMXR capable)
SOL20P - SOL20 Printer Port (TMXR capable)
2023-03-19 16:47:38 -04:00
Patrick Linstruth
825a505083 AltairZ80: Add sim_clock_precalibrate_commands
Used to initialize SCP timers to prevent problems during simulator startup
when THROTTLE is being used.

/*
 * This sequence of instructions is a mix that mimics
 * a resonable instruction set that is a close estimate
 * to the calibrated result.
 */

static const char *cpu_clock_precalibrate_commands[] = {
    "-m 100 LXI H,200H",
    "-m 103 MVI B,0",
    "-m 105 DCR B",
    "-m 106 MOV M,B",
    "-m 107 INX H",
    "-m 108 JNZ 0105H",
    "-m 10B JMP 0100H",
    "PC 100",
    NULL};
2023-03-19 16:45:19 -04:00
Timothe Litt
86b19c767b Change archives from BZIP2 to ZIP
PowerShell can create ZIP files, which Windows explorer
can access natively.
2023-02-26 22:22:01 -05:00
Timothe Litt
1f94350beb Fix uninitialized warning from VS2022
(It's undeserved.)
2023-02-26 22:22:01 -05:00
Timothe Litt
cf45e06f65 Include Windows build in CI and deploy
- Builds x86 and x64 regular snapshots.
   x64: Mon      Wed     Fri
   x86:      Tue     Thu     Sat
   ARM: Mon          Thu         Sun (ARM not enabled)

 - Builds x64 on closed pull request, Release

 - Manual trigger allows selection of ref, platform,
   architecture, config, disposition

 - Releases and daily snapshots are deployed automagically

 - VS Project 2022 files updated for ARM, but not setup for
   cross-builds (BuildROMs) or tested on ARM (no hardware)

 - Fix makefile tests for cygwin
2023-02-26 22:22:01 -05:00
Jim Bevier
4e159a04ed SEL32: Add IPU device support using pthreads on Linux and Windows.
SEL32: Update makefile and SEL32.vsproj file to add IPU device.
SEL32: Update README.md file.
SEL32: Do a general code cleanup.
2023-02-07 20:30:54 -05:00
Mark Pizzolato
5e01c0516b 3B2: Fix inconsistent 64bit type name reference 2023-02-07 09:07:23 -05:00
Howard M. Harte
c5ce339566 AltairZ80: ADCS6: Fix uninitialized unit structure
Proper initialization of the ADCS6 unit data structure depended on the
ADCS6 device being enabled.  In cases where the ADCS6 unit was not
enabled, non-debug builds may crash on some host platforms depending on
compiler/memory layout.
2023-02-06 19:12:49 -08:00
Bob Supnik
2374c3b6b3 Floating loads are src,dst (nickd4) 2023-02-03 09:27:28 -05:00
Timothe Litt
949359fd42
Update version to identify Open SIMH builds
This is to prevent confusion when questions come in.

Plus, a little advertising never hurts.

The version output will now include "Open SIMH", and the version
number will be '4.1.*' rather than '4.0.*'.
2023-02-02 16:09:22 -05:00