XCHG, SPHL, XHTL, PUSH, POP, OUT, IN
10. XCHG: - Exchange H and L with D and E. The contents of register H are exchanged with the contents of register D, and the contents of register L are exchanged with the contents of register E.
Eg: - XCHG
11. SPHL: - This instruction copies H and L register to the stack pointer. The instruction loads
Tag :
Programming
MOV, MVI, LDA, LDAX, LXI, LHLD, STA, STAX,SHLD
1.MOV: - This instruction is used to copy the data from one place to another.
Eg: - MOV Rd, Rs (This instruction copies the content of Rs to Rd)
MOV M,Rs (This instruction copies the content of register Rs to memory location pointed by HL Register)
MOV Rd, M (This instruction copies the content of memory location pointed by the HL
Tag :
Programming
NOP, HLT, DI, EI, RIM, SIM
1.NOP(No operation): - No operation is performed. The instruction is fetched and decoded. However no operation is executed.
Eg: - NOP
2. HLT(Halt): - The CPU finishes executing the current instruction and halts any further
Tag :
Programming
PCHL, RST
1. PCHL: - Load program counter with HL contents. The contents of registers H and L are copied into the program counter. The contents of H are placed as the high-order byte and the contents of L as the low order byte.
2. RST: - The RST instruction is equivalent to a 1- byte call instruction to one of eight memory
Tag :
Programming
