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)?
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.
Comments
Leave a comment