wrteei
Write MSR External Enable Immediate
wrteei E
Updates the EE bit of the MSR from an immediate.
Encoding
Binary Layout
31
0:5
/
6:10
/
11:15
E
16:20
163
21:30
/
31
Operands
-
E
Enable (0/1)
Example
wrteei 0
Related
More in Embedded
Reference
Not in Power ISA v3.1C
Description
Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. 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.
Operation
MSR.EE ← E