CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
Example:
COPST #15, #4, CR2, R4
16-bit data is transferred through the bus to the coprocessor indicated by channel number 15. Next,
the output data of the coprocessor 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.118-1
will have the following effect on coprocessor operation.
Table 7.118-1 Conditions for Coprocessor Command "CC" (COPST)
234
MSB
0
0
0
0
CC
Calculation
Addition CRi + CRj → CRi
00
Subtraction CRi – CRj → CRi
01
Multiplication CRi × CRj → CRi
02
Division CRi ÷ CRj → CRi
03
Other
No calculation
(CPU register)
R4
x x x x
x x x x
(Coprocessor register)
CR2
B F 8 0 0 0 0 0
Before execution
0
1
0
0
0
0
LSB
1
0
0
1
0
0
(CPU register)
R4
B F 8 0
0 0 0 0
(Coprocessor register)
CR2
B F 8 0
0 0 0 0
After execution