diff options
| author | Julian Blake Kongslie | 2022-10-16 17:19:25 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-10-16 17:19:25 -0700 |
| commit | d97b32ac6a2ccca3704f567b12ab0378dc7e8dac (patch) | |
| tree | 80b73e14ab4d347e9d651fd625fab92ccd241731 /io | |
| parent | Support for log-based event model (diff) | |
| download | biggolf-d97b32ac6a2ccca3704f567b12ab0378dc7e8dac.tar.xz | |
Nearly-working version of TTY output
Diffstat (limited to '')
| -rw-r--r-- | io/model.cpp | 2 |
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 | } |
