232
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
Example: COPLD #15, #4, R8, CR1
16-bit data is transferred through the bus to the coprocessor indicated by channel number 15. Next,
the contents of general-purpose register "R8" are transferred through the bus to that coprocessor.
Assuming that the coprocessor indicated by channel 15 is a single-precision
floating-decimal calculation unit, the coprocessor command "CC" set as shown in Table 7.117-1
will have the following effect on coprocessor operation.
Table 7.117-1 Conditions for Coprocessor Command "CC" (COPLD)
CC Calculation
00 Addition CRi + CRj CRi
01 Subtraction CRi – CRj CRi
02 Multiplication CRi × CRj CRi
03 Division CRi ÷ CRj CRi
Other No calculation
MSB LSB
0000010010000001
R8
3F80 0000
(CPU register)
R8
3F80
3F80
0000
(Coprocessor register)
(CPU register)
(Coprocessor register)
CR1
xxxx xxxx
CR1
0000
Before execution After execution