English
Language : 

MC68030 Datasheet, PDF (93/602 Pages) Motorola, Inc – ENHANCED 32-BIT MICROPROCESSOR
Instruction Set Summary
3.3.1 Condition Code Computation
Most operations take a source operand and a destination operand, compute, and store the
result in the destination location. Single-operand operations take a destination operand,
compute, and store the result in the destination location. Table 3–12 lists each instruction
and how it affects the condition code bits.
Table 3-12. Condition Code Computations (Sheet 1 of 2)
ABCD
Operations
ADD, ADDI, ADDQ
ADDX
AND, ANDI, EOR, EORI,
MOVEQ, MOVE, OR, ORI
CLR, EXT, NOT, TAS, TST
CHK
CHK2, CMP2
SUB, SUBI, SUBQ
SUBX
CAS, CAS2, CMP, CMPI,
CMPM
DIVS, DUVI
MULS, MULU
SBCD, NBCD
NEG
NEGX
XNZVC
Special Definition
* U ? U ? C =-Decimal Carry
Z =-Z Λ Rm Λ . . . Λ R0
* * * ? ? V = Sm Λ Dm Λ Rm V Sm Λ Dm Λ Rm
C = Sm Λ Dm V Rm Λ Dm V Sm Λ Rm
* * ? ? ? V = Sm Λ Dm Λ Rm V Sm Λ Dm Λ Rm
C = Sm Λ Dm V Rm Λ Dm V Sm Λ Rm
Z = Z Λ Rm Λ . . . Λ R0
—* *00
—* UUU
— U ? U ? Z = (R = LB) V (R = UB)
C = (LB < = UB) Λ (IR < LB) V (R > UB))
V = (UB <LB) Λ (R >UB) Λ (R <LB)
* * * ? ? V = Sm Λ Dm Λ Rm V Sm Λ Dm Λ Rm
C = Sm Λ Dm V Rm Λ Dm V Sm Λ Rm
* * ? ? ? V = Sm Λ Dm Λ Rm V Sm Λ Dm Λ Rm
C = Sm Λ Dm V Rm Λ Dm V Sm Λ Rm
Z = Z Λ Rm Λ . . . Λ R0
— * * ? ? V = Sm Λ Dm Λ Rm V Sm Λ Dm Λ Rm
C = Sm Λ Dm V Rm Λ Dm V Sm Λ Rm
— * * ? 0 V = Division Overflow
— * * ? 0 V = Multiplication Overflow
*U
U ? C = Decimal Borrow
Z = Z Λ Rm Λ . . . Λ R0
* * * ? ? V = Dm Λ Rm
C = Dm V Rm
* * ? ? ? V = Dm Λ Rm
C = Dm V Rm
Z = Z Λ Rm Λ . . . Λ R0
MOTOROLA
MC68030 USER’S MANUAL
3-15