the typing of some specializ~d sequences of characters, partial decimal to binary conversion on input, and
The following is a summary of the subroutines and their calling parameters:
NAME ADDRESS (X) FUNCTION
KEY | 120 | This routine inputs one | |
|
| in index registers 14 and 15. Index registers 12 and 13 are cleared to zero. The least significant bit of | |
|
| register 11 determines whether the character is echoed back (0 = yes, 1 = no). The carry is set if the | |
|
| character typed in is printable. | |
TTl | 117 | This routine inputs one | |
|
| reader control is enabled), and is otherwise exactly the same as KEY. | |
TXX | 234 | (10, 11, 14, 15) This routine examines the carry bit set by KEY or TTl as well as the accumulator value | |
|
| and the character in registers 14 and 15 to determine if one of the following conditions obtains: |
1.The character is some printable graphic between "0" and '+".If so, the character is biased to a six- bit value, centered in the byte. The carry is turned on if it is a letter. A normal return is taken, acc=O.
2.The character is a control character between null and ETB
3.The character is a control between CAN
4.The character is one of those not generated by a KSR33 teletype, or a rubout. A normal return is taken, with the accumulator
T6R | 205 | |
|
| through ' ...". Characters in group (4) above are ignored, and the alternate exits are taken for control |
|
| characters and delimiters. Note that if the address to which the delimiter return is to be made is odd, |
|
| no echo occurs. On normal return, the character is |
|
| is set if the character is a letter or higher. |
T6l | 220 | |
|
| character is |
|
| contain subroutine calls nested three deep, and may only be called from the main program, except |
|
| during simulation. |
010183
Z47 | 6 | |||
PUN | 80 | This routine prints or punches the character in registers 14 and 15 out on the teletype. Registers | ||
|
| 11 through 15 are cleared to zero on return. | ||
IPR | 70 | This routine does the same as PUN, except that if register 11 is initially even (echo mode on input), | ||
|
| a 15 ms delay occurs to allow the teletype printer to settle. | ||
RETN | 107 | This routine types out a carriage return, a null, and a linefeed. It may only be called from the | ||
|
| main routine. | ||
MSG | 66 | This routine types out the character in registers 14 and 15, then follows it with a bell. | ||
SPACE | 63 | This routine types one space. | ||
DIGIT | 53 | This routine types an ASCII digit corresponding to the BCD number in the accumulator. If it is | ||
|
| zero, and the register 10 contains 15, a space is typed instead. Unless a space is typed, register 10 is | ||
|
| incremented. | ||
PDN | 40 | This routine will print, with zero suppression, the | ||
|
| 4 through 7. | ||
BCD | 11 | This routine converts the | ||
|
| four digits with zero suppression. |
6