Rev.6.00 Oct.28.2004 page 835
of 1016
REJ09B0138-0600H
Table A-7
Condition Code Modification
Instruction
H
N
Z
V
C
Definition
ADD
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
ADDS
— — — — —
ADDX
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
AND
—
0
—
N = Rm
Z =
Rm
·
Rm–1
· ...... ·
R0
ANDC
Stores the corresponding bits of the result.
No flags change when the operand is EXR.
BAND
— — — —
C = C' · Dn
Bcc
— — — — —
BCLR
— — — — —
BIAND
— — — —
C = C' ·
Dn
BILD
— — — —
C =
Dn
BIOR
— — — —
C = C' +
Dn
BIST
— — — — —
BIXOR
— — — —
C = C' · Dn +
C'
·
Dn
BLD
— — — —
C = Dn
BNOT
— — — — —
BOR
— — — —
C = C' + Dn
BSET
— — — — —
BSR
— — — — —
BST
— — — — —
BTST
— —
— —
Z =
Dn
BXOR
— — — —
C = C' ·
Dn
+
C'
· Dn
CLRMAC
Cannot be used in the H8S/2357 Group
CMP
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
Summary of Contents for ZTAT H8S/2357F
Page 4: ......
Page 28: ...Rev 6 00 Oct 28 2004 page xxiv of xxiv REJ09B0138 0600H...
Page 82: ...Rev 6 00 Oct 28 2004 page 54 of 1016 REJ09B0138 0600H...
Page 108: ...Rev 6 00 Oct 28 2004 page 80 of 1016 REJ09B0138 0600H...
Page 364: ...Rev 6 00 Oct 28 2004 page 336 of 1016 REJ09B0138 0600H...
Page 438: ...Rev 6 00 Oct 28 2004 page 410 of 1016 REJ09B0138 0600H...
Page 566: ...Rev 6 00 Oct 28 2004 page 538 of 1016 REJ09B0138 0600H...
Page 588: ...Rev 6 00 Oct 28 2004 page 560 of 1016 REJ09B0138 0600H...
Page 688: ...Rev 6 00 Oct 28 2004 page 660 of 1016 REJ09B0138 0600H...
Page 694: ...Rev 6 00 Oct 28 2004 page 666 of 1016 REJ09B0138 0600H...
Page 708: ...Rev 6 00 Oct 28 2004 page 680 of 1016 REJ09B0138 0600H...
Page 1044: ...Rev 6 00 Oct 28 2004 page 1016 of 1016 REJ09B0138 0600H...