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
 
Format X-form
Opcode 0x7C000146
Extension Embedded

Operands

  • E
    Enable (0/1)

Example

wrteei 0

Related

More in Embedded

Reference

Description

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