Data manipulation

ld

SyntaxEffectSizeM-CyclesFlags
CZHN
ld reg8, op8Copies the value from the right operand into the left operand.1, +1 if immediate value1, +1 if immediate value.----
ld reg16, imm16
ld sp, imm16
33
ld a, [bc/de/mem16]34
ld [bc/de/mem16], a34
ld sp, hl12
ld hl, sp+imm8Adds a signed offset to sp, and copies that to hl. Does not modify sp!23
ld [mem16], spWrites the current value of sp at mem16 (and mem16 + 1, in little-endian order)35
ld a, [c]Copies the value at $FF00 + c into a.12
ld [c], aCopies the value of a into [$FF00 + c].

ldh

SyntaxEffectSizeM-CyclesFlags
CZHN
ldh a, [mem16]Copies the value at mem16 into a. Can only be compiled if mem16's high byte is $FF.23----
ldh [mem16], aCopies the value of a into [mem16]. Can only be compiled if mem16's high byte is $FF

ldi, ldd

SyntaxEffectSizeM-CyclesFlags
CZHN
ldi a, [hl]
ld a, [hli]
ld a, [hl+]
Copies the value at hl into a, then increments hl.1 byte2----
ldi [hl], a
ld [hli], a
ld [hl+], a
Copies the value in a into [hl], then increments hl.
ldd a, [hl]
ld a, [hld]
ld a, [hl-]
Copies the value at hl into a, then decrements hl.
ldd [hl], a
ld [hld], a
ld [hl-], a
Copies the value in a into [hl], then decrements hl.

push, pop

SyntaxEffectSizeM-CyclesFlags
CZHN
push reg16
push af
Decrements sp, writes the high byte of reg16, decrements sp, and writes the low byte of reg16.14All preserved, unless written to by pop af.
pop reg16
pop af
Reads the low byte of reg16, increments sp, reads the high byte of reg16, and increments sp.13