English
Language : 

MC68030 Datasheet, PDF (377/602 Pages) Motorola, Inc – ENHANCED 32-BIT MICROPROCESSOR
Coprocessor Interface Description
10.2.2.3 TEST COPROCESSOR CONDITION, DECREMENT AND BRANCH
INSTRUCTION. The operation of the test coprocessor condition, decrement and branch
instruction is similar to that of the DBcc instruction provided in the M68000 Family instruction
set. This operation uses a coprocessor evaluated condition and a loop counter in the main
processor. It is useful for implementing DO-UNTIL constructs used in many high-level
languages.
10.2.2.3.1 Format. Figure 10-12 shows the format of the test coprocessor condition,
decrement and branch instruction, denoted by the cpDBcc mnemonic.
15
14
13
12
11
98 7 6 5 4 3 2
0
1
1
1
1
CpID
0 0 1 0 0 1 EFFECTIVE ADDRESS
(RESERVED)
CONDITION SELECTOR
OPTIONAL COPRCESSOR-DEFINED EXTENSION WORDS
DISPLACEMENT
Figure 10-12. Test Coprocessor Condition, Decrement and Branch
Instruction Format (cpDBcc)
The first word of the cpDBcc instruction is the F-line operation word. This word contains the
CpID field in bits [9-11] and 001001 in bits [8:3] to identify the cpDBcc instruction. Bits [0:2]
of this operation word specify the main processor data register used as the loop counter
during the execution of the instruction.
The second word of the cpDBcc instruction format contains the coprocessor condition
selector in bits [0-5] and should contain zeros in bits [6-15] to maintain compatibility with
future M68000 products. This word is written to the condition CIR to initiate execution of the
cpDBcc instruction by the coprocessor.
If the coprocessor requires additional information to evaluate the condition, the cpDBcc
instruction can include this information in extension words. These extension words follow
the word containing the coprocessor condition selector field in the cpDBcc instruction
format.
The last word of the instruction contains the displacement for the cpDBcc instruction. This
displacement is a twos-complement 16-bit value that is sign-extended to long-word size
when it is used in a destination address calculation.
MOTOROLA
MC68030 USER’S MANUAL
10-17