Miscelaneous Instructions

How to decode IO, EX and Interrupt instructions from binary

Only four rotate instructions are defined in the main opcode set, all the rest require the CB prefix.

Opcode format
76543210
 
IO
1101D011
 
EXX
11011001
 
EX
1110W011
 
Interrupts
1111E011
D I/O Direction
InstructionD
Out0
In1
W EX registers
InstructionW
DE_HL0
(SP)_HL1
E Interrupt Enable
InstructionE
DI0
EI1

Last modified November 12, 2021: Add Misc decoding (4c9e5b6)