mtdcr

Move To Device Control Register

mtdcr DCRN, RS

Writes an on-chip peripheral register (DCR).

Details

Writes the value from general-purpose register RS to a Device Control Register (DCR) specified by DCRN. This instruction is privileged and device-specific. Access to DCR is implementation-dependent and may not be available on all processors; the effects depend on the target DCR.

Pseudocode Operation

DCR[DCRN] ← RS

Example

mtdcr 0, r3

Encoding

Binary Layout
31
0
RS
6
DCRN
11
451
21
/
31
 
Format XFX-form
Opcode 0x7C000386
Extension Embedded

Operands

  • DCRN
    DCR Number
  • RS
    Source