Partager via


_MoveFromCoProcessor, _MoveFromCoProcessor2 (Windows Embedded CE 6.0)

1/5/2010

These intrinsic functions read data from ARM coprocessors via the coprocessor data transfer instructions.

Syntax

int _MoveFromCoprocessor(
      unsigned int coproc,
      unsigned int opcode1,
      unsigned int crn,
      unsigned int crm,
      unsigned int opcode2
);

int _MoveFromCoprocessor2(
      unsigned int coproc,
      unsigned int opcode1,
      unsigned int crn,
      unsigned int crm,
      unsigned int opcode2
);

Parameters

  • coproc
    Coprocessor number in the range 0 to 15.
  • opcode1
    Coprocessor-specific opcode in the range 0 to 7.
  • crn
    Coprocessor register number in the range 0 to 15,**which specifies the first operand to the instruction.
  • crm
    Coprocessor register number in the range 0 to 15, which specifies an additional source or destination operand*.*
  • opcode2
    Additional coprocessor-specific opcode in the range 0 to 7*.*

Return Values

The value read from the coprocessor.

Remarks

The values of all five parameters to this intrinsic must be constant expressions known at compile time.

_MoveFromCoprocessor uses the MRC instruction; _MoveFromCoprocessor2 uses MRC2. The parameters correspond to bitfields encoded directly into the instruction word. The interpretation of the parameters is coprocessor-dependent. For more information, see the manual for the coprocessor in question.

These intrinsics are not available when generating Thumb instructions, such as when /QRthumb is specified.

Requirements

Architecture ARM
Header armintr.h
Routine _MoveFromCoprocessor, _MoveFromCoprocessor2

See Also

Reference

ARM10 Intrinsic Functions
/QRthumb