English
Language : 

GMS30C2116 Datasheet, PDF (314/322 Pages) Hynix Semiconductor – USERS MANUAL
A-140
Sum
Appendix A. Instruction Set Details
SUM
Format:
RRconst format
15
OP-code 0001 10
eS
87
43
0
ds
Rd-code
Rs-code
const1
cosnt2
s = 0: Rs-code encodes G0..G15 for Rs, s = 1: Rs-code encodes L0..L15 for Rs
d = 0: Rd-code encodes G0..G15 for Rd, d = 1: Rd-code encodes L0..L15 for Rd
S : Sign bit of dis, e = 0: const = 18S // const1 (range -16,384..16,383)
e = 1: const = 2S // const1 // const2 (range -1,073,741,824...1,073,741,823)
Notation:
SUM Rd, Rs, const
SUM Rd, C, const
(When SR is denoted as a source operand)
Description:
The sum of the source operand is placed in the destination register and the condition flags
are set or cleared accordingly.
Both operands and the result are interpreted as either all signed or all unsigned integers.
When the SR is denoted as a source operand, C is added instead of the SR.
Operation:
When Rs does not denote SR
Rd := Rs + const;
Z := Rd = 0;
N := Rd(31);
V := overflow;
C := carry;
When Rs denotes SR
Rd := C + const;
Z := Rd = 0;
N := Rd(31);
V := overflow;
C := carry;
Exceptions:
None.