1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +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:
Mark Pizzolato
2013-01-21 11:31:29 -08:00
parent d46ebc7d49
commit 95033cee15
18 changed files with 36 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
*/
#include "nova_defs.h"
#include "sim_tmxr.h"
#define UNIT_V_DASHER (UNIT_V_UF + 0) /* Dasher mode */
#define UNIT_DASHER (1 << UNIT_V_DASHER)
@@ -192,6 +193,7 @@ void translate_in()
t_stat tti_reset (DEVICE *dptr)
{
tmxr_set_console_units (&tti_unit, &tto_unit);
tti_unit.buf = 0;
dev_busy = dev_busy & ~INT_TTI; /* clear busy */
dev_done = dev_done & ~INT_TTI; /* clear done, int */

View File

@@ -49,6 +49,7 @@
*/
#include "nova_defs.h"
#include "sim_tmxr.h"
#define UNIT_V_DASHER (UNIT_V_UF + 0) /* Dasher mode */
#define UNIT_DASHER (1 << UNIT_V_DASHER)
@@ -186,6 +187,7 @@ return SCPE_OK;
t_stat tti_reset (DEVICE *dptr)
{
tmxr_set_console_units (&tti_unit, &tto_unit);
tti_unit.buf = 0; /* <not DG compatible> */
DEV_CLR_BUSY( INT_TTI ) ;
DEV_CLR_DONE( INT_TTI ) ;