Make your own free website on Tripod.com

OUTD

Output with decrement.
Function: (C) <- (HL); B <- B - 1; HL <- HL - 1
 
Format:
1110 1101
 
byte 1: ED
 
1010 1011
 
byte 2: AB
 
Description: The contents of the memory location addressed by the HL register pair are output to the peripheral device addressed by the contents of the C register. Then both the B register and the HL register pair are decremented. C supplies bits A0 to A7 of the address bus. B supplies (after decrementation) A8 to A15.
 
Data Flow:
 
Timing: 4 M cycles; 16 T states: 8 usec @ 2 MHz
 
Addressing Mode: external
 
Flags:
 
Example:
OUTD

OBJECT CODE
Before:
 
After: