- Back to Home »
- 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
address if S=0 (or sign is 0)
address if S=0 (or sign is 0)
Eg: - CP ABC (jump to the level abc if S=0)
4. CM: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if S=1 (or sign is 1)
Eg: - CM ABC (jump to the level abc if S=1)
5. CZ: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if Z=1 (or zero flag is 1)
Eg: - CZ ABC (jump to the level abc if Z=1)
6. CNZ: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if Z=0 (or zero flag is 0)
Eg: - CNZ ABC (jump to the level abc if Z=0)
7. CPE: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if P=1 (or parity is 1)
Eg: - CPE ABC (jump to the level abc if P=1)
8. CPO: - (conditional call) The program sequence is transferred to a particular level or a 16-bit address if P=0 (or parity is 0)
Eg: - CPO ABC (jump to the level abc if P=0)
thnx 4 inormation about call instructions.....
ReplyDelete