1
0
mirror of https://github.com/simh/simh.git synced 2026-02-15 04:06:59 +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:
Bob Supnik
2002-11-17 15:54:00 -08:00
committed by Mark Pizzolato
parent df6475181c
commit 2c2dd5ea33
218 changed files with 44103 additions and 17112 deletions

125
scp_tty.c
View File

@@ -23,6 +23,9 @@
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.
24-Sep-02 RMS Removed VT support, added Telnet console support
Added CGI support (from Brian Knittel)
Added MacOS sleep (from Peter Schorn)
14-Jul-02 RMS Added Windows priority control from Mark Pizzolato
20-May-02 RMS Added Windows VT support from Fischer Franz
01-Feb-02 RMS Added VAX fix from Robert Alan Byer
@@ -44,12 +47,13 @@
ttrunstate - called to put terminal into run state
ttcmdstate - called to return terminal to command state
ttclose - called once before the simulator exits
sim_poll_kbd - poll for keyboard input
sim_putchar - output character to terminal
sim_os_poll_kbd - poll for keyboard input
sim_os_putchar - output character to terminal
This module implements the following routines to support clock calibration:
sim_os_msec - return elapsed time in msec
sim_os_sleep - sleep specified number of seconds
Versions are included for VMS, Windows, OS/2, Macintosh, BSD UNIX, and POSIX UNIX.
The POSIX UNIX version works with LINUX.
@@ -75,6 +79,7 @@ extern FILE *sim_log;
#include <iodef.h>
#include <ssdef.h>
#include <starlet.h>
#include <unistd.h>
#define EFN 0
unsigned int32 tty_chan = 0;
typedef struct {
@@ -89,7 +94,6 @@ typedef struct {
unsigned int32 dev_status; } IOSB;
SENSE_BUF cmd_mode = { 0 };
SENSE_BUF run_mode = { 0 };
int32 sim_vt = -1;
t_stat ttinit (void)
{
@@ -135,7 +139,7 @@ t_stat ttclose (void)
return ttcmdstate ();
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
unsigned int status, term[2];
unsigned char buf[4];
@@ -156,7 +160,7 @@ if (buf[0] == sim_int_char) return SCPE_STOP;
return (buf[0] | SCPE_KFLAG);
}
t_stat sim_putchar (int32 out)
t_stat sim_os_putchar (int32 out)
{
unsigned int status;
char c;
@@ -196,6 +200,11 @@ for (i = 0; i < 64; i++) { /* 64b quo */
return quo;
}
int sim_os_sleep (unsigned int sec)
{
return sleep (sec);
}
#endif
/* Win32 routines */
@@ -205,9 +214,7 @@ return quo;
#include <conio.h>
#include <windows.h>
#include <signal.h>
#include "sim_vt.h"
static volatile int sim_win_ctlc = 0;
int32 sim_vt = 0;
void win_handler (int sig)
{
@@ -217,22 +224,18 @@ return;
t_stat ttinit (void)
{
vt_init ();
return SCPE_OK;
}
t_stat ttrunstate (void)
{
sim_win_ctlc = 0;
if (sim_vt > 0) vt_run ();
if ((int) signal (SIGINT, win_handler) == -1) return SCPE_SIGERR;
if (signal (SIGINT, win_handler) == SIG_ERR) return SCPE_SIGERR;
SetThreadPriority (GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL);
return SCPE_OK;
}
t_stat ttcmdstate (void)
{
if (sim_vt > 0) vt_cmd ();
SetThreadPriority (GetCurrentThread(), THREAD_PRIORITY_NORMAL);
return SCPE_OK;
}
@@ -242,7 +245,7 @@ t_stat ttclose (void)
return SCPE_OK;
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
int c;
@@ -250,21 +253,18 @@ if (sim_win_ctlc) {
sim_win_ctlc = 0;
signal (SIGINT, win_handler);
return 003 | SCPE_KFLAG; }
if (sim_vt > 0) {
c = vt_read ();
if (c == -1) return SCPE_OK; }
else { if (!kbhit ()) return SCPE_OK;
c = _getch (); }
if (!kbhit ()) return SCPE_OK;
c = _getch ();
if ((c & 0177) == '\b') c = 0177;
if ((c & 0177) == sim_int_char) return SCPE_STOP;
return c | SCPE_KFLAG;
}
t_stat sim_putchar (int32 c)
t_stat sim_os_putchar (int32 c)
{
if (sim_vt > 0) vt_write ((char) c);
else if (c != 0177) _putch (c);
if (sim_log) fputc (c, sim_log);
if (c != 0177) {
_putch (c);
if (sim_log) fputc (c, sim_log); }
return SCPE_OK;
}
@@ -275,6 +275,12 @@ uint32 sim_os_msec ()
return GetTickCount ();
}
int sim_os_sleep (unsigned int sec)
{
Sleep (sec * 1000);
return 0;
}
#endif
/* OS/2 routines, from Bruce Ray */
@@ -282,7 +288,6 @@ return GetTickCount ();
#if defined (__OS2__)
#define __TTYROUTINES 0
#include <conio.h>
int32 sim_vt = -1;
t_stat ttinit (void)
{
@@ -304,7 +309,7 @@ t_stat ttclose (void)
return SCPE_OK;
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
int c;
@@ -315,7 +320,7 @@ if ((c & 0177) == sim_int_char) return SCPE_STOP;
return c | SCPE_KFLAG;
}
t_stat sim_putchar (int32 c)
t_stat sim_os_putchar (int32 c)
{
if (c != 0177) {
putch (c);
@@ -345,11 +350,27 @@ return 0;
#include <Mactypes.h>
#include <string.h>
#include <sioux.h>
#include <unistd.h>
#include <siouxglobals.h>
#include <Traps.h>
#include <LowMem.h>
int32 sim_vt = -1;
/* function prototypes */
Boolean SIOUXIsAppWindow(WindowPtr window);
void SIOUXDoMenuChoice(long menuValue);
void SIOUXUpdateMenuItems(void);
void SIOUXUpdateScrollbar(void);
int ps_kbhit(void);
int ps_getch(void);
t_stat ttinit (void);
t_stat ttrunstate (void);
t_stat ttcmdstate (void);
t_stat ttclose (void);
uint32 sim_os_msec (void);
t_stat sim_os_poll_kbd (void);
t_stat sim_os_putchar (int32 c);
int sim_os_sleep (unsigned int sec);
extern char sim_name[];
extern pSIOUXWin SIOUXTextWindow;
static CursHandle iBeamCursorH = NULL; /* contains the iBeamCursor */
@@ -362,21 +383,21 @@ static void updateCursor(void) {
Point localMouse;
GetPort(&savePort);
SetPort(window);
#if !TARGET_API_MAC_CARBON
localMouse = LMGetMouseLocation();
#else
#if TARGET_API_MAC_CARBON
GetGlobalMouse(&localMouse);
#else
localMouse = LMGetMouseLocation();
#endif
GlobalToLocal(&localMouse);
if (PtInRect(localMouse, &(*SIOUXTextWindow->edit)->viewRect) && iBeamCursorH) {
SetCursor(*iBeamCursorH);
}
}
else {
SetCursor(&qd.arrow);
}
TEIdle(SIOUXTextWindow->edit);
SetPort(savePort);
}
}
else {
SetCursor(&qd.arrow);
TEIdle(SIOUXTextWindow->edit);
@@ -406,11 +427,11 @@ int ps_kbhit(void) {
}
return false;
}
return true;
return true;
}
else {
return false;
}
return false;
}
}
int ps_getch(void) {
@@ -477,7 +498,7 @@ t_stat ttclose (void)
return SCPE_OK;
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
int c;
@@ -488,7 +509,7 @@ if ((c & 0177) == sim_int_char) return SCPE_STOP;
return c | SCPE_KFLAG;
}
t_stat sim_putchar (int32 c)
t_stat sim_os_putchar (int32 c)
{
if (c != 0177) {
putchar (c);
@@ -504,13 +525,18 @@ uint32 sim_os_msec (void)
unsigned long long micros;
UnsignedWide macMicros;
unsigned long millis;
Microseconds (&macMicros);
micros = *((unsigned long long *) &macMicros);
millis = micros / 1000LL;
return (uint32) millis;
}
int sim_os_sleep (unsigned int sec)
{
return sleep (sec);
}
#endif
/* BSD UNIX routines */
@@ -520,8 +546,8 @@ return (uint32) millis;
#include <sgtty.h>
#include <fcntl.h>
#include <sys/time.h>
#include <unistd.h>
int32 sim_vt = -1;
struct sgttyb cmdtty,runtty; /* V6/V7 stty data */
struct tchars cmdtchars,runtchars; /* V7 editing */
struct ltchars cmdltchars,runltchars; /* 4.2 BSD editing */
@@ -575,7 +601,7 @@ t_stat ttclose (void)
return ttcmdstate ();
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
int status;
unsigned char buf[1];
@@ -585,7 +611,7 @@ if (status != 1) return SCPE_OK;
else return (buf[0] | SCPE_KFLAG);
}
t_stat sim_putchar (int32 out)
t_stat sim_os_putchar (int32 out)
{
char c;
@@ -608,6 +634,11 @@ msec = (((uint32) cur.tv_sec) * 1000) + (((uint32) cur.tv_usec) / 1000);
return msec;
}
int sim_os_sleep (unsigned int sec)
{
return sleep (sec);
}
#endif
/* POSIX UNIX routines, from Leendert Van Doorn */
@@ -615,12 +646,13 @@ return msec;
#if !defined (__TTYROUTINES)
#include <termios.h>
#include <sys/time.h>
#include <unistd.h>
int32 sim_vt = -1;
struct termios cmdtty, runtty;
t_stat ttinit (void)
{
if (!isatty (fileno (stdin))) return SCPE_OK; /* skip if !tty */
if (tcgetattr (0, &cmdtty) < 0) return SCPE_TTIERR; /* get old flags */
runtty = cmdtty;
runtty.c_lflag = runtty.c_lflag & ~(ECHO | ICANON); /* no echo or edit */
@@ -660,6 +692,7 @@ return SCPE_OK;
t_stat ttrunstate (void)
{
if (!isatty (fileno (stdin))) return SCPE_OK; /* skip if !tty */
runtty.c_cc[VINTR] = sim_int_char; /* in case changed */
if (tcsetattr (0, TCSAFLUSH, &runtty) < 0) return SCPE_TTIERR;
return SCPE_OK;
@@ -667,6 +700,7 @@ return SCPE_OK;
t_stat ttcmdstate (void)
{
if (!isatty (fileno (stdin))) return SCPE_OK; /* skip if !tty */
if (tcsetattr (0, TCSAFLUSH, &cmdtty) < 0) return SCPE_TTIERR;
return SCPE_OK;
}
@@ -676,7 +710,7 @@ t_stat ttclose (void)
return ttcmdstate ();
}
t_stat sim_poll_kbd (void)
t_stat sim_os_poll_kbd (void)
{
int status;
unsigned char buf[1];
@@ -686,7 +720,7 @@ if (status != 1) return SCPE_OK;
else return (buf[0] | SCPE_KFLAG);
}
t_stat sim_putchar (int32 out)
t_stat sim_os_putchar (int32 out)
{
char c;
@@ -708,4 +742,9 @@ msec = (((uint32) cur.tv_sec) * 1000) + (((uint32) cur.tv_usec) / 1000);
return msec;
}
int sim_os_sleep (unsigned int sec)
{
return sleep (sec);
}
#endif