The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: Noel Chiappa <jnc@mercury.lcs.mit.edu>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] Data structures in Unix editors
Date: Thu, 1 Apr 2021 16:57:22 -0400	[thread overview]
Message-ID: <CAD2gp_TyaJacxgTx=yk9_9vnsfCvyx5M3RFwY8G1vYj5+TzFEg@mail.gmail.com> (raw)
In-Reply-To: <20210401201211.97D7B18C073@mercury.lcs.mit.edu>

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

On Thu, Apr 1, 2021 at 4:31 PM Noel Chiappa <jnc@mercury.lcs.mit.edu> wrote:


> The first is a TECO from the fourth floor V6 machine (DSSR/RTS) at Tech Sq
> at
> MIT:
>

I happen to remember how PDP-8 Teco stored its content.  In Teco, for those
who have never made its acquaintance, there is the current buffer (which
does not typically contain all of the current file) and a bunch of named
Q-registers that store blobs of text.  Since the PDP-8 is a 12-bit machine,
the normal way to store ASCII uses three characters in two words: one in
the low 8 bits of the first word, one in the low 8 bits of the second, and
one in the top four bits of both words, split big-endian.

In Teco, however, the current buffer is stored in the bottom 8 bits of a
single 4KW memory field.  The Q-registers are stored in alphabetical order
by name (a single character) using the straddling top-4-bits method
described above.  Because the processor cycle time was the same as memory
access time anyway, this storage method was perfectly adequate.

You can also look at the source for Teco-C, which is available in several
places on the net, the last I looked.



John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
Heckler: "Go on, Al, tell 'em all you know.  It won't take long."
Al Smith: "I'll tell 'em all we *both* know.  It won't take any longer."

[-- Attachment #2: Type: text/html, Size: 2976 bytes --]

  reply	other threads:[~2021-04-01 20:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01 20:12 Noel Chiappa
2021-04-01 20:57 ` John Cowan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-31 17:39 David C. Brock
2021-03-31 18:07 ` arnold
2021-03-31 18:23   ` Richard Salz
2021-03-31 18:20 ` Lars Brinkhoff
2021-03-31 18:49 ` Bakul Shah
2021-04-01 12:56 ` Tony Finch
2021-04-01 14:24   ` Richard Salz
2021-04-01 21:25   ` Dave Horsfall
2021-04-01 21:32     ` John Cowan
2021-04-02 22:40       ` Dave Horsfall
2021-04-02 23:20         ` Adam Thornton
2021-04-03  0:34           ` Jon Forrest
2021-04-05 23:23   ` Mary Ann Horton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD2gp_TyaJacxgTx=yk9_9vnsfCvyx5M3RFwY8G1vYj5+TzFEg@mail.gmail.com' \
    --to=cowan@ccil.org \
    --cc=jnc@mercury.lcs.mit.edu \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).