mtdcr

Move To Device Control Register

mtdcr DCRN, RS

Writes an on-chip peripheral register (DCR).

Encoding

Binary Layout
31
0:5
RS
6:10
DCRN
11:20
451
21:30
/
31
 
Format XFX-form
Opcode 0x7C000386
Extension Embedded

Operands

  • DCRN
    DCR Number
  • RS
    Source

Example

mtdcr 0, r3

Related

More in Embedded

Reference

Description

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.

Operation

DCR[DCRN] ← RS