Z80 Assembly 04: Memory, I/O Ports, and the Index Registers
Memory Management with 16-bit Pointers The Z80 is excellent at handling 16-bit memory addresses. The most common pairs for this are HL, DE, and BC. Moving Data to/from Memory: Remember that parentheses () mean “the contents of the address.” Instruction Action Analogy LD A, (HL) Loads the byte at the address in HL into A. Reads the note at the address in your address book. LD (DE), A Stores the byte in A into the address in DE. Writes a note at the address in your address book. Stepping Through Memory: ...