T.I.M | ISA Specification
 All Pages
Link Register

Address: 0010, Memonic: LR

Functionality:

Stores the return address for the currently executing function. It's contents is moved into the Program Counter when a RETURN instruction is encountered. Whenever either the CALLR or CALLI instructions are executed, the next instruction address is loaded into the link register. The old value is then pushed to the top of the call stack.

The initial value of the link register after reset is undefined.

This register is 32 bits wide.

Access

Can be read by...

  • MOVSR
  • TEST
  • RETURN

Can be written by...

  • CALLR
  • CALLI