Professional Documents
Culture Documents
Exchange
Exchange extended
Load (DE)<-(HL), Decrement BC, Increment DE, HL
LDI Repeated until BC=0
Load (DE)<-(HL), Decrement BC, Decrement DE, HL
LDD repeated unitl BC=0
Compare A and (HL), Increment HL, Decrement BC
CPI until BC=0 or A=(HL)
Compare A and (HL), Decrement HL, Decrement BC
CPD until BC=0 or A=(HL)
Decimal Adjust
Binary complement (1st complement)
Negative (2nd complement)
Complement Carry Flag
Set Carry Flag
SRL
RLD
RRD
Bit test
Set bit
Reset bit
=== Jump
JP Jump absolute (direct or indirect to HL, IX, IY)
JP cc
Jump absolute conditional (cc = NZ, Z, NC, C, PO, PE, P, M)
JR Jump Relative
JR cc
Jump Relative conditional (cc = NZ, Z, NC, C)
DJNZ Decrement register B and Jump relative if Not Zero
=== Call and Return
CALL Call absolute
CALL cc
Call absolute conditional (cc = NZ, Z, NC, C, PO, PE, P, M)
RET Return from subroutine
RET cc Conditional Return (cc = NZ, Z, NC, C, PO, PE, P, M)
RETI Return from Interrupt
RETN Return from Non-maskable interrupt (restores DI/EI status)
RST Restart (quick call)
=== Input and Output
IN
INI
INIR
IND
INDR
OUT
OUTI
OTIR
OUTD
OTDR