beautypg.com

FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 257

background image

233

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.118

COPST (Store 32-bit Data from Coprocessor Register to
Register)

Transfers the 16-bit data consisting of parameters "CC", "CRj", "Ri" to the coprocessor
indicated by channel number "u4", then on the next cycle loads the data output by the
coprocessor into CPU general-purpose register "Ri".
Basically, this operation transfers data from a register within the coprocessor. The
32-bit data stored in coprocessor register "CRj" is transferred to CPU general-purpose
register "Ri". Note that the actual interpretation of the fields "CC", "CRj", "Ri" is done
by the coprocessor so that the detailed actual operation is determined by the
specifications of the coprocessor.
If the coprocessor designated by the value "u4" is not mounted, a "coprocessor not
found" trap is generated.
If the coprocessor designated by the value "u4" has generated an error in a previous
operation, a "coprocessor error" trap is generated.

COPST (Store 32-bit Data from Coprocessor Register to Register)

Assembler format:

COPST #u4, #CC, CRj, Ri

Operation:

CC, CRj, Ri

Coprocessor on channel u4

CRj

Ri

Flag change:

N, Z, V, and C: Unchanged

Execution cycles:

1 + 2a cycles

Instruction format:

N

Z

V

C

MSB

LSB

1

0

0

1

1

1

1

1

1

1

1

0

u4

(n+0)

Ri

CRj

CC

(n+2)