From 4130c969c26fe281d62e1a8fd2bcb51e7af2f26f Mon Sep 17 00:00:00 2001 From: Josh Dersch Date: Wed, 29 Apr 2020 13:09:53 -0700 Subject: [PATCH] Fixed TTY send behavior. --- imlac/IO/TTY.cs | 5 +++-- imlac/notes/readme.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/imlac/IO/TTY.cs b/imlac/IO/TTY.cs index f37933e..a1aceea 100644 --- a/imlac/IO/TTY.cs +++ b/imlac/IO/TTY.cs @@ -84,6 +84,7 @@ namespace imlac.IO Trace.Log(LogType.TTY, "o {0}", Helpers.ToOctal(_txData)); _dataBufferFull = false; _dataSentLatch = true; + _dataSendReady = true; } } } @@ -142,14 +143,14 @@ namespace imlac.IO break; case 0x22: // TCF - clear output flag - _dataSendReady = true; + _dataSendReady = false; break; case 0x23: // TPC - print, clear flag if (_dataSendReady) { _txData = (byte)_system.Processor.AC; - _dataSendReady = true; + _dataSendReady = false; _dataBufferFull = true; } break; diff --git a/imlac/notes/readme.txt b/imlac/notes/readme.txt index c2b08e7..177a8f1 100644 --- a/imlac/notes/readme.txt +++ b/imlac/notes/readme.txt @@ -12,7 +12,7 @@ sImlac currently emulates the current hardware: - Standard Imlac PDS-1D Processor / Display Processor (with 1.8us cycle timings) - Standard Imlac PDS-4 Processor / Display Processor (with 990ns cycle timings) - - up to 16KW of core memory + - Up to 16KW of core memory - Vector display (with long-persistence phosphor) - PTR and TTY interfaces (using physical serial ports, telnet hosts, or files as inputs) - Keyboard