857
Instruction
H
N
Z
V
C
Definition
SUB
H = Sm–4 ·
Dm–4
+
Dm–4
· Rm–4 + Sm–4 · Rm–4
N = Rm
Z =
Rm
·
Rm–1
· ...... ·
R0
V =
Sm
· Dm ·
Rm
+ Sm ·
Dm
· Rm
C = Sm ·
Dm
+
Dm
· Rm + Sm · Rm
SUBS
— — — — —
SUBX
H = Sm–4 ·
Dm–4
+
Dm–4
· Rm–4 + Sm–4 · Rm–4
N = Rm
Z = Z' ·
Rm
· ...... ·
R0
V =
Sm
· Dm ·
Rm
+ Sm ·
Dm
· Rm
C = Sm ·
Dm
+
Dm
· Rm + Sm · Rm
TAS
—
0
—
N = Dm
Z =
Dm
·
Dm–1
· ...... ·
D0
TRAPA
— — — — —
XOR
—
0
—
N = Rm
Z =
Rm
·
Rm–1
· ...... ·
R0
XORC
Stores the corresponding bits of the result.
No flags change when the operand is EXR.
Summary of Contents for H8S/2645
Page 4: ......
Page 16: ......
Page 58: ...26 ...
Page 110: ...78 ...
Page 120: ...88 ...
Page 132: ...100 ...
Page 160: ...128 ...
Page 172: ...140 ...
Page 418: ...386 ...
Page 444: ...412 ...
Page 530: ...498 ...
Page 562: ...530 ...
Page 642: ...610 ...
Page 662: ...630 ...
Page 688: ...656 ...
Page 756: ...724 ...
Page 784: ...752 ...
Page 812: ...780 ...
Page 837: ...805 A 2 Instruction Codes Table A 2 shows the instruction codes ...
Page 1152: ...1120 ...