INI
Reads input from the port address found in memory at pointer C register i.e. (C) and saves the result to the address pointer (HL). It then increments HL while decrements B register.
INI (Input and Increment) is generally more intuitive because it reads data sequentially, storing it in memory in the natural, forward direction. However, IND (Input and Decrement) has its own use cases and advantages, especially in certain scenarios where the direction of memory storage matters. See IND for more info.
| Instruction | Description | Opcode |
|---|---|---|
| INI | INput and Increment | EDA2 |