So, does that little @ NOP?C trick work any other little way that I'm not knowing of yet with anything else?
Well i don't know.. i'm not in your own short 
When you call a Macro, the compiler just copy/paste the whole macro code where you called the macro.
let see...
Code:
OneMacro macro
MOVE?CT 1,PORTA,0
MOVE?BB _MyVar,_YourVar
endm
EACH TIME you call the macro like this...
This will paste
Code:
MOVE?CT 1,PORTA,0
MOVE?BB _MyVar,_YourVar
so...
Code:
@ OneMacro
@ OneMacro
will obviously generate
Code:
MOVE?CT 1,PORTA,0
MOVE?BB _MyVar,_YourVar
MOVE?CT 1,PORTA,0
MOVE?BB _MyVar,_YourVar
Hence why we often suggest to reduce your macro size.
in NOP?C, The Conditional While (not sure if conditional or MPASM directive.. but anyway), just copy the amount of NOP you asked in the argument parameter
NOP?C 5
will juste paste
@ NOP
@ NOP
@ NOP
@ NOP
@ NOP
that's it. No code overhead, no nothing.... self expanding... or expandOnDemand ... huh?
Bookmarks