ADD $X,$Y,$Z | ADD $X,$Y,Z |
SUB $X,$Y,$Z | SUB $X,$Y,Z |
MUL $X,$Y,$Z | MUL $X,$Y,Z |
DIV $X,$Y,$Z | DIV $X,$Y,Z |
Specification:
ADD: s($X) | ← s($Y) + s($Z) | ||||||||||||
SUB: s($X) | ← s($Y) - s($Z) | ||||||||||||
MUL: s($X) | ← s($Y) * s($Z) | ||||||||||||
DIV: |
the integer part of the Quotient and
the remainder in special register rR. |
All instructions exist in two variants. The second operand can either be a register $Z or an immediate value Z.
Timing:
ADD: | 1υ |
SUB: | 1υ |
MUL: | 10υ |
DIV: | 60υ |
Description:
These are instructions for computations with signed integers. The instructions record exceptions like overflow or division by zero in special register rA and, if enabled, cause a TRIP.
See also: