mirror of
https://github.com/simh/simh.git
synced 2026-04-26 03:57:11 +00:00
Notes For V2.10-0
WARNING: V2.10 has reorganized and renamed some of the definition files for the PDP-10, PDP-11, and VAX. Be sure to delete all previous source files before you unpack the Zip archive, or unpack it into a new directory structure. WARNING: V2.10 has a new, more comprehensive save file format. Restoring save files from previous releases will cause 'invalid register' errors and loss of CPU option flags, device enable/ disable flags, unit online/offline flags, and unit writelock flags. WARNING: If you are using Visual Studio .NET through the IDE, be sure to turn off the /Wp64 flag in the project settings, or dozens of spurious errors will be generated. WARNING: Compiling Ethernet support under Windows requires extra steps; see the Ethernet readme file. Ethernet support is currently available only for Windows, Linux, NetBSD, and OpenBSD. 1. New Features 1.1 SCP and Libraries - The VT emulation package has been replaced by the capability to remote the console to a Telnet session. Telnet clients typically have more complete and robust VT100 emulation. - Simulated devices may now have statically allocated buffers, in addition to dynamically allocated buffers or disk-based data stores. - The DO command now takes substitutable arguments (max 9). In command files, %n represents substitutable argument n. - The initial command line is now interpreted as the command name and substitutable arguments for a DO command. This is backward compatible to prior versions. - The initial command line parses switches. -Q is interpreted as quiet mode; informational messages are suppressed. - The HELP command now takes an optional argument. HELP <cmd> types help on the specified command. - Hooks have been added for implementing GUI-based consoles, as well as simulator-specific command extensions. A few internal data structures and definitions have changed. - Two new routines (tmxr_open_master, tmxr_close_master) have been added to sim_tmxr.c. The calling sequence for sim_accept_conn has been changed in sim_sock.c. - The calling sequence for the VM boot routine has been modified to add an additional parameter. - SAVE now saves, and GET now restores, controller and unit flags. - Library sim_ether.c has been added for Ethernet support. 1.2 VAX - Non-volatile RAM (NVR) can behave either like a memory or like a disk-based peripheral. If unattached, it behaves like memory and is saved and restored by SAVE and RESTORE, respectively. If attached, its contents are loaded from disk by ATTACH and written back to disk at DETACH and EXIT. - SHOW <device> VECTOR displays the device's interrupt vector. A few devices allow the vector to be changed with SET <device> VECTOR=nnn. - SHOW CPU IOSPACE displays the I/O space address map. - The TK50 (TMSCP tape) has been added. - The DEQNA/DELQA (Qbus Ethernet controllers) have been added. - Autoconfiguration support has been added. - The paper tape reader has been removed from vax_stddev.c and now references a common implementation file, dec_pt.h. - Examine and deposit switches now work on all devices, not just the CPU. - Device address conflicts are not detected until simulation starts. 1.3 PDP-11 - SHOW <device> VECTOR displays the device's interrupt vector. Most devices allow the vector to be changed with SET <device> VECTOR=nnn. - SHOW CPU IOSPACE displays the I/O space address map. - The TK50 (TMSCP tape), RK611/RK06/RK07 (cartridge disk), RX211 (double density floppy), and KW11P programmable clock have been added. - The DEQNA/DELQA (Qbus Ethernet controllers) have been added. - Autoconfiguration support has been added. - The paper tape reader has been removed from pdp11_stddev.c and now references a common implementation file, dec_pt.h. - Device bootstraps now use the actual CSR specified by the SET ADDRESS command, rather than just the default CSR. Note that PDP-11 operating systems may NOT support booting with non-standard addresses. - Specifying more than 256KB of memory, or changing the bus configuration, causes all peripherals that are not compatible with the current bus configuration to be disabled. - Device address conflicts are not detected until simulation starts. 1.4 PDP-10 - SHOW <device> VECTOR displays the device's interrupt vector. A few devices allow the vector to be changed with SET <device> VECTOR=nnn. - SHOW CPU IOSPACE displays the I/O space address map. - The RX211 (double density floppy) has been added; it is off by default. - The paper tape now references a common implementation file, dec_pt.h. - Device address conflicts are not detected until simulation starts. 1.5 PDP-1 - DECtape (then known as MicroTape) support has been added. - The line printer and DECtape can be disabled and enabled. 1.6 PDP-8 - The RX28 (double density floppy) has been added as an option to the existing RX8E controller. - SHOW <device> DEVNO displays the device's device number. Most devices allow the device number to be changed with SET <device> DEVNO=nnn. - Device number conflicts are not detected until simulation starts. 1.7 IBM 1620 - The IBM 1620 simulator has been released. 1.8 AltairZ80 - A hard drive has been added for increased storage. - Several bugs have been fixed. 1.9 HP 2100 - The 12845A has been added and made the default line printer (LPT). The 12653A has been renamed LPS and is off by default. It also supports the diagnostic functions needed to run the DCPC and DMS diagnostics. - The 12557A/13210A disk defaults to the 13210A (7900/7901). - The 12559A magtape is off by default. - New CPU options (EAU/NOEAU) enable/disable the extended arithmetic instructions for the 2116. These instructions are standard on the 2100 and 21MX. - New CPU options (MPR/NOMPR) enable/disable memory protect for the 2100 and 21MX. - New CPU options (DMS/NODMS) enable/disable the dynamic mapping instructions for the 21MX. - The 12539 timebase generator autocalibrates. 1.10 Simulated Magtapes - Simulated magtapes recognize end of file and the marker 0xFFFFFFFF as end of medium. Only the TMSCP tape simulator can generate an end of medium marker. - The error handling in simulated magtapes was overhauled to be consistent through all simulators. 1.11 Simulated DECtapes - Added support for RT11 image file format (256 x 16b) to DECtapes. 2. Release Notes 2.1 Bugs Fixed - TS11/TSV05 was not simulating the XS0_MOT bit, causing failures under VMS. In addition, two of the CTL options were coded interchanged. - IBM 1401 tape was not setting a word mark under group mark for load mode reads. This caused the diagnostics to crash. - SCP bugs in ssh_break and set_logon were fixed (found by Dave Hittner). - Numerous bugs in the HP 2100 extended arithmetic, floating point, 21MX, DMS, and IOP instructions were fixed. Bugs were also fixed in the memory protect and DMS functions. The moving head disks (DP, DQ) were revised to simulate the hardware more accurately. Missing functions in DQ (address skip, read address) were added. 2.2 HP 2100 Debugging - The HP 2100 CPU nows runs all of the CPU diagnostics. - The peripherals run most of the peripheral diagnostics. There is still a problem in overlapped seek operation on the disks. See the file hp2100_diag.txt for details. 3. In Progress These simulators are not finished and are available in a separate Zip archive distribution. - Interdata 16b/32b: coded, partially tested. See the file id_diag.txt for details. - SDS 940: coded, partially tested.
This commit is contained in:
committed by
Mark Pizzolato
parent
df6475181c
commit
2c2dd5ea33
84
sim_defs.h
84
sim_defs.h
@@ -23,6 +23,13 @@
|
||||
be used in advertising or otherwise to promote the sale, use or other dealings
|
||||
in this Software without prior written authorization from Robert M Supnik.
|
||||
|
||||
08-Oct-02 RMS Increased simulator error code space
|
||||
Added Telnet errors,
|
||||
Added end of medium support
|
||||
Added help messages to CTAB
|
||||
Added flag and context fields to DEVICE
|
||||
Added restore flag masks
|
||||
Revised 64b definitions
|
||||
02-May-02 RMS Removed log status codes
|
||||
22-Apr-02 RMS Added magtape record length error
|
||||
30-Dec-01 RMS Generalized timer package, added circular arrays
|
||||
@@ -62,6 +69,9 @@
|
||||
parse_sym parse symbolic input
|
||||
*/
|
||||
|
||||
#ifndef _SIM_DEFS_H_
|
||||
#define _SIM_DEFS_H_ 0
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -84,34 +94,40 @@ typedef int t_bool; /* boolean */
|
||||
typedef unsigned int8 uint8;
|
||||
typedef unsigned int16 uint16;
|
||||
typedef unsigned int32 uint32, t_addr; /* address */
|
||||
#if defined (USE_INT64) && defined (_WIN32)
|
||||
#define t_int64 __int64 /* for Windows */
|
||||
#elif defined (USE_INT64) && defined (VMS) && defined (__ALPHA)
|
||||
#define t_int64 __int64 /* for AVMS */
|
||||
#elif defined (USE_INT64) && defined (__ALPHA) && defined (__unix__)
|
||||
#define t_int64 long /* for DUNIX */
|
||||
#elif defined (USE_INT64)
|
||||
#define t_int64 long long /* for GCC */
|
||||
#endif
|
||||
#if defined (t_int64)
|
||||
#if defined (USE_INT64) /* 64b */
|
||||
#if defined (WIN32) /* Windows */
|
||||
#define t_int64 __int64
|
||||
#elif defined (__ALPHA) && defined (VMS) /* Alpha VMS */
|
||||
#define t_int64 __int64
|
||||
#elif defined (__ALPHA) && defined (__unix__) /* Alpha UNIX */
|
||||
#define t_int64 long
|
||||
#else /* default GCC */
|
||||
#define t_int64 long long
|
||||
#endif /* end OS's */
|
||||
typedef unsigned t_int64 t_uint64, t_value; /* value */
|
||||
typedef t_int64 t_svalue; /* signed value */
|
||||
#else
|
||||
#else /* 32b */
|
||||
typedef unsigned int32 t_value;
|
||||
typedef int32 t_svalue;
|
||||
#endif
|
||||
#endif /* end else 64b */
|
||||
|
||||
/* System independent definitions */
|
||||
|
||||
typedef int32 t_mtrlnt; /* magtape rec lnt */
|
||||
#define MTRF(x) ((x) & (1u << 31)) /* record error flg */
|
||||
#define MTRL(x) ((x) & ((1u << 31) - 1)) /* record length */
|
||||
typedef uint32 t_mtrlnt; /* magtape rec lnt */
|
||||
#define MTR_TMK 0x00000000 /* tape mark */
|
||||
#define MTR_EOM 0xFFFFFFFF /* end of medium */
|
||||
#define MTR_ERF 0x80000000 /* error flag */
|
||||
#define MTRF(x) ((x) & MTR_ERF) /* record error flg */
|
||||
#define MTRL(x) ((x) & ~MTR_ERF) /* record length */
|
||||
#define MT_SET_PNU(u) (u)->flags = (u)->flags | UNIT_PNU
|
||||
#define MT_CLR_PNU(u) (u)->flags = (u)->flags & ~UNIT_PNU
|
||||
#define MT_TST_PNU(u) ((u)->flags & UNIT_PNU)
|
||||
|
||||
#define FLIP_SIZE (1 << 16) /* flip buf size */
|
||||
#if !defined (PATH_MAX) /* usually in limits */
|
||||
#define PATH_MAX 512
|
||||
#endif
|
||||
#define CBUFSIZE (128 + PATH_MAX) /* string buf size */
|
||||
#define CONS_SIZE 4096 /* console buffer */
|
||||
|
||||
/* Simulator status codes
|
||||
|
||||
@@ -121,7 +137,7 @@ typedef int32 t_mtrlnt; /* magtape rec lnt */
|
||||
*/
|
||||
|
||||
#define SCPE_OK 0 /* normal return */
|
||||
#define SCPE_BASE 32 /* base for messages */
|
||||
#define SCPE_BASE 64 /* base for messages */
|
||||
#define SCPE_NXM (SCPE_BASE + 0) /* nxm */
|
||||
#define SCPE_UNATT (SCPE_BASE + 1) /* no file */
|
||||
#define SCPE_IOERR (SCPE_BASE + 2) /* I/O error */
|
||||
@@ -161,6 +177,8 @@ typedef int32 t_mtrlnt; /* magtape rec lnt */
|
||||
#define SCPE_NEST (SCPE_BASE + 36) /* nested DO */
|
||||
#define SCPE_IERR (SCPE_BASE + 37) /* internal error */
|
||||
#define SCPE_MTRLNT (SCPE_BASE + 38) /* tape rec lnt error */
|
||||
#define SCPE_LOST (SCPE_BASE + 39) /* Telnet conn lost */
|
||||
#define SCPE_TTMO (SCPE_BASE + 40) /* Telnet conn timeout */
|
||||
#define SCPE_KFLAG 01000 /* tti data flag */
|
||||
|
||||
/* Print value format codes */
|
||||
@@ -203,8 +221,23 @@ struct device {
|
||||
t_stat (*boot)(); /* boot routine */
|
||||
t_stat (*attach)(); /* attach routine */
|
||||
t_stat (*detach)(); /* detach routine */
|
||||
void *ctxt; /* context */
|
||||
int32 flags; /* flags */
|
||||
};
|
||||
|
||||
/* Device flags */
|
||||
|
||||
#define DEV_V_DIS 0 /* dev enabled */
|
||||
#define DEV_V_DISABLE 1 /* dev disable-able */
|
||||
#define DEV_V_UF 12 /* user flags */
|
||||
#define DEV_V_RSV 31 /* reserved */
|
||||
|
||||
#define DEV_DIS (1 << DEV_V_DIS)
|
||||
#define DEV_DISABLE (1 << DEV_V_DISABLE)
|
||||
|
||||
#define DEV_UFMASK (((1u << DEV_V_RSV) - 1) & ~((1u << DEV_V_UF) - 1))
|
||||
#define DEV_RFLAGS (DEV_UFMASK|DEV_DIS) /* restored flags */
|
||||
|
||||
/* Unit data structure
|
||||
|
||||
Parts of the unit structure are device specific, that is, they are
|
||||
@@ -233,6 +266,9 @@ struct unit {
|
||||
|
||||
/* Unit flags */
|
||||
|
||||
#define UNIT_V_UF 12 /* device specific */
|
||||
#define UNIT_V_RSV 31 /* reserved!! */
|
||||
|
||||
#define UNIT_ATTABLE 000001 /* attachable */
|
||||
#define UNIT_RO 000002 /* read only */
|
||||
#define UNIT_FIX 000004 /* fixed capacity */
|
||||
@@ -245,9 +281,9 @@ struct unit {
|
||||
#define UNIT_ROABLE 001000 /* read only ok */
|
||||
#define UNIT_DISABLE 002000 /* disable-able */
|
||||
#define UNIT_DIS 004000 /* disabled */
|
||||
#define UNIT_V_UF 12 /* device specific */
|
||||
/* must be DIS+1!! */
|
||||
#define UNIT_V_RSV 31 /* reserved!! */
|
||||
|
||||
#define UNIT_UFMASK (((1u << UNIT_V_RSV) - 1) & ~((1u << UNIT_V_UF) - 1))
|
||||
#define UNIT_RFLAGS (UNIT_UFMASK|UNIT_DIS) /* restored flags */
|
||||
|
||||
/* Register data structure */
|
||||
|
||||
@@ -276,6 +312,7 @@ struct ctab {
|
||||
char *name; /* name */
|
||||
t_stat (*action)(); /* action routine */
|
||||
int32 arg; /* argument */
|
||||
char *help; /* help string */
|
||||
};
|
||||
|
||||
/* Modifier table - only extended entries have disp, reg, or flags */
|
||||
@@ -301,8 +338,8 @@ struct mtab {
|
||||
/* Search table */
|
||||
|
||||
struct schtab {
|
||||
int logic; /* logical operator */
|
||||
int bool; /* boolean operator */
|
||||
int32 logic; /* logical operator */
|
||||
int32 bool; /* boolean operator */
|
||||
t_value mask; /* mask for logical */
|
||||
t_value comp; /* comparison for boolean */
|
||||
};
|
||||
@@ -359,6 +396,7 @@ char *get_glyph (char *iptr, char *optr, char mchar);
|
||||
char *get_glyph_nc (char *iptr, char *optr, char mchar);
|
||||
t_value get_uint (char *cptr, int radix, t_value max, t_stat *status);
|
||||
t_value strtotv (char *cptr, char **endptr, int radix);
|
||||
t_stat fprint_val (FILE *stream, t_value val, int32 rdx, int32 wid, int32 fmt);
|
||||
DEVICE *find_dev_from_unit (UNIT *uptr);
|
||||
REG *find_reg (char *ptr, char **optr, DEVICE *dptr);
|
||||
int32 sim_rtc_init (int32 time);
|
||||
@@ -368,3 +406,5 @@ int32 sim_rtcn_calb (int32 time, int32 tmr);
|
||||
t_stat sim_poll_kbd (void);
|
||||
t_stat sim_putchar (int32 out);
|
||||
t_bool sim_brk_test (t_addr bloc, int32 btyp);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user