Module control

Module control 

Source
Expand description

Emulates the principal central components of the TX-2.

§TX-2 Functionality implemented in this module

The functionality of this module is conceptually similar to the CPU of a modern computer, although on the real TX-2 these functions were split across several identifiably separate units (“elements”).

§Functions of the In/Out Element

Other functions of the In/Out element are implemented in the io module.

§Functions of the Exchange Element

  • Remember the setting of the TSP (Toggle Start Point) register

Modules§

op_configuration 🔒
Implementations of “Configuration Memory Class” opcodes
op_index 🔒
Implementations of “Index Register Class” opcodes
op_io 🔒
op_jump 🔒
op_loadstore 🔒
Implementations of “Load-Store Class” opcodes
timing 🔒
Instruction and event timing.
trap 🔒
Emulates the trap circuit and I/O Unit 42. See TX-2 User Handbook Chapter 4 section 42.

Structs§

ControlRegisters
Registers from various elements of the TX-2.
ControlUnit
ControlUnit simulates the operation of the Control Element of the TX-2 computer.
OpcodeResult 🔒
SequenceFlags 🔒
Flags represent requests to run for instruction sequences (today one might describe these as threads). Some sequences are special:

Enums§

ConfigurationMemorySetup
PanicOnUnmaskedAlarm
ProgramCounterChange 🔒
ResetMode
RunMode

Functions§

ones_of_value_as_vec 🔒
please_poll_soon 🔒
sign_extend_index_value 🔒