6.8 Integer operations
6.8.1 ADD - I&SUB - I
Input/output Operand
Data type
IN1, IN2
VW, IW, QW, MW, SW, SMW, T, C, AC, LW, AIW,constant, *VD, *LD, *AC
Integer
OUT
VW, IW, QW, MW, SW, SMW, T, C, LW, AC, *VD, *LD, *AC
Integer
ADD - I: IN1 + IN2 = OUT Both input and output are 16
bits integers.
SUB - I : IN1 - IN2 = OUT Both input and output are 16 bits
integers.
IN1 + IN2 = OUT
IN1 - IN2 = OUT
SM1.1 is used for indicating overflow errors and illegal
values.
error conditions:
Indirect address
0006
overflow
SM1.1
131
Made with FlippingBook - Online magazine maker