DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
32-bit instruction:
1. If the operation result is “0”, the zero flag, M1020 will be ON.
2. If the operation result exceeds -2,147,483,648, the borrow flag M1021 will be ON.
3. If the operation result exceeds 2,147,483,647, the carry flag M1022 will be ON
-2 -1 0 -32,768、 、 、 、 、 -1
0 1 32,767012、、、
-2 -1 0 -2,147,483,648、 、 、 、 、 -1 0 1 2,147,483,647 0 1 2、、、
16-bit instruction:
Zero flag
Zero flag Zero flag
Borrow flag
the most significant bit
becomes 1 (negative)
32-bit instruction:
Zero flag Zero flag
Zero flag
the most significant bit
becomes 0 (positive)
Carry flag
Borrow flag
the most significant bit
becomes 1 (negative)
the most significant bit
becomes 0 (positive)
Carry flag