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

Return to the regular view of this page.

Decoding ED Prefix

How the ED instruction prefix works

Table of Contents

Instructions with the ED prefix consist of instructions that are not used as often as those in the main group.

76543210
01000100 NEG
01000101 RETN
01001101 RETI
01010011
01011110 IM2
010x0110 IMx
010x0111 LD
010x1000 LD
01100111 RRD (HL)
01101000 LD
01101111 RLD (HL)
01110001
01111001 OUT (C) A
01xx0010 SBC
01xx1010 ADC
01xxx000 IN r (C)
01xxx001 OUT (C) r
01xxx011 LD
101xx00x Block Memory
101xx01x Block IO