Answer to Question #199350 in Computer Networks for Baudouin

Question #199350

There are assemblers that are capable of handling macro commands.

 Please explain in your own words what a macro command is and provide an example.

When would you program a macro and when would you program a subprogram (also called functions, subroutines, methods)?


1
Expert's answer
2021-05-27T07:55:18-0400

A series of instructions and commands are group together as a single line command to accomplish a task automatically is called macro command.

float num = square(7); is an example of the macro command.

When you need to perform a task on a regular basis or repeatedly a macro command is used to automate the task, while when you need to write complex behavioral models subprogram is used to divide the codes into sections, each section dealing with relative self-contained part of the behavior.




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS