answersLogoWhite

0

A subroutine call generates additional work for the hardware to perform when activated. A macro in general does not call a subroutine but rather puts the commands in-line inside the loop, resulting in a faster program.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

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.


How does a function differ from a procedure?

In closed subroutine a subroutine stored outside the main routine can be connected to it by linkages at one or more locations. whereas in open subroutine is a set of computer instructions i.e. a subroutine that performs some particular program and insert them directly each and every time that particular function is required


What is a mini program inside a main computer program?

It is called a thread. It is self independent program that does not depend on the other part of the program after it has been spawned.


What command statement terminates the qbasic program?

END '...END of program/halt program code execution. *NOTE*: There should be only 'one' END statement written inside of a QBASIC program. I have seen example code where they use multiple END statements; this is wrong!


What is a global declaration?

A global declaration of a function or variable is a declaration that is at the global scope of the program, not inside another function. This means that the name will be visible within all functions in the program.

Related Questions

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.


Is it safe to remove downloaded program files from your computer?

Its not good to remove the whole folder,but you can remove some items inside it,but i would recommend not to touch it


How does a function differ from a procedure?

In closed subroutine a subroutine stored outside the main routine can be connected to it by linkages at one or more locations. whereas in open subroutine is a set of computer instructions i.e. a subroutine that performs some particular program and insert them directly each and every time that particular function is required


How do you stop rain in minecraft?

you cant without an outside program or mod. i recommend going inside when it rains. or you may try /toggeldownfall when ever i do it it does work just its takes a few seconds. okay :D


What kind of program is Inside Edition?

Inside Edition is a television program. Inside Edition lasts thirty minutes, and covers the latest news, exclusives, headlines, investigative reports and entertainment news.


What is a mini program inside a main computer program?

It is called a thread. It is self independent program that does not depend on the other part of the program after it has been spawned.


Do hens have a uterus?

No, they do not need a uterus. The chicks develop inside of the egg instead of inside of their body.


Will an egg fit inside a shoe?

Yes, but I recommend you don't put your foot in it :)


What usually occurs inside a material instead of at the surface?

it absorption


What usually occurs inside a material instead of at a surface?

it absorption


Why Intel 8080 and 8008 microprocessors are called 8080 and 8008?

n the calculator application, each user key stroke caused thousands of CPU instructions to be executed from ROM. We wrote many subroutines which operated on 16-digit numbers stored in RAM. As an example, a 10-byte loop for digit serial addition took about 80 µs/digit. A major change was needed for subroutine linkage. Normally, as part of a minicomputer [12] subroutine call instruction execution (PDP-8, HP 2114) the calling program's return address would be saved at the top of the subroutine in RAM. Since MCS-4 routines were in ROM (can't write into it) we could not use this method. Instead. we used, a push down stack inside the CPU for saving up to three return addresses. This was not a new idea. Stacks had been used in Burrough's computers and the IBM 1620, which Ted Hoff and his fellow had programmed -they used their experience with large scale computers. Ultimately this limited depth of four levels n thus 4004 arrived. 8008 named so because it has double the marketing of 4004(4004+4004).


What is the c language used in microprocessor?

The program used inside microprocessors is microcode,the program what microprocessors execute is machine code.