Odkazy:
Původní TX-0 z Lincoln Labs měl operační kód dlouhý 2 bity. Také neměl žádní indexový registr. Později, v roce 1958 při stěhování na MIT byl operační kód rozšířen ze dvou na čtyři bity a pbyl přidán indexový registr.
Dva bity operačního kódu rozlišovaly 4 instrukce. Tyto instrukce jsou ve zkratce STORE, ADD, JUMP IF LESS THAN a OPERATE
000000+addr STOaddr200000+addr ADDaddr400000+addr TRNaddr// jump of AC0 is zero 600000+code OPRcode
Instrukce OPR je vlastně celá třída „mikrokódovaných“ instrukcí. Jejím parametrem není adresa ale 16 bitů. Každý z těchto bitů ovlivňuje fuknce některé části počítače a jejich vzájemnou kombinací vznikají sofistikované instrukce. Tento postup byl dále rozveden v takových počítačích jako je například 63.1.2 – „PDP-8“
Instrukční slovo je široké 18 bitů. Z těchto 18-ti bitů tvoří instrukce prní dva a zbylých 16 je adresa.
Tabulka 85.1. Registry TX-0
| reg | popis |
|---|---|
| MBR | Memory Buffer Register (18 bits) |
| AC | Accumulator (18 bits) |
| MAR | Memory Address Register (16 bits) |
| PC | Program Counter (16 bits) |
| IR | IR Instruction Register (2 bits) |
| LR | Live Register (18 bits) |
| TBR | Toggle Switch Buffer Register (18 toggle switches) |
| TAC | Toggle Switch Accumulator (18 toggle switches) |
| IR0 | IR1 | ABBREVIATION | INSTRUCTION |
|---|---|---|---|
| 0 | 0 | sto x | Replace the contents of register x with the contents of the AC. Let the AC remain the same. |
| 0 | 1 | add x | Add the word in register x to the contents of the AC and leave the sum in the AC |
| 1 | 0 | trn x | If the sign digit of the accumulator (AC0) is negative (i.e., a one) take the next instruction from there. If the sign is positive (i.e., a zero) ignore this instruction and proceed to the next instruction. |
| 1 | 1 | opr x | Execute one of the operate class commands indicated by the number x. |
