??? 06/23/05 04:40 Modified: 06/23/05 04:43 Read: times Msg Score: +2 +2 Good Answer/Helpful |
#95669 - Macros Defined Responding to: ???'s previous message |
A MACRO is a abbrevation for a sequence of instrucions, logically sequenced to perform a operation.
When a corresponding language processor sees such a definition in the program, it assocites the sequence with the macro name and when it sees the abbrevated name it Replaces the whloe sequence whith entire sequence. this process is called Expension of Macros. this all happens at compile time but not at run time like subroutine calls.during the expansion MACRO definition disappears from the source code. subrotine and macros: "When ever a Macro name in the mnemonic field, assembly statment leads to its expansion it while when a subroutine name is seen it leads to its execution" Using MACROs the 'instruction sequence' is repeated for every refference to Macro name while subroutine has only one copy of such a sequence which is reffred when ever a call is made when the program actualy runs. Macros are efficient in terms of speed as no extra processor cycles will be required to invoke the 'sequence' as the whole instruction sequence is inline. Abhishek |
Topic | Author | Date |
How to use marco in assembly? | 01/01/70 00:00 | |
first you must spell it macro :) | 01/01/70 00:00 | |
first you must spell it macro :) | 01/01/70 00:00 | |
Not So Fast! | 01/01/70 00:00 | |
Macro Correction | 01/01/70 00:00 | |
improvement | 01/01/70 00:00 | |
to be more precise | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
I did not say... | 01/01/70 00:00 | |
Macros Defined | 01/01/70 00:00 | |
Macro vs Call | 01/01/70 00:00 | |
Macro Correction | 01/01/70 00:00 | |
Polo!![]() | 01/01/70 00:00 |