mirror of
https://github.com/simh/simh.git
synced 2026-01-26 12:02:14 +00:00
Declare the console port input and output polling units for most simulators to potentially allow asynchronous console I/O.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
#include <time.h>
|
||||
|
||||
#define TTICSR_IMP (CSR_DONE + CSR_IE) /* terminal input */
|
||||
@@ -343,6 +344,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_unit.buf = 0;
|
||||
tti_csr = 0;
|
||||
CLR_INT (TTI);
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
#include <time.h>
|
||||
|
||||
#define TTICSR_IMP (CSR_DONE + CSR_IE) /* terminal input */
|
||||
@@ -278,6 +279,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_unit.buf = 0;
|
||||
tti_csr = 0;
|
||||
CLR_INT (TTI);
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
|
||||
/* Terminal definitions */
|
||||
|
||||
@@ -668,6 +669,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_buf = 0;
|
||||
tti_csr = 0;
|
||||
tti_int = 0;
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
#include <time.h>
|
||||
|
||||
/* Terminal definitions */
|
||||
@@ -661,6 +662,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_buf = 0;
|
||||
tti_csr = 0;
|
||||
tti_int = 0;
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
|
||||
#include "sim_tmxr.h"
|
||||
|
||||
/* Terminal definitions */
|
||||
|
||||
@@ -484,6 +484,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_buf = 0;
|
||||
tti_csr = 0;
|
||||
tti_int = 0;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
#include <time.h>
|
||||
|
||||
/* Terminal definitions */
|
||||
@@ -607,6 +608,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (tti_unit, tto_unit);
|
||||
tti_buf = 0;
|
||||
tti_csr = 0;
|
||||
tti_int = 0;
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
*/
|
||||
|
||||
#include "vax_defs.h"
|
||||
#include "sim_tmxr.h"
|
||||
#include <time.h>
|
||||
|
||||
#define TTICSR_IMP (CSR_DONE + CSR_IE) /* terminal input */
|
||||
@@ -341,6 +342,7 @@ return SCPE_OK;
|
||||
|
||||
t_stat tti_reset (DEVICE *dptr)
|
||||
{
|
||||
tmxr_set_console_units (&tti_unit, &tto_unit);
|
||||
tti_unit.buf = 0;
|
||||
tti_csr = 0;
|
||||
CLR_INT (TTI);
|
||||
|
||||
Reference in New Issue
Block a user