Changes

Z80

368 bytes added, 20 April
/* Addressing Modes */
== Addressing Modes ==
 
{| class="wikitable"
! Addressing Mode !! Example !! Operation
|-
| 8-bit Immediate || LD A, 5Ah || A ← 5Ah
|-
|16-bit Immediate || LD HL, 1234h || HL ← 1234h
|-
| Register || LD A, B || A ← B
|-
| Register Indirect || LD A, (HL) || A ← M(HL)
|-
| Extended (Absolute) || LD A, (1234h) || A ← M(1234h)
|-
| Indexed (IX+d) || LD A, (IX+5) || A ← M(IX+5)
|}
Many instructions, such as arithmetic instructions or loads, include more than one operand. In these cases, two different types of addressing can be employed in the same instruction.
13,173
edits