Section-5:Move/Logical Instruction

Bit Field Distribute with Target (BTDT)

The BTDT instruction first copies the Target to the Destination. Then the instruction copies the specified bits from the Source, shifts the bits to the appropriate position, and writes the bits into the Destination. The Target and Source remain unchanged.

Section-6:Program Control Instructions

Use this instruction:

  1. JSR
  2. SBR
  3. RET

If you want to

  • Jump to a separate routine, pass data to the routine, execute the routine, and return results.

Jump to Subroutine (JSR),

The JSR instruction invokes another routine. When that routine completes, the execution returns to the JSR instruction.

Subroutine (SBR)

The SBR instruction receives the input parameters passed by the JSR.

Return (RET)

The RET instruction passes return parameters back to the JSR and ends the scan of the subroutine.

Scroll to Top