Page 100 - DCAP507_SYSTEM_SOFTWARE
P. 100

System Software




                    Notes

                                      Task  What does macro name and parameters define?

                                   Macro Invocation

                                      A macro invocation statement (a macro call) provides the name of the macroinstruction
                                       being summoned and the arguments in mounting the macro.
                                      The processes of macro invocation and subroutine call are pretty different.
                                           Statements of the macro body are expanded every time the macro is invoked.

                                           Statements of the subroutine emerge only one; regardless of how many times the
                                            subroutine is called.




                                     Notes  The  macro invocation  statements considered as comments and  the  statements
                                     produced from macro expansion will be assembled as although they had been written by
                                     the programmer.










































                                   Macro Expansion

                                      Each macro invocation statement will be expanded into the statements that produces the
                                       body of the macro.




          94                                LOVELY PROFESSIONAL UNIVERSITY
   95   96   97   98   99   100   101   102   103   104   105