answersLogoWhite

0


Best Answer

in 8085 microprocessor a subroutine is a separate program written aside from main program ,this program is basically the program which requires to be executed several times in the main program.

the microprocessor can call subroutine any time using CALL instruction .

after the subroutine is executed the subbroutine hands over the program to main

program using RET instruction.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is subroutine in 8085?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between delay subroutine and ordinary subroutine in context of 8085?

a subroutine is a portion of the code within a larger program which performs a specific function and is independent of remaining code.....delay routines are subroutines used for maintaining the timings of various operations in microprocessor


What are stacks subroutines in 8085 microprocessor?

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.


What is subroutine in java?

Subroutine mean what (in java)?


What are subroutine linkages?

The Mechanism that makes possible to transfer control between the calling program and Subroutine is reffered to as SUBROUTINE LINKAGE


What is main difference between macro and subroutins?

marco expand where it invoked ,subroutine will go where the subroutine is defined....


Why the name 8085 Why the name 8085 for microprocessor?

8085 is a microprocessor designed by Intel


What is a single computer function that initiates a string of commands?

A call to a subroutine. A subroutine is a named/labeled set of commands.


What is subroutine?

Subroutine is an instruction sequence in a machine or assembly language program that can be prewritten and referred to as often as needed. Subroutine is used for controlling thing e.g. traffic lights burglar alarms they all use subroutine


Difference between interrupt and subroutine in computer?

interrupt is a signal caused by I/O devices where as subroutine is a part of the program which is excuted rapidly


Why the 16 bit 8085 microprocessor is not possible?

The 8085 was replaced with the 8086/8088. As such, there is no 16 bit version of the 8085.


Difference between 8080 and 8085?

The 8085 has a single +5V power supplyThe 8085 has a multiplexed low order address busThe 8085 has extra single pin interrupts, TRAP, RST7.5, RST6.5, and RST5.5The 8085 has serial I/O pins SID and SODThe 8085 has maskable interrupts and the RIM/SIM instructionThe 8085 includes the functionality of the 8224 clock genereator and 8228 system controllerThe 8085 added several 16 bit operations


When 8085 processor was invented?

The 8085 was introduced by Intel in 1977.