Commit graph

100 commits

Author SHA1 Message Date
Peter Schorn
c1d9db8be7 AltairZ80: Remove old documentation and replace with current 2019-07-18 20:45:59 +02:00
Mark Pizzolato
0b9cfa9b4d AltairZ80: Fix potential buffer overrun compiler warnings 2019-07-16 05:08:37 -07:00
Peter Schorn
ddb4cb4661 AltairZ80: Fix issue detected by Coverity (unchecked sim_fseek in n8vem.c) 2019-03-24 21:51:26 +01:00
Peter Schorn
86114729de AltairZ80: Make WD179X device more robust and fix Coverity issue 2019-02-23 13:22:52 +01:00
Peter Schorn
52817a58b9 AltairZ80: Fixed hard disk device boot 2019-02-09 17:44:23 +01:00
Peter Schorn
1b7d77e03b AltairZ80: Replaced assert() with ASSURE() for error checking at run time 2018-08-11 09:48:55 +02:00
Peter Schorn
8077d4de38 AltairZ80: Clean up of source code formatting 2018-06-17 08:37:08 +02:00
Peter Schorn
221d72f057 AltairZ80: Fixed integer type issue in mfdc.c 2018-06-01 07:10:57 +02:00
Peter Schorn
b3136d2d6d AltairZ80: Replaced platform specific directory scanning with SCP API (update 2) 2018-05-19 15:53:42 +02:00
Tony Nicholson
ceb54e5ff7 AltairZ80: Set conditional under CYGWIN so the SIMH device works
Under CYGWIN the conditional tests in the altairz80_sio.c source file for the
SIMH pseudo device's getHostsFilenamesCmd and resetSIMHInterfaceCmd
functions need to have UNIX_PLATFORM set to 1 - otherwise they do nothing!
With this fix, the HDIR host command from CP/M now displays a list of files
in host system's current directory under CYGWIN.
2018-03-23 15:25:59 -07:00
Mark Pizzolato
760e7f2810 SCP: stop_cpu and sim_is_running variables t_bool 2018-02-02 05:02:27 -08:00
Peter Schorn
6a180c3dfc AltairZ80: Removed unneeded definition of strcasecmp 2017-05-02 20:44:36 +02:00
Peter Schorn
e9dea63b50 AltairZ80: Further fall through comment 2017-05-02 18:24:00 +02:00
Peter Schorn
7a46fcf17c AltairZ80: Clean up of fall through comments 2017-04-29 08:13:24 +02:00
Peter Schorn
17903827bd AltairZ80: Mark Coverity false positives in rotate operations 2017-04-01 08:48:43 +02:00
Peter Schorn
9f746cfefa AltairZ80: Improved diskClose error handling (Coverity Scan) 2017-03-14 18:12:27 +01:00
Peter Schorn
30556c8d78 AltairZ80: Fix uninitialized variable (Coverity Scan) 2017-03-13 21:59:37 +01:00
Peter Schorn
bd575651ca AltairZ80: More fixes from source code scan (Coverity Scan) 2017-03-12 18:21:07 +01:00
Peter Schorn
70a8921a7a AltairZ80: Fix various static source scanning detected issues (Coverity Scan) 2017-03-12 12:06:05 +01:00
Sergey Svishchev
e49f06dcc3 AltairZ80: fix out-of-bounds accesses (Coverity Scan) 2017-03-11 23:48:03 -08:00
Mark Pizzolato
d8dbc7e6b5 SCP: Migrate all stdio writes to pass through SCP provided Fprintf() 2017-01-14 20:48:09 -08:00
Peter Schorn
a2d900e62b AltairZ80: Implemented proper memory refresh register R semantics 2016-12-17 12:24:12 +01:00
Peter Schorn
dc2bbe5a40 AltairZ80: Updated 8080/Z80 CPU for new breakpoint package 2016-08-31 17:39:04 +02:00
Peter Schorn
9d2b7ee968 AltairZ80: Fixed NUM_CHIP_TYPE warning and added missing declaration 2016-05-23 13:26:17 -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
Mike Douglas
7a231a2cf9 AltairZ80: Add support for North Star single density controller
The first disk controller made by North Star was a single density
controller (MDSA). This was followed by the double density controller
(MDSAD) that is already supported in SIMH. This update adds support for
the single density controller as device MDSA. Since the controllers are
not software compatible, this update allows running of older software
designed for the MDSA controller.
2015-12-16 15:39:46 -06:00
Mike Douglas
f3af74e444 AltairZ80: Fix head stepping to only occur on 1 to 0 transitions
The source file to be updated provides emulation of the North Star DD
floppy disk controller. The proposed change steps the head only when the
step bit in the order byte transitions from 1 to 0. This is the way the
actual hardware functions. Previously, the emulation would step any time
an order was issued and the step bit was 1. This behavior caused some
original software (e.g., Lifeboat CP/M 2.2) to end up on an incorrect
track.
2015-08-08 21:27:09 -05:00
Peter Schorn
bb39ce97c7 AltairZ80: Better comparison operator to remove warning message 2015-08-08 08:58:24 +02:00
Peter Schorn
a9e5913d0c AltairZ80: Reduced polling for CPU stop on non UNIX platforms 2015-04-26 09:50:00 +02:00
Peter Schorn
ff908f4f59 AltairZ80: Simplified polling for stop CPU on non UNIX platform 2015-04-25 14:02:26 +02:00
Peter Schorn
ad3767a2bd AltairZ80: Fixed keyboard polling on non UNIX platform and daylight savings time issue with CP/M 3 clock 2015-04-25 08:31:05 +02:00
Mark Pizzolato
66dba79418 ALPHA, ALTAIR, AltairZ80, I7094, NOVA, PDP1, PDP10, PDP11, PDP18B, PDP8, SAGE, sigma, swtp6800, TX-0, VAX: Change tabs to spaces which had crept in over time 2015-03-30 10:24:24 -07:00
Howard M. Harte
569cfaf591 AltairZ80: mfdc: Only display ROM write attempt error messages when debug is enabled 2015-03-21 13:33:59 -07:00
Mike Douglas
89a3783281 AltairZ80: mfdc: allow disk controller to work with MZOS disk images
Do not insert the computed checksum for VGI disk images, since the
checksum is already present in the sector data.
2015-03-18 19:41:24 -07:00
Mark Pizzolato
e768629009 SCP: Added the capability for EXAMINE command output to be written directly to a socket. 2015-02-21 12:40:36 -08:00
Mark Pizzolato
0b015efcac Compiler suggested cleanup 2015-02-11 12:25:11 -08:00
Mark Pizzolato
1fb209c275 SOCKETS: Cleanup, simplify and extend the sim_sock API set.
Cleanup/Simplification by:
	1) removing irrelevant master flag variable from sim_close_sock and thus sim_err_sock
	2) change previous boolean feature arguments (datagram, nodelay, reuseaddr) to flag bits in a single option argument.  This allows for features to be added by new flag bits which don't change the calling signatures.
	3) changed all status returns to be int (vs t_stat) with success being 0 and error being -1
	4) removed unneeded simh specific type references to allow sim_sock to be used by n
Extended API by providing flags to influence socket setup/behavior:
	SIM_SOCK_OPT_REUSEADDR	Retains prior behavior when sim_switches had -U set
	SIM_SOCK_OPT_DATAGRAM	UDP socket setup provided for when prior datagram argument was specified
	SIM_SOCK_OPT_NODELAY		TCP Nagle disable provided for when prior nodelay argument was specified
	SIM_SOCK_OPT_BLOCKING	Blocking socket mode (detault is non blocking)
2015-02-11 09:41:18 -08:00
Peter Schorn
ea5b1dc6fe AltairZ80: Fixed confusing call to memset 2014-11-12 19:06:24 +01:00
Peter Schorn
1cc1ca7a41 AltairZ80: Removed unnecessary calls to abs() 2014-10-28 18:53:12 +01:00
Mark Pizzolato
2e1167d4a0 Compiler suggested cleanups - mostly const fixups 2014-10-26 17:06:24 -07:00
Peter Schorn
ebf53c9cda Replaced printf with sim_printf. 2014-10-24 23:10:54 +02:00
Mark Pizzolato
3951ad2432 Cleanup of unneeded global extern declarations 2014-10-10 08:18:15 -07:00
Mark Pizzolato
0b1050853e SCP: Allow for the potential of a breakpoint action to remove the establishing breakpoint while still completing pending actions 2014-10-10 08:03:22 -07:00
Peter Schorn
977712b9c5 AltairZ80: More debug information available when using IMD disks 2014-09-21 09:42:26 +02:00
Mark Pizzolato
defe5f07d9 AltairZ80: Promote sim_imd.c to a top level simh library to be used as needed by various simulators 2014-09-16 11:29:19 -07:00
Mark Pizzolato
60a0cf7468 AltairZ80: Reworked the conditional compile time debug code to use the runtime sim_debug() APIs. 2014-09-16 11:07:15 -07:00
Peter Schorn
899b7a654e Improved DSK handling from Mike Douglas and bug fix in URLContens. 2014-09-09 18:27:25 +02:00
Peter Schorn
a0c978f5f7 AltairZ80: Improved Altair Minidisk support from Mike Douglas 2014-07-05 09:44:20 +02:00
Peter Schorn
f8020a2c4c AltairZ80: Addressed Microsoft compiler generated warnings 2014-05-29 18:12:18 +02:00