answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why may you recommend the use of a macro instead of a subroutine inside a loop in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


What is the c language used in microprocessor?

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


What is a small program that can be written inside a file?

Macro in Microsoft Word