mfdcr

Move From Device Control Register

mfdcr RT, DCRN

Reads an on-chip peripheral register (DCR).

Encoding

Binary Layout
31
0:5
RT
6:10
DCRN
11:20
323
21:30
/
31
 
Format XFX-form
Opcode 0x7C000286
Extension Embedded

Operands

  • RT
    Target
  • DCRN
    DCR Number

Example

mfdcr r3, 0

Related

More in Embedded

Reference

Description

Reads a Device Control Register (DCR) and writes the value to general-purpose register RT. This instruction is privileged and device-specific; the DCR address is specified by DCRN. Access to DCR is implementation-dependent and may not be available on all processors.

Operation

RT ← DCR[DCRN]