Make your own free website on Tripod.com

INI

Input with increment.
Function: (HL) <- (C); B <- B - 1; HL <- HL + 1
 
Format:
1110 1101
 
byte 1: ED
 
1010 0010
 
byte 2: A2
 
Description: The peripheral device addressed by the C register is read and the result is loaded into the memory location addressed by the HL register pair. The B register is decremented and the HL register pair is incremented.

The contents of C are placed on the low half of the address bus. The contents of B are placed on the high half. I/O selection is generally made by C, i.e., by A0 to A7. B is a byte counter.
 

Data Flow:
 
Timing: 4 M cycles; 16 T states: 8 usec @ 2 MHz
 
Addressing Mode: external
 
Flags:
 
Example:
INI

OBJECT CODE
Before:
 
After: