| ??? 06/23/05 03:40 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#95667 - Macro Correction Responding to: ???'s previous message |
so your case would be
M_DELAY MACRO mov r0,#00h ; mov r1,#00h ; djnz r1,$ ; djnz r0,$-4 ; Main: setb P1.0 ; Led on M_DELAY ; clr P1.0 ; Led off M_DELAY ; jmp Main ; end The macro definition needs to be terminated with the pseudo-op ENDM on the line immediately below the "djnz r0,$-4". Michael Karas |
| 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 |



