From d97b32ac6a2ccca3704f567b12ab0378dc7e8dac Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 16 Oct 2022 17:19:25 -0700 Subject: Nearly-working version of TTY output --- io/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io/model.cpp') diff --git a/io/model.cpp b/io/model.cpp index dd55ce6..eaa6ca8 100644 --- a/io/model.cpp +++ b/io/model.cpp @@ -18,7 +18,7 @@ bool iomodel::interact(std::array &ctlregs) { if (ctlregs[TT_OUTPUT] & 0x100) { // PDP-8 doesn't really have support for 8-bit output, this is Jules' contribution - std::cout << (char)((ctlregs[TT_OUTPUT] & 0xff) ^ 0x80); + std::cout << (char)((ctlregs[TT_OUTPUT] & 0xff) ^ 0x80) << std::flush; ctlregs[TT_OUTPUT] &= ~0x1ff; log.emplace(time + TT_OUTPUT_DELAY, event(TT_OUTPUT, 0x200, 0)); } -- cgit v1.2.3