You are on page 1of 2

5/7/2018 Return Instruction, RC, RNC, RP, RM, RZ, RNZ,RPE, RPO, RET

HOME 8085 Microprocessor 8086 Microprocessor 8085 Instructions 8085 Programming Periferal IC's

8085 Simulator Team Paper

8085 Microprocessor

Back to Home » Programming » Return Instruction, RC, RNC, RP, RM, RZ, RNZ,RPE, RPO, RET

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. Popular Post
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) MOV, MVI, LDA, LDAX, LXI, LHLD, STA,
STAX,SHLD
Eg: - RC ABC (jump to the level abc if C=1)
2. RNC: - (conditional call) The program sequence is transferred to a Addressing Modes in 8085

particular level or a 16-bit


RLC, RRC, RAL, RAR, CMA, CMC, STC
address if C=0 (or carry is 0)
CMP, CPI, ANA, ANI, XRA,XRI, ORA,
Eg: - RNC ABC (jump to the level abc if C=0) ORI
3. RP: - (conditional call) The program sequence is transferred to a
Jump Instruction, JMP, JC, JNC, JP, JM,
particular level or a 16-bit address if S=0 (or sign is 0)
JZ, JNZ, JPE, JPO

Eg: - RP ABC (jump to the level abc if S=0) Comparison of 8085 and 8086
4. RM: - (conditional call) The program sequence is transferred to a
particular level or a 16-bit address if S=1 (or sign is 1)
https://microprocessorforyou.blogspot.in/2012/05/return-instruction.html 1/4
5/7/2018 Return Instruction, RC, RNC, RP, RM, RZ, RNZ,RPE, RPO, RET

Pin Diagram of 8085 Microprocessor


Eg: - RM ABC (jump to the level abc if S=1) with Description
5. RZ: - (conditional call) The program sequence is transferred to a
particular level or a 16-bit address if Z=1 (or zero flag is 1) INR, INX, DCR, DCX, DAA instruction

Flag Registers In 8086


Eg: - RZ ABC (jump to the level abc if Z=1)
6. RNZ: - (conditional call) The program sequence is transferred to a XCHG, SPHL, XHTL, PUSH, POP, OUT,
particular level or a 16-bit address if Z=0 (or zero flag is 0) IN

Eg: - RNZ ABC (jump to the level abc if Z=0)


7. RPE: - (conditional call) The program sequence is transferred to a Labels
particular level or a 16-bit address if P=1 (or parity is 1)
8085 (22)

Eg: - RPE ABC (jump to the level abc if P=1) 8086 (18)

8. RPO: - (conditional call) The program sequence is transferred to a 8155 PPI (5)

particular level or a 16-bit address if P=0 (or parity is 0) 8255PPI (3)

Introduction (14)

Eg: - RPO ABC (jump to the level abc if P=0) Programming (13)

9.RET: - Return from subroutine unconditionally

Share This
Blog Archive
►  2013
▼  2012
September
June
{ 3 comments... read them below or Comment } May
January
►  2011
Sathish Kumar 26 January 2014 at 06:09

i wan more about instructions


Reply

Free Study
https://microprocessorforyou.blogspot.in/2012/05/return-instruction.html 2/4

You might also like