mirror of
https://github.com/simh/simh.git
synced 2026-04-28 20:57:26 +00:00
Notes For V3.3
RESTRICTION: The HP DS disk is not debugged. DO NOT enable this feature for normal operations. WARNING: Massive changes in the PDP-11 make all previous SAVEd file obsolete. Do not attempt to use a PDP-11 SAVE file from a prior release with V3.3! 1. New Features in 3.3 1.1 SCP - Added -p (powerup) qualifier to RESET - Changed SET <unit> ONLINE/OFFLINE to SET <unit> ENABLED/DISABLED - Moved SET DEBUG under SET CONSOLE hierarchy - Added optional parameter value to SHOW command - Added output file option to SHOW command 1.2 PDP-11 - Separated RH Massbus adapter from RP controller - Added TU tape support - Added model emulation framework - Added model details 1.3 VAX - Separated out CVAX-specific features from core instruction simulator - Implemented capability for CIS, octaword, compatibility mode instructions - Added instruction display and parse for compatibility mode - Changed SET CPU VIRTUAL=n to SHOW CPU VIRTUAL=n - Added =n optional parameter to SHOW CPU HISTORY 1.4 Unibus/Qbus simulators (PDP-11, VAX, PDP-10) - Simplified DMA API's - Modified DMA peripherals to use simplified API's 1.5 HP2100 (all changes from Dave Bryan) CPU - moved MP into its own device; added MP option jumpers - modified DMA to allow disabling - modified SET CPU 2100/2116 to truncate memory > 32K - added -F switch to SET CPU to force memory truncation - modified WRU to be REG_HRO - added BRK and DEL to save console settings DR - provided protected tracks and "Writing Enabled" status bit - added "parity error" status return on writes for 12606 - added track origin test for 12606 - added SCP test for 12606 - added "Sector Flag" status bit - added "Read Inhibit" status bit for 12606 - added TRACKPROT modifier LPS - added SET OFFLINE/ONLINE, POWEROFF/POWERON - added fast/realistic timing - added debug printouts LPT - added SET OFFLINE/ONLINE, POWEROFF/POWERON PTR - added paper tape loop mode, DIAG/READER modifiers to PTR - added PV_LEFT to PTR TRLLIM register CLK - modified CLK to permit disable 1.6 IBM 1401, IBM 1620, Interdata 16b, SDS 940, PDP-10 - Added instruction history 1.7 H316, PDP-15, PDP-8 - Added =n optional value to SHOW CPU HISTORY 2. Bugs Fixed in 3.3 2.1 SCP - Fixed comma-separated SET options (from Dave Bryan) - Fixed duplicate HELP displays with user-specified commands 2.2 PDP-10 - Replicated RP register state per drive - Fixed TU to set FCE on short record - Fixed TU to return bit<15> in drive type - Fixed TU format specification, 1:0 are don't cares - Fixed TU handling of TMK status - Fixed TU handling of DONE, ATA at end of operation - Implemented TU write check 2.3 PDP-11 - Replicated RP register state per drive - Fixed RQ, TQ to report correct controller type and stage 1 configuration flags on a Unibus system - Fixed HK CS2<output_ready> flag 2.4 VAX - Fixed parsing of indirect displacement modes in instruction input 2.5 HP2100 (all fixes from Dave Bryan) CPU - fixed S-register behavior on 2116 - fixed LIx/MIx behavior for DMA on 2116 and 2100 - fixed LIx/MIx behavior for empty I/O card slots DP - fixed enable/disable from either device - fixed ANY ERROR status for 12557A interface - fixed unattached drive status for 12557A interface - status cmd without prior STC DC now completes (12557A) - OTA/OTB CC on 13210A interface also does CLC CC - fixed RAR model - fixed seek check on 13210 if sector out of range DQ - fixed enable/disable from either device - shortened xtime from 5 to 3 (drive avg 156KW/second) - fixed not ready/any error status - fixed RAR model DR - fixed enable/disable from either device - fixed sector return in status word - fixed DMA last word write, incomplete sector fill value - fixed 12610 SFC operation - fixed current-sector determination IPL - fixed enable/disable from either device LPS - fixed status returns for error conditions - fixed handling of non-printing characters - fixed handling of characters after column 80 - improved timing model accuracy for RTE LPT - fixed status returns for error conditions - fixed TOF handling so form remains on line 0 SYS - fixed display of CCA/CCB/CCE instructions 2.5 PDP-15 FPP - fixed URFST to mask low 9b of fraction - fixed exception PC setting
This commit is contained in:
committed by
Mark Pizzolato
parent
2e00e1122f
commit
b6393b36b4
@@ -23,6 +23,8 @@
|
||||
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.
|
||||
|
||||
05-Nov-04 RMS Moved SET/SHOW DEBUG under CONSOLE hierarchy
|
||||
28-Oct-04 JDB Fixed SET CONSOLE to allow comma-separated parameters
|
||||
20-Aug-04 RMS Added OS/2 EMX fixes (from Holger Veit)
|
||||
14-Jul-04 RMS Revised Windows console code (from Dave Bryan)
|
||||
28-May-04 RMS Added SET/SHOW CONSOLE
|
||||
@@ -94,8 +96,8 @@ TMLN sim_con_ldsc = { 0 }; /* console line descr */
|
||||
TMXR sim_con_tmxr = { 1, 0, 0, &sim_con_ldsc }; /* console line mux */
|
||||
|
||||
extern volatile int32 stop_cpu;
|
||||
extern int32 sim_quiet;
|
||||
extern FILE *sim_log;
|
||||
extern int32 sim_quiet, sim_deb_close;
|
||||
extern FILE *sim_log, *sim_deb;
|
||||
extern DEVICE *sim_devices[];
|
||||
|
||||
/* Set/show data structures */
|
||||
@@ -108,6 +110,8 @@ static CTAB set_con_tab[] = {
|
||||
{ "NOTELNET", &sim_set_notelnet, 0 },
|
||||
{ "LOG", &sim_set_logon, 0 },
|
||||
{ "NOLOG", &sim_set_logoff, 0 },
|
||||
{ "DEBUG", &sim_set_debon, 0 },
|
||||
{ "NODEBUG", &sim_set_deboff, 0 },
|
||||
{ NULL, NULL, 0 } };
|
||||
|
||||
static SHTAB show_con_tab[] = {
|
||||
@@ -116,6 +120,7 @@ static SHTAB show_con_tab[] = {
|
||||
{ "DEL", &sim_show_kmap, KMAP_DEL },
|
||||
{ "LOG", &sim_show_log, 0 },
|
||||
{ "TELNET", &sim_show_telnet, 0 },
|
||||
{ "DEBUG", &sim_show_debug, 0 },
|
||||
{ NULL, NULL, 0 } };
|
||||
|
||||
static int32 *cons_kmap[] = {
|
||||
@@ -141,7 +146,7 @@ t_stat r;
|
||||
|
||||
if ((cptr == NULL) || (*cptr == 0)) return SCPE_2FARG;
|
||||
while (*cptr != 0) { /* do all mods */
|
||||
cptr = get_glyph_nc (cptr, gbuf, 0); /* get modifier */
|
||||
cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */
|
||||
if (cvptr = strchr (gbuf, '=')) *cvptr++ = 0; /* = value? */
|
||||
get_glyph (gbuf, gbuf, 0); /* modifier to UC */
|
||||
if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */
|
||||
@@ -246,6 +251,54 @@ else fputs ("Logging disabled\n", st);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* Set debug routine */
|
||||
|
||||
t_stat sim_set_debon (int32 flag, char *cptr)
|
||||
{
|
||||
char *tptr, gbuf[CBUFSIZE];
|
||||
|
||||
if (*cptr == 0) return SCPE_2FARG; /* need arg */
|
||||
tptr = get_glyph (cptr, gbuf, 0); /* get file name */
|
||||
if (*tptr != 0) return SCPE_2MARG; /* now eol? */
|
||||
sim_set_deboff (0, NULL); /* close cur debug */
|
||||
if (strcmp (gbuf, "LOG") == 0) { /* debug to log? */
|
||||
if (sim_log == NULL) return SCPE_ARG; /* any log? */
|
||||
sim_deb = sim_log; }
|
||||
else if (strcmp (gbuf, "STDOUT") == 0) sim_deb = stdout; /* debug to stdout? */
|
||||
else if (strcmp (gbuf, "STDERR") == 0) sim_deb = stderr; /* debug to stderr? */
|
||||
else { cptr = get_glyph_nc (cptr, gbuf, 0); /* reparse */
|
||||
sim_deb = sim_fopen (gbuf, "a"); /* open debug */
|
||||
if (sim_deb == NULL) return SCPE_OPENERR; /* error? */
|
||||
sim_deb_close = 1; } /* need close */
|
||||
if (!sim_quiet) printf ("Debug output to \"%s\"\n", gbuf);
|
||||
if (sim_log) fprintf (sim_log, "Debug output to \"%s\"\n", gbuf);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* Set nodebug routine */
|
||||
|
||||
t_stat sim_set_deboff (int32 flag, char *cptr)
|
||||
{
|
||||
if (cptr && (*cptr != 0)) return SCPE_2MARG; /* now eol? */
|
||||
if (sim_deb == NULL) return SCPE_OK; /* no log? */
|
||||
if (!sim_quiet) printf ("Debug output disabled\n");
|
||||
if (sim_log) fprintf (sim_log, "Debug output disabled\n");
|
||||
if (sim_deb_close) fclose (sim_deb); /* close if needed */
|
||||
sim_deb_close = 0;
|
||||
sim_deb = NULL;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* Show debug routine */
|
||||
|
||||
t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
|
||||
{
|
||||
if (cptr && (*cptr != 0)) return SCPE_2MARG;
|
||||
if (sim_deb) fputs ("Debug output enabled\n", st);
|
||||
else fputs ("Debug output disabled\n", st);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* Set console to Telnet port */
|
||||
|
||||
t_stat sim_set_telnet (int32 flg, char *cptr)
|
||||
@@ -368,26 +421,26 @@ return r; /* return status */
|
||||
#include <unistd.h>
|
||||
|
||||
#define EFN 0
|
||||
unsigned int32 tty_chan = 0;
|
||||
uint32 tty_chan = 0;
|
||||
|
||||
typedef struct {
|
||||
unsigned short sense_count;
|
||||
unsigned char sense_first_char;
|
||||
unsigned char sense_reserved;
|
||||
unsigned int32 stat;
|
||||
unsigned int32 stat2; } SENSE_BUF;
|
||||
unsigned int stat;
|
||||
unsigned int stat2; } SENSE_BUF;
|
||||
|
||||
typedef struct {
|
||||
unsigned int16 status;
|
||||
unsigned int16 count;
|
||||
unsigned int32 dev_status; } IOSB;
|
||||
unsigned short status;
|
||||
unsigned short count;
|
||||
unsigned int dev_status; } IOSB;
|
||||
|
||||
SENSE_BUF cmd_mode = { 0 };
|
||||
SENSE_BUF run_mode = { 0 };
|
||||
|
||||
t_stat sim_ttinit (void)
|
||||
{
|
||||
unsigned int32 status;
|
||||
unsigned int status;
|
||||
IOSB iosb;
|
||||
$DESCRIPTOR (terminal_device, "tt");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user