Z80 Assembly 07: Block Transfers and String Operations

High-Speed Block Transfer Instructions The Z80 includes a powerful set of instructions designed to handle large blocks of memory quickly. These commands primarily rely on three 16-bit register pairs: Register Pair Purpose in Block Commands HL Source Address (Where to read data from) DE Destination Address (Where to write data to) BC Counter (How many bytes to move/compare) Transferring Data (Move) The LDI (Load, Increment) and LDIR (Load, Increment, Repeat) commands are used to copy blocks of memory. ...

September 27, 2025