wrtee

Write MSR External Enable

wrtee RS

Updates the EE bit of the MSR from a GPR.

Encoding

Binary Layout
31
0:5
RS
6:10
/
11:15
/
16:20
131
21:30
/
31
 
Format X-form
Opcode 0x7C000106
Extension Embedded

Operands

  • RS
    Source

Example

wrtee r3

Related

More in Embedded

Reference

Description

Updates the Machine State Register (MSR) External Enable (EE) bit from the least significant bit of RS. This instruction is privileged and allows software to enable or disable external interrupts. The EE bit controls whether external interrupts are recognized by the processor.

Operation

MSR.EE ← RS[63]