| ??? 06/22/05 20:44 Read: times |
#95644 - How to use marco in assembly? |
Hello all,
I've done some 8051 assembly programming; however using macros in Assembly is still an alien part for me. I've read Keil Assembler manual, tutorials about using marco and searched in this forum but I still don't quite understand how to use marco in assembly language such as how to write or invoke marcos. This is an example code I wrote using Keil A51 Version 7.10 Main: setb P1.0 ; Led on call Wait ; clr P1.0 ; Led off call Wait ; jmp Main ; Wait: mov r0,#00h ; mov r1,#00h ; djnz r1,$ ; djnz r0,$-4 ; ret ; end ; Could you show me how to use marco in this case instead of subroutine. Any inputs would be greatly appreciated. Best regards, T.L |
| 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 |



