T.I.M | ISA Specification
 All Pages
Test Result

Address: 0011, Memonic: TR

Functionality:

Stores the results of TEST instructions. A TEST instruction can perform all of the normal boolean comparisons between two values stored in registers. The result is a single bit representing either TRUE or FALSE. Whenever a new result is encountered (i.e. a TEST instruction is executed) the entire register value is shifted one bit to the left and the new value placed in the LSB. In this way, the results of the previous 32 TEST instructions are stored and can be accessed and queried using the MOVSR instruction.

The initial value of the test result register after reset is undefined.

This register is 32 bits wide.

Access

The test result register is read implicitly by all instructions which are executed conditionally. It is also written implicitly with each TEST instruction.

This can be read directly by:

  • MOVSR

This can be written by:

  • TEST
  • MOVRS