PDP-10 / its

Incompatible Timesharing System
Other
858 stars 83 forks source link

CR and LF display SAIL characters from 11SIM #1575

Open larsbrinkhoff opened 5 years ago

larsbrinkhoff commented 5 years ago

If the simulated PDP-11 code writes CR or LF characters when 11SIM runs on a SAIL character capable terminal, they show as ⊕ or δ.

larsbrinkhoff commented 5 years ago

The reason is that TPBHAK calls SIOT with the %TJSIO control bit to output in super image mode.

I have changed it to check for CR and LF and output those in normal ASCII output mode. But I think more characters, like TAB, should also be excepted. What's the right thing to do here?

rmaldersoniii commented 5 years ago

I created the following table when I was reverse engineering Bruce Baumgart's SAILDART text files (before I gave up and started using the "blob" files):

            STANFORD CHARACTER SET

    0   1   2   3   4   5   6   7

000 NUL ↓   α   β   ∧   ¬   ε   π
    000 20623   1661    1662    21047   254 1665    1700
    ^@  ^A  ^B  ^C  ^D  ^E  ^F  ^G

010 λ   TAB LF  VT  FF  CR  ∞   ∂
    1673                        21036   21002
    ^H  ^I  ^J  ^K  ^L  ^M  ^N  ^O

020 ⊂   ⊃   ∩   ∪   ∀   ∃   ⊗   ↔
    21202   21203   21051   21052   21000   21003   21227   20624
    ^P  ^Q  ^R  ^S  ^T  ^U  ^V  ^W

030 _   →   ~   ≠   ≤   ≥   ≡   ∨
    137 20622   032 21140   21144   21145   21141   21050
    ^X  ^Y  ^Z  ^[  ^\  ^]  ^^  ^_

040 SPC !   "   #   $   %   &   '
050 (   )   *   +   ,   -   .   /
060 0   1   2   3   4   5   6   7
070 8   9   :   ;   <   =   >   ?
100 @   A   B   C   D   E   F   G
110 H   I   J   K   L   M   N   O
120 P   Q   R   S   T   U   V   W
130 X   Y   Z   [   \   ]   ↑   ←
                            20621   20620
                            ^   _

140 `   a   b   c   d   e   f   g
150 h   i   j   k   l   m   n   o
160 p   q   r   s   t   u   v   w
170 x   y   z   {   |   ALT }   BS
                        033 175 177
                        }   ~   ^?

Bruce used Unicode characters for the special SAIL characters. Note that the forms control characters TAB, LINEFEED, VERTICAL-TAB, FORMFEED, and CARRIAGE-RETURN do NOT have a special graphic assigned to them. This also matches what my hardcopy Monitor Commands and UUO manuals say about the character set.

larsbrinkhoff commented 5 years ago

Thanks, I also went through the same phases of first reversing Bruce's Unicode translation, and then using the blobs directly.

The SAIL character set does not have any symbols for codes 11-15, but the slightly altered version used at MIT does. I made a table here:

https://github.com/PDP-10/supdup/issues/3#issuecomment-283448996