Skip to main content

Level 0 Proposal and Command Summary

Particular Proposal for Level 0 Protocol​

It is proposed that level 0 be kept very simple. This is so that implementation can be quickly accomplished and experimentation with the protocol begun. Another reason is that the least powerful hosts and even programmable terminals should be able to implement it. In accordance with this, the "rule" was made that a command be implemented only if the output is a function solely of the current command and the "beam position" current at the start of the command. In other words the interpreter for level 0 need have no internal storage for "modes" or pushdown stacks. With this restriction it is hoped that a very simple implementation will be possible for level 0. In particular, perhaps one could eventually build a hardware translator from level 0 code to one's own particular terminal's code.

Note that in the opcode assignment for level 0, bits 4, 2, and 1 have special meaning for the move, line and dot commands. In particular, the 1 bit encodes absolute versus relative data mode, the 4 bit encodes whether any visible output occurs, and the 2 bit determines whether the visible output is a line or a dot.

Level 0: Command Summary​

The following is a list of commands (and their syntax)in level zero. Detailed descriptions of these commands follow in the next section. Commands dealing with protocol may be added by the Connection Committee. (They currently request opcodes in the range 128 to 255.)

(As described in Basic Data Forms, above, <x>, <y>, <x delta> and <y delta> are two-byte coordinate values, <string> is a count followed by (count) many bytes and <value> is an eight bit number.)

Decimal    Octal        Binary        Format

0 0 00000000 Null
1 1 00000001 Erase screen and reset beam
2 2 00000010 Move Absolute <x> <y>
3 3 00000011 Move Relative <x> <y>
4 4 00000100 Draw Absolute <x> <y>
5 5 00000101 Draw Relative <x delta> <y delta>
6 8 00000110 Dot Absolute <x> <y>
7 7 00000111 Dot Relative <x delta> <y delta>
8 10 00001000 Text <string>
9 11 00001001 TextR <string>
10 12 00001010 End of Picture
11 13 00001011 Escape <value> <string>