answersLogoWhite

0


Best Answer

A subroutine is a group of instructions that will be used repeatedly in diff locations

of the program..........rather than repeating the same instructions several times, they can be grouped into a subroutine that is called from diff locations.

8085 has 2 instruction set for dealing with subroutines:

1.CALL -direct the program execution to the subroutine. Generally it pushes address of next instruction of program counter onto the stack,then goes to the address of subroutine.

2.RET:- pops the address of next instruction from the stack and places it in the program counter and returns to that address to continue processing.

For example, you have an often used value stored in HL. You have to call a subroutine that you know will destroy HL (with destroy I mean that HL will be changed to another value, which you perhaps don't know). Instead of first saving HL in a memory location and then loading it back after the subroutine, you can push HL before calling and directly after the calling pop it back. Of course, it's often better to use the pushes and pops inside the subroutine.

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are stacks subroutines in 8085 microprocessor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why the name 8085 Why the name 8085 for microprocessor?

8085 is a microprocessor designed by Intel


What do '8085' in 8085 Microprocessor signify?

The '8085' in the 8085 microprocessor is the designation given to the microprocessor by Intel. The '5' means it is a single power supply (5 volt) version of the 8080, with enhancements.


What power supply is used in microprocessor 8085 programming?

+5v necessary for microprocessor 8085.


What is the Overview of 8085 microprocessor?

8085 is a 8 bit microprocessor designed by Intel Co.


What is a 8085 microprocessor?

with neat diagram explain the system bus structure of 8085


What is crystal in microprocessor 8085?

crystal is a oscilltor in microprocessor


What is themeaning of pipe lines for 8085 microprocessor?

The 8085 is not pipelined.


Prime numbers between 1 to 10 in microprocessor 8085?

program to find prime number in 8085 microprocessor


How many power supply uses in 8085 microprocessor?

+5v supply is alone needed for Intel 8085 Microprocessor


What is HL pair in 8085 microprocessor?

HL is a register pair used to store 16 bit of data in 8085 microprocessor.


How many instruction are there in 8085 mp?

There are 74 instructions in the 8085 microprocessor.


What is 03Ab in microprocessor 8085?

03ABH in the 8085 is ... INX B XRA E