Condition Tests - Motorola CPU32 Reference Manual

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

4.3.10 Condition Tests
Conditional program control instructions and the TRAPcc instruction execute on
the basis of condition tests.
A condition test is the evaluation of a logical
expression related to the state of the CCR bits. If the result is 1, the condition is
true. If the result is 0, the condition is false. For example, the T condition is
always true, and the EQ condition is true only if the Z bit condition code is true.
Table 4-10 lists each condition test.
Table 4-10. Condition Tests
Mnemonic
Condition
Encoding
T
True
0000
F*
False
0001
HI
High
0010
LS
Low or Same
0011
CC
Carry Clear
0100
CS
Carry Set
0101
NE
Not Equal
0110
EQ
Equal
0111
VC
Overflow Clear
1000
VS
Overflow Set
1001
PL
Plus
1010
MI
Minus
1011
GE
Greater or Equal
1100
LT
Less Than
1101
GT
Greater Than
1110
LE
Less or Equal
1111
* Not available for the Bec instruction.
CPU32 REFERENCE MANUAL
INSTRUCTION SET
Test
1
0
-
-
C.Z
-
-
C+Z
-
C
C
Z
Z
-
V
V
-
N
N
N.V+'N.V
-
-
N.V+N.V
N.V.Z+'N.V.Z
Z+N.V+N.V
MOTOROLA
4-17
III

Advertisement

Table of Contents
loading

Table of Contents