This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

Miscelaneous Instructions

How to decode IO, EX and Interrupt instructions from binary

Table of Contents

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