mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
Notes For V3.5-1
The source set has been extensively overhauled. For correct viewing, set Visual C++ or Emacs to have tab stops every 4 characters. 1. New Features 1.1 3.5-0 1.1.1 All Ethernet devices - Added Windows user-defined adapter names (from Timothe Litt) 1.1.2 Interdata, SDS, HP, PDP-8, PDP-18b terminal multiplexors - Added support for SET <unit>n DISCONNECT 1.1.3 VAX - Added latent QDSS support - Revised autoconfigure to handle QDSS 1.1.4 PDP-11 - Revised autoconfigure to handle more cases 1.2 3.5-1 No new features 1.3 3.5-2 1.3.1 All ASCII terminals - Most ASCII terminal emulators have supported 7-bit and 8-bit operation; where required, they have also supported an upper- case only or KSR-emulation mode. This release adds a new mode, 7P, for 7-bit printing characters. In 7P mode, non-printing characters in the range 0-31 (decimal), and 127 (decimal), are automatically suppressed. This prevents printing of fill characters under Windows. The printable character set for ASCII code values 0-31 can be changed with the SET CONSOLE PCHAR command. Code value 127 (DELETE) is always suppressed. 1.3.2 VAX-11/780 - First release. The VAX-11/780 has successfully run VMS V7.2. The commercial instructions and compatability mode have not been extensively tested. The Ethernet controller is not working yet and is disabled. 2. Bugs Fixed 2.1 3.5-0 2.1.1 SCP and libraries - Trim trailing spaces on all input (for example, attach file names) - Fixed sim_sock spurious SIGPIPE error in Unix/Linux - Fixed sim_tape misallocation of TPC map array for 64b simulators 2.1.2 1401 - Fixed bug, CPU reset was clearing SSB through SSG 2.1.3 PDP-11 - Fixed bug in VH vector display routine - Fixed XU runt packet processing (found by Tim Chapman) 2.1.4 Interdata - Fixed bug in SHOW PAS CONN/STATS - Fixed potential integer overflow exception in divide 2.1.5 SDS - Fixed bug in SHOW MUX CONN/STATS 2.1.6 HP - Fixed bug in SHOW MUX CONN/STATS 2.1.7 PDP-8 - Fixed bug in SHOW TTIX CONN/STATS - Fixed bug in SET/SHOW TTOXn LOG 2.1.8 PDP-18b - Fixed bug in SHOW TTIX CONN/STATS - Fixed bug in SET/SHOW TTOXn LOG 2.1.9 Nova, Eclipse - Fixed potential integer overflow exception in divide 2.2 3.5-1 2.2.1 1401 - Changed character encodings to be compatible with Pierce 709X simulator - Added mode for old/new character encodings 2.2.2 1620 - Changed character encodings to be compatible with Pierce 709X simulator 2.2.3 PDP-10 - Changed MOVNI to eliminate GCC warning 2.2.4 VAX - Fixed bug in structure definitions with 32b compilation options - Fixed bug in autoconfiguration table 2.2.5 PDP-11 - Fixed bug in autoconfiguration table 2.3 3.5-2 2.3.1 PDP-10 - RP: fixed drive clear not to clear disk address 2.3.2 PDP-11 (VAX, VAX-11/780, for shared peripherals) - HK: fixed overlap seek interaction with drive select, drive clear, etc - RQ, TM, TQ, TS, TU: widened address display to 64b when USE_ADDR64 option selected - TU: changed default adapter from TM02 to TM03 (required by VMS) - RP: fixed drive clear not to clear disk address - RP, TU: fixed device enable/disable to enabled/disable Massbus adapter as well - XQ: fixed register access alignment bug (found by Doug Carman) 2.3.3 PDP-8 - RL: fixed IOT 61 decoding bug (found by David Gesswein) - DF, DT, RF: fixed register access alignment bug (found by Doug Carman) 2.3.4 VAX - Fixed CVTfi to trap on integer overflow if PSW<iv> is set - Fixed breakpoint detection when USE_ADDR64 option selected
This commit is contained in:
committed by
Mark Pizzolato
parent
1e704bf185
commit
a12e4a1c39
@@ -1,7 +1,7 @@
|
||||
To: Users
|
||||
From: Bob Supnik
|
||||
Subj: Interdata 16b/32b Simulator Usage
|
||||
Date: 01-Jul-2005
|
||||
Date: 01-Dec-2005
|
||||
|
||||
COPYRIGHT NOTICE
|
||||
|
||||
@@ -373,12 +373,24 @@ Error handling is as follows:
|
||||
|
||||
The Teletype keyboard (TT0) reads from the console keyboard; the
|
||||
Teletype printer (TT1) writes to the simulator console window.
|
||||
The Teletype units (TT0, TT1) can be set to one of three modes:
|
||||
KSR, 7B, or 8B. In KSR mode, lower case input and output characters
|
||||
are automatically converted to upper case, and the high order bit is
|
||||
forced to one on input. In 7B mode, input and output characters are
|
||||
masked to 7 bits. In 8B mode, characters are not modified. Changing
|
||||
the mode of either unit changes both. The default mode is KSR.
|
||||
The Teletype units (TT0, TT1) can be set to one of four modes,
|
||||
KSR, 7P, 7B, or 8B:
|
||||
|
||||
mode input characters output characters
|
||||
|
||||
KSR lower case converted lower case converted
|
||||
to upper case, to upper case,
|
||||
high-order bit set high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7P high-order bit cleared high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7B high-order bit cleared high-order bit cleared
|
||||
8B no changes no changes
|
||||
|
||||
Changing the mode of either unit changes both. The default mode
|
||||
is KSR.
|
||||
|
||||
The Teletype has a BREAK key, which is not present on today's
|
||||
keyboards. To simulate pressing the break key, stop the simulator
|
||||
@@ -435,12 +447,24 @@ Otherwise, a device number conflict occurs.
|
||||
|
||||
The PASLA keyboard (TTP0) reads from the console keyboard; the
|
||||
PALSA printer (TTP1) writes to the simulator console window.
|
||||
The PASLA units (TTP0, TTP1) can be set to one of three modes:
|
||||
UC, 7B, or 8B. In UC mode, lower case input and output characters
|
||||
are automatically converted to upper case. In 7B mode, input and
|
||||
output characters are masked to 7 bits. In 8B mode, characters
|
||||
are not modified. Changing the mode of either unit changes both.
|
||||
The default mode is 7B.
|
||||
The PASLA units (TTP0, TTP1) can be set to one of four modes,
|
||||
UC, 7P, 7B, or 8B:
|
||||
|
||||
mode input characters output characters
|
||||
|
||||
UC lower case converted lower case converted
|
||||
to upper case, to upper case,
|
||||
high-order bit cleared high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7P high-order bit cleared high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7B high-order bit cleared high-order bit cleared
|
||||
8B no changes no changes
|
||||
|
||||
Changing the mode of either unit changes both. The default mode
|
||||
is 7B.
|
||||
|
||||
To simulate pressing the break key, stop the simulator and use
|
||||
the command:
|
||||
@@ -619,14 +643,26 @@ user-specified port. The ATTACH command specifies the port to be used:
|
||||
where port is a decimal number between 1 and 65535 that is not being used
|
||||
for other TCP/IP activities.
|
||||
|
||||
Each line (each unit of PASL) can be set to one of three modes: UC, 7B,
|
||||
or 8B. In UC mode, lower case input and output characters are converted
|
||||
automatically to upper case. In 7B mode, input and output characters are
|
||||
masked to 7 bits. In 8B mode, characters are not modified. The default
|
||||
mode is UC. Each line (each unit of PASL) can also be set for modem
|
||||
control with the command SET PASLn DATASET. The defaults are 7b mode
|
||||
and DATASET disabled. Finally, each line supports output logging.
|
||||
The SET PASLn LOG command enables logging on a line:
|
||||
Each line (each unit of PASL) can be set to one of four modes, UC, 7P,
|
||||
7B, or 8B:
|
||||
|
||||
mode input characters output characters
|
||||
|
||||
UC lower case converted lower case converted
|
||||
to upper case, to upper case,
|
||||
high-order bit cleared high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7P high-order bit cleared high-order bit cleared,
|
||||
non-printing characters
|
||||
suppressed
|
||||
7B high-order bit cleared high-order bit cleared
|
||||
8B no changes no changes
|
||||
|
||||
Each line (each unit of PASL) can also be set for modem control with
|
||||
the command SET PASLn DATASET. The defaults are 7b mode and DATASET
|
||||
disabled. Finally, each line supports output logging. The SET
|
||||
PASLn LOG command enables logging on a line:
|
||||
|
||||
SET PASLn LOG=filename log output of line n to filename
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
pas Programmable asynchronous line adapter(s)
|
||||
|
||||
22-Nov-05 RMS Revised for new terminal processing routines
|
||||
29-Jun-05 RMS Added SET PASLn DISCONNECT
|
||||
21-Jun-05 RMS Fixed bug in SHOW CONN/STATS
|
||||
05-Jan-04 RMS Revised for tmxr library changes
|
||||
@@ -45,11 +46,7 @@
|
||||
|
||||
#define PAS_LINES 32
|
||||
|
||||
#define UNIT_V_8B (UNIT_V_UF + 0) /* 8B */
|
||||
#define UNIT_V_UC (UNIT_V_UF + 1) /* UC only */
|
||||
#define UNIT_V_MDM (UNIT_V_UF + 2) /* modem control */
|
||||
#define UNIT_8B (1 << UNIT_V_8B)
|
||||
#define UNIT_UC (1 << UNIT_V_UC)
|
||||
#define UNIT_V_MDM (TTUF_V_UF + 0) /* modem control */
|
||||
#define UNIT_MDM (1 << UNIT_V_MDM)
|
||||
|
||||
#define PAS_INIT_POLL 8000
|
||||
@@ -214,9 +211,10 @@ UNIT pasl_unit[] = {
|
||||
};
|
||||
|
||||
MTAB pasl_mod[] = {
|
||||
{ UNIT_UC+UNIT_8B, UNIT_UC, "UC", "UC", NULL },
|
||||
{ UNIT_UC+UNIT_8B, 0 , "7b", "7B", NULL },
|
||||
{ UNIT_UC+UNIT_8B, UNIT_8B, "8b", "8B", NULL },
|
||||
{ TT_MODE, TT_MODE_UC, "UC", "UC", NULL },
|
||||
{ TT_MODE, TT_MODE_7B, "7b", "7B", NULL },
|
||||
{ TT_MODE, TT_MODE_8B, "8b", "8B", NULL },
|
||||
{ TT_MODE, TT_MODE_7P, "7p", "7P", NULL },
|
||||
{ UNIT_MDM, 0, "no dataset", "NODATASET", NULL },
|
||||
{ UNIT_MDM, UNIT_MDM, "dataset", "DATASET", NULL },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "DISCONNECT",
|
||||
@@ -341,18 +339,15 @@ for (ln = 0; ln < PAS_ENAB; ln++) { /* loop thru lines */
|
||||
}
|
||||
else { /* normal */
|
||||
out = c & 0x7F; /* echo is 7b */
|
||||
if (pasl_unit[ln].flags & UNIT_8B) /* 8b? */
|
||||
c = c & 0xFF;
|
||||
else { /* UC or 7b */
|
||||
if ((pasl_unit[ln].flags & UNIT_UC) && islower (out))
|
||||
out = toupper (out); /* cvt to UC */
|
||||
c = pas_par (pas_cmd[ln], out); /* apply parity */
|
||||
}
|
||||
c = sim_tt_inpcvt (c, TT_GET_MODE (pasl_unit[ln].flags));
|
||||
if (TT_GET_MODE (pasl_unit[ln].flags) != TT_MODE_8B)
|
||||
c = pas_par (pas_cmd[ln], c); /* apply parity */
|
||||
pas_rbuf[ln] = c; /* save char */
|
||||
pas_rchp[ln] = 1; /* char pending */
|
||||
if ((pas_cmd[ln] & CMD_ECHO) && pas_ldsc[ln].xmte) {
|
||||
TMLN *lp = &pas_ldsc[ln]; /* get line */
|
||||
tmxr_putc_ln (lp, out); /* output char */
|
||||
out = sim_tt_outcvt (out, TT_GET_MODE (pasl_unit[ln].flags));
|
||||
if (out >= 0) tmxr_putc_ln (lp, out); /* output char */
|
||||
tmxr_poll_tx (&pas_desc); /* poll xmt */
|
||||
}
|
||||
} /* end else normal */
|
||||
@@ -376,14 +371,12 @@ uint32 ln = uptr - pasl_unit; /* line # */
|
||||
if (pas_ldsc[ln].conn) { /* connected? */
|
||||
if (pas_ldsc[ln].xmte) { /* xmt enabled? */
|
||||
TMLN *lp = &pas_ldsc[ln]; /* get line */
|
||||
if (pasl_unit[ln].flags & UNIT_8B) /* 8b? */
|
||||
if (TT_GET_MODE (pasl_unit[ln].flags) == TT_MODE_8B)
|
||||
c = pas_par (pas_cmd[ln], pas_xbuf[ln]); /* apply parity */
|
||||
else { /* UC or 7b */
|
||||
c = pas_xbuf[ln] & 0x7F; /* mask char */
|
||||
if ((pasl_unit[ln].flags & UNIT_UC) && islower (c))
|
||||
c = toupper (c); /* cvt to UC */
|
||||
else c = sim_tt_outcvt (pas_xbuf[ln], TT_GET_MODE (pasl_unit[ln].flags));
|
||||
if (c >= 0) {
|
||||
tmxr_putc_ln (lp, c); /* output char */
|
||||
}
|
||||
tmxr_putc_ln (lp, c); /* output char */
|
||||
tmxr_poll_tx (&pas_desc); /* poll xmt */
|
||||
}
|
||||
else { /* buf full */
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
tt console
|
||||
|
||||
22-Nov-05 RMS Revised for new terminal processing routines
|
||||
29-Dec-03 RMS Added support for console backpressure
|
||||
25-Apr-03 RMS Revised for extended file support
|
||||
11-Jan-03 RMS Added TTP support
|
||||
@@ -34,11 +35,6 @@
|
||||
#include "id_defs.h"
|
||||
#include <ctype.h>
|
||||
|
||||
#define UNIT_V_8B (UNIT_V_UF + 0) /* 8B */
|
||||
#define UNIT_V_KSR (UNIT_V_UF + 1) /* KSR33 */
|
||||
#define UNIT_8B (1 << UNIT_V_8B)
|
||||
#define UNIT_KSR (1 << UNIT_V_KSR)
|
||||
|
||||
/* Device definitions */
|
||||
|
||||
#define TTI 0
|
||||
@@ -78,8 +74,8 @@ t_stat tt_set_enbdis (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
DIB tt_dib = { d_TT, -1, v_TT, NULL, &tt, NULL };
|
||||
|
||||
UNIT tt_unit[] = {
|
||||
{ UDATA (&tti_svc, UNIT_KSR, 0), KBD_POLL_WAIT },
|
||||
{ UDATA (&tto_svc, UNIT_KSR, 0), SERIAL_OUT_WAIT }
|
||||
{ UDATA (&tti_svc, TT_MODE_KSR, 0), KBD_POLL_WAIT },
|
||||
{ UDATA (&tto_svc, TT_MODE_KSR, 0), SERIAL_OUT_WAIT }
|
||||
};
|
||||
|
||||
REG tt_reg[] = {
|
||||
@@ -101,9 +97,10 @@ REG tt_reg[] = {
|
||||
};
|
||||
|
||||
MTAB tt_mod[] = {
|
||||
{ UNIT_KSR+UNIT_8B, UNIT_KSR, "KSR", "KSR", &tt_set_mode },
|
||||
{ UNIT_KSR+UNIT_8B, 0 , "7b" , "7B" , &tt_set_mode },
|
||||
{ UNIT_KSR+UNIT_8B, UNIT_8B , "8b" , "8B" , &tt_set_mode },
|
||||
{ TT_MODE, TT_MODE_KSR, "KSR", "KSR", &tt_set_mode },
|
||||
{ TT_MODE, TT_MODE_7B, "7b", "7B", &tt_set_mode },
|
||||
{ TT_MODE, TT_MODE_8B, "8b", "8B", &tt_set_mode },
|
||||
{ TT_MODE, TT_MODE_7P, "7p", "7P", &tt_set_mode },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO, 0, NULL, "ENABLED",
|
||||
&tt_set_enbdis, NULL, NULL },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO, DEV_DIS, NULL, "DISABLED",
|
||||
@@ -192,15 +189,14 @@ if (temp & SCPE_BREAK) { /* break? */
|
||||
tt_sta = tt_sta | STA_BRK; /* set status */
|
||||
uptr->buf = 0; /* no character */
|
||||
}
|
||||
else if (uptr->flags & UNIT_KSR) { /* KSR mode? */
|
||||
if (islower (out)) out = toupper (out); /* cvt to UC */
|
||||
uptr->buf = out | 0x80; /* set high bit */
|
||||
}
|
||||
else uptr->buf = temp & ((tt_unit[TTI].flags & UNIT_8B)? 0xFF: 0x7F);
|
||||
else uptr->buf = sim_tt_inpcvt (temp, TT_GET_MODE (uptr->flags) | TTUF_KSR);
|
||||
uptr->pos = uptr->pos + 1; /* incr count */
|
||||
if (!tt_fdpx) { /* half duplex? */
|
||||
if (out) sim_putchar (out); /* write char */
|
||||
tt_unit[TTO].pos = tt_unit[TTO].pos + 1;
|
||||
out = sim_tt_outcvt (out, TT_GET_MODE (uptr->flags));
|
||||
if (out >= 0) { /* valid echo? */
|
||||
sim_putchar (out); /* write char */
|
||||
tt_unit[TTO].pos = tt_unit[TTO].pos + 1;
|
||||
}
|
||||
}
|
||||
return SCPE_OK;
|
||||
}
|
||||
@@ -210,13 +206,8 @@ t_stat tto_svc (UNIT *uptr)
|
||||
int32 ch;
|
||||
t_stat r;
|
||||
|
||||
if (uptr->flags & UNIT_KSR) { /* KSR mode? */
|
||||
ch = uptr->buf & 0x7F; /* mask to 7b */
|
||||
if (islower (ch)) ch = toupper (ch); /* cvt to UC */
|
||||
}
|
||||
else ch = uptr->buf & ((tt_unit[TTO].flags & UNIT_8B)? 0xFF: 0x7F);
|
||||
if ((uptr->flags & UNIT_8B) || /* KSR or 7b? */
|
||||
((ch != 0) && (ch != 0x7F))) { /* supr NULL, DEL */
|
||||
ch = sim_tt_outcvt (uptr->buf, TT_GET_MODE (uptr->flags));
|
||||
if (ch >= 0) {
|
||||
if ((r = sim_putchar_s (ch)) != SCPE_OK) { /* output; error? */
|
||||
sim_activate (uptr, uptr->wait); /* try again */
|
||||
return ((r == SCPE_STALL)? SCPE_OK: r);
|
||||
@@ -250,8 +241,9 @@ return SCPE_OK;
|
||||
|
||||
t_stat tt_set_mode (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
{
|
||||
tt_unit[TTI].flags = (tt_unit[TTI].flags & ~(UNIT_KSR | UNIT_8B)) | val;
|
||||
tt_unit[TTO].flags = (tt_unit[TTO].flags & ~(UNIT_KSR | UNIT_8B)) | val;
|
||||
tt_unit[TTO].flags = (tt_unit[TTO].flags & ~TT_MODE) | val;
|
||||
if (val == TT_MODE_7P) val = TT_MODE_7B;
|
||||
tt_unit[TTI].flags = (tt_unit[TTI].flags & ~TT_MODE) | val;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
ttp console (on PAS)
|
||||
|
||||
22-Nov-05 RMS Revised for new terminal processing routines
|
||||
29-Dec-03 RMS Added support for console backpressure
|
||||
25-Apr-03 RMS Revised for extended file support
|
||||
*/
|
||||
@@ -32,11 +33,6 @@
|
||||
#include "id_defs.h"
|
||||
#include <ctype.h>
|
||||
|
||||
#define UNIT_V_8B (UNIT_V_UF + 0) /* 8B */
|
||||
#define UNIT_V_UC (UNIT_V_UF + 1) /* UC only */
|
||||
#define UNIT_8B (1 << UNIT_V_8B)
|
||||
#define UNIT_UC (1 << UNIT_V_UC)
|
||||
|
||||
#define TTI 0
|
||||
#define TTO 1
|
||||
|
||||
@@ -103,9 +99,10 @@ REG ttp_reg[] = {
|
||||
};
|
||||
|
||||
MTAB ttp_mod[] = {
|
||||
{ UNIT_UC+UNIT_8B, UNIT_UC, "UC", "UC", &ttp_set_mode },
|
||||
{ UNIT_UC+UNIT_8B, 0 , "7b", "7B", &ttp_set_mode },
|
||||
{ UNIT_UC+UNIT_8B, UNIT_8B, "8b", "8B", &ttp_set_mode },
|
||||
{ TT_MODE, TT_MODE_UC, "UC", "UC", &ttp_set_mode },
|
||||
{ TT_MODE, TT_MODE_7B, "7b", "7B", &ttp_set_mode },
|
||||
{ TT_MODE, TT_MODE_8B, "8b", "8B", &ttp_set_mode },
|
||||
{ TT_MODE, TT_MODE_7P, "7p", "7P", &ttp_set_mode },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO, 0, NULL, "ENABLED",
|
||||
&ttp_set_enbdis, NULL, NULL },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO, DEV_DIS, NULL, "DISABLED",
|
||||
@@ -188,18 +185,17 @@ if (c & SCPE_BREAK) { /* break? */
|
||||
ttp_sta = ttp_sta | STA_FR; /* framing error */
|
||||
uptr->buf = 0; /* no character */
|
||||
}
|
||||
else { c = c & 0xFF; /* char is 8b */
|
||||
else {
|
||||
out = c & 0x7F; /* echo is 7b */
|
||||
if (!(uptr->flags & UNIT_8B)) { /* not 8b? */
|
||||
if ((uptr->flags & UNIT_UC) && islower (out))
|
||||
out = toupper (out); /* cvt to UC */
|
||||
c = pas_par (ttp_cmd, out); /* apply parity */
|
||||
}
|
||||
c = sim_tt_inpcvt (c, TT_GET_MODE (uptr->flags));
|
||||
if (TT_GET_MODE (uptr->flags) != TT_MODE_8B) /* not 8b mode? */
|
||||
c = pas_par (ttp_cmd, c); /* apply parity */
|
||||
uptr->buf = c; /* save char */
|
||||
uptr->pos = uptr->pos + 1; /* incr count */
|
||||
ttp_kchp = 1; /* char pending */
|
||||
if (ttp_cmd & CMD_ECHO) {
|
||||
sim_putchar (out);
|
||||
out = sim_tt_outcvt (out, TT_GET_MODE (uptr->flags));
|
||||
if (c >= 0) sim_putchar (out);
|
||||
ttp_unit[TTO].pos = ttp_unit[TTO].pos + 1;
|
||||
}
|
||||
}
|
||||
@@ -211,15 +207,10 @@ t_stat ttpo_svc (UNIT *uptr)
|
||||
int32 c;
|
||||
t_stat r;
|
||||
|
||||
if (uptr->flags & UNIT_8B) /* 8b? */
|
||||
if (TT_GET_MODE (uptr->flags) == TT_MODE_8B) /* 8b? */
|
||||
c = pas_par (ttp_cmd, uptr->buf); /* apply parity */
|
||||
else {
|
||||
c = uptr->buf & 0x7F; /* mask char */
|
||||
if ((uptr->flags & UNIT_UC) && islower (c))
|
||||
c = toupper (c); /* cvt to UC */
|
||||
}
|
||||
if ((uptr->flags & UNIT_8B) || /* UC or 7b? */
|
||||
((c != 0) && (c != 0x7F))){ /* supr NULL, DEL */
|
||||
else c = sim_tt_outcvt (uptr->buf, TT_GET_MODE (uptr->flags));
|
||||
if (c >= 0) {
|
||||
if ((r = sim_putchar_s (c)) != SCPE_OK) { /* output; error? */
|
||||
sim_activate (uptr, uptr->wait); /* try again */
|
||||
return ((r == SCPE_STALL)? SCPE_OK: r);
|
||||
@@ -253,8 +244,9 @@ return SCPE_OK;
|
||||
|
||||
t_stat ttp_set_mode (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
{
|
||||
ttp_unit[TTI].flags = (ttp_unit[TTI].flags & ~(UNIT_UC | UNIT_8B)) | val;
|
||||
ttp_unit[TTO].flags = (ttp_unit[TTO].flags & ~(UNIT_UC | UNIT_8B)) | val;
|
||||
ttp_unit[TTO].flags = (ttp_unit[TTO].flags & ~TT_MODE) | val;
|
||||
if (val == TT_MODE_7P) val = TT_MODE_7B;
|
||||
ttp_unit[TTI].flags = (ttp_unit[TTI].flags & ~TT_MODE) | val;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user