Example:
6.8.4 MUL - I & DIV - I
Input/output Operand
Data type
IN1, IN2
VW, IW, QW, MW, SW, SMW, T, C, LW, AC, AIW,constant, *VD, *LD, *Ac Integer
OUT
VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC
Integer
MUL - I: IN1 * IN2 = OUT Both input and output are 16
bits integers.
DIV - I: IN1 / IN2 = OUT Both input and output are 16 bits
integers. Output is quotient.There is no remainder.
If the output is larger than a word , then set overflow
bit.
IN1 * IN2 = OUT
IN1 / IN2 = OUT
SM1.1 is used for indicating overflow errors and illegal values.
error conditions:
0006
Indirect address
SM1.1
overflow
SM1.3
The divisor is 0
135
Made with FlippingBook - Online magazine maker