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
Operands
-
RS
Source
Example
wrtee r3
Related
More in Embedded
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
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]