summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-16 17:19:25 -0700
committerJulian Blake Kongslie2022-10-16 17:19:25 -0700
commitd97b32ac6a2ccca3704f567b12ab0378dc7e8dac (patch)
tree80b73e14ab4d347e9d651fd625fab92ccd241731 /io
parentSupport for log-based event model (diff)
downloadbiggolf-d97b32ac6a2ccca3704f567b12ab0378dc7e8dac.tar.xz
Nearly-working version of TTY output
Diffstat (limited to 'io')
-rw-r--r--io/model.cpp2
1 files changed, 1 insertions, 1 deletions
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<unsigned int, NUM_CTLREGS> &ctlregs) {
18 18
19 if (ctlregs[TT_OUTPUT] & 0x100) { 19 if (ctlregs[TT_OUTPUT] & 0x100) {
20 // PDP-8 doesn't really have support for 8-bit output, this is Jules' contribution 20 // PDP-8 doesn't really have support for 8-bit output, this is Jules' contribution
21 std::cout << (char)((ctlregs[TT_OUTPUT] & 0xff) ^ 0x80); 21 std::cout << (char)((ctlregs[TT_OUTPUT] & 0xff) ^ 0x80) << std::flush;
22 ctlregs[TT_OUTPUT] &= ~0x1ff; 22 ctlregs[TT_OUTPUT] &= ~0x1ff;
23 log.emplace(time + TT_OUTPUT_DELAY, event(TT_OUTPUT, 0x200, 0)); 23 log.emplace(time + TT_OUTPUT_DELAY, event(TT_OUTPUT, 0x200, 0));
24 } 24 }