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
Return Instruction, RC, RNC, RP, RM, RZ, RNZ,RPE, RPO, RET
The program sequence is transferred from the subroutine to the calling program based on the specified flag of the PSW as described below. The two bytes from the top of the stack are copied into the program counter, and program execution begins at the new address.
1. RC: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if C=1 (or carry is 1)
Eg: - RC ABC (jump to the level abc if C=1)
2. RNC: - (conditional call) The program sequence is transferred to a particular level or a 16-bit
Tag :
Programming
Call Instruction, CC, CNC, CP, CM, CZ, CNZ, CPE, CPO
1. CC: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if C=1 (or carry is 1)
Eg: - CC ABC (jump to the level abc if C=1)
2. CNC: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if C=0 (or carry is 0)
Eg: - CNC ABC (jump to the level abc if C=0)
3. CP: - (conditional call) The program sequence is transferred to a particular level or a 16-bit
Tag :
Programming
Jump Instruction, JMP, JC, JNC, JP, JM, JZ, JNZ, JPE, JPO
1. JMP: - (unconditionally jump) The program sequence is transferred to the memory location specified by the16-bit address given in the operand.
Eg: - JMP 2034H ( jump to location 2034H) there is no condition to jump.
JMP ABC (jump to abc level)
2. JC: - (conditional jump) The program sequence is transferred to a particular level or a 16-bit address if C=1 (or carry is 1)
Tag :
Programming