Context : Ferranti Mark 1 Handbook

Ferranti Mark 1 Instruction Codes

This page gives a summary of the instruction codes, first in logical order then in numerical order. In between is a key for the notation used. The 6-bit function codes are specified using the Base-32 notation used in the Programmer's Handbook (which go up from 0, 1, 2, 3, ... 63 in the form //, T/, /E, TE, ... T£ -- see note 3 for the Handbook). The link from the base-32 code goes to the appropriate part of the Handbook, although for many of the arithmetic codes there is no explicit specification, so the link is merely to the table of arithmetic instructions in the Handbook text.

The notation used in both summaries is that of the Handbook; the list in numerical order is essentially a copy of the text contained in the Handbook's appendix.

Note that the ' symbol is simply used to indicate a value that is reset by the instruction.

Summary Instruction Code (ordered logically)

Arithmetic Instructions (Key)
  A' = S±   T:  A' = 0
T/A' = S+ TFA' = -S±
/SS' = L TKA' = 2S±
TCA' = A + S± /ES' = M
TI A' = A + S+ /AS' = M, M' = 0
TNA' = A - S± TAS' = L, A' = 0
/KD' = S± /US' = L, L' = M, M' = 0
/CD' = S+ /JM' = M + S
/FA' = A + D S± /IL' = M, M' = L
/NA' = A + D S+ TRA' = A and S±
/DA' = A - D S± TDA' = A or S±
A' = A - D S+ TJA' = A neq S±
/@standardise
B-line Instructions Control Instructions
TTB' = s /PUncond. direct jump
TLB' = B - s /QUncond. rel. jump
TZs' = B /HA-cond. direct jump
TO # B' = s /MA-cond. rel. jump
TG # B' = B - s /TB-cond. direct jump
TB # s' = B /OB-cond. rel. jump
/GStop if /G switch set
Miscellaneous /LStop if /L switch set
/:S as mag. instr.
//H as mag. instr.
/ZS' = H
/WRandom number generator
/RSideways adder
/VHoot
# Dummy
Notes
KEY     
AThe 80-bit Accumulator BOne of the 8 20-bit B-lines
LThe Least significant 40 bits of A The Multiplicand Register
The Most significant 40 bits of A HThe 20-bit value on the console hand switches
SThe contents of a 40-bit Store line
S±S explicitly treated using the plus-minus convention (the default)
S+S explicitly treated using the plus convention
sThe contents of a 20-bit Store line

Summary Instruction Code (ordered numerically)

//  H as mag. instr.    T/  A' = S+ (Key)
/ES' = M TE**
/@standardise T@**
/AS' = M, M' = 0 TAS' = L, A' = 0
/:S as mag. instr. T:A' = 0
/SS' = L TS**
/IL' = M, M' = L TI A' = A + S+
/US' = L, L' = M, M' = 0 TU**
A' = A - D S+ A' = S±
/DA' = A - D S± TDA' = A or S±
/RSideways adder TRA' = A and S±
/JM' = M + S TJA' = A neq S±
/NA' = A + D S+ TNA' = A - S±
/FA' = A + D S± TFA' = -S±
/CD' = S+ TCA' = A + S±
/KD' = S± TKA' = 2S±

/TB-cond. direct jump TTB' = s
/ZS' = H TZs' = B
/LStop if /L switch set TLB' = B - s
/WRandom number generator TWB' = B - s
/HA-cond. direct jump TH**
/Y** TY**
/PUncond. direct jump TP**
/QUncond. rel. jump TQ**
/OB-cond. rel. jump TO # B' = s
/B** TB # s' = B
/GStop if /G switch set TG # B' = B - s
/"** T" # B' = B - s
/MA-cond. rel. jump TM # (B-exceptional
/X** TX #     instructions)
/VHoot TV #
** # Dummy
Notes on the numerically ordered list