/opcodes/ldi

Description

A byte of data is transferred from the memory location addressed, by the contents of the HL register pair to the memory location addressed by the contents of the DE register pair. Then both these register pairs are incremented and the Byte Counter (BC) Register pair is decremented.

Example

If the HL register pair contains 1111h, memory location 1111h contains byte 88h, the DE register pair contains 2222h, the memory location 2222h contains byte 66h, and the BC register pair contains 7h, then the instruction LDI results in the following contents in reg- ister pairs and memory addresses: HL contains 1112h (1111h) contains 88h DE contains 2223h (2222h) contains 88h BC contains 6H

Opcodes