1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-14 15:45:47 +00:00
Adam Sampson 1a6115e949 Fix Muddle's CLOSE not flushing the output buffer.
There were two problems here:

- The FOPEN code in 56 uses new C.DISK/C.TTY flags to keep track of the
  channel type, so it knew what to do when closing the channel. The
  TOPS-20 open code had been modified to set these, but the ITS code
  hadn't, so CLOSE was assuming all channels were network channels.

  Fix: set those flags in ODSK and OTTY, as TOPS-20 does.

- The BFCDSK flush routine had been modified to use byte pointer writes
  to write the last incomplete word for both TOPS-20 (SOUT) and ITS
  (SIOT). But on ITS, SIOT only works in unit mode, and Muddle opens
  files in block mode.

  Fix: restore the working code from Muddle 54 for writing the last
  word. The only difference is that BFCDSK can now be invoked with the
  leftover byte count (C) being zero, so it needs to check at the
  start to avoid duplicating the last word in that case.
2020-12-13 13:36:04 +01:00
..
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2020-08-26 21:26:02 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00
2018-04-25 09:32:25 +01:00