wrteei
Write MSR External Enable Immediate
wrteei E
Updates the EE bit of the MSR from an immediate.
Details
Updates the Machine State Register (MSR) External Enable (EE) bit from the immediate value E (0 or 1). This instruction is privileged and provides a quick way to enable or disable external interrupts. The EE bit controls whether external interrupts are recognized by the processor.
Pseudocode Operation
MSR.EE ← E
Example
wrteei 0
Encoding
Binary Layout
31
0
/
6
/
11
E
16
163
21
/
31
Operands
-
E
Enable (0/1)