No, I'm not Superman, but I did stay at a Holiday Inn Express last night!
Sometime knowing a bit of ASM and MPASM directive is handy. I learned it through Darrel's codeS and postS... it's all it's fault![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Ya, no kidding, and of course, you're absolutely right about the 9 Tcyc.
A guy should never post 'from the hip', but I do it anyways...
And this little tidbit right here could be the solution to one of my ongoing 'issues' on another project...If you use @ NOP?C 1 it will paste 1 NOP and so on.
Great! But you where wrong about the 9Tcy...Read previous post again... or build an ASM project then watch the Program Memory window.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
And yet again, that's what I get for posting off the hip... Since when is a macro...a subroutine? Must forgive my blatent stupidity...the house payment is due today
So, does that little @ NOP?C trick work any other little way that I'm not knowing of yet with anything else?
BTW...Self-Expanding Macro is my new buzzword...
Well i don't know.. i'm not in your own shortSo, does that little @ NOP?C trick work any other little way that I'm not knowing of yet with anything else?
When you call a Macro, the compiler just copy/paste the whole macro code where you called the macro.
let see...
EACH TIME you call the macro like this...Code:OneMacro macro MOVE?CT 1,PORTA,0 MOVE?BB _MyVar,_YourVar endm
This will pasteCode:@ OneMacro
so...Code:MOVE?CT 1,PORTA,0 MOVE?BB _MyVar,_YourVar
will obviously generateCode:@ OneMacro @ OneMacro
Hence why we often suggest to reduce your macro size.Code:MOVE?CT 1,PORTA,0 MOVE?BB _MyVar,_YourVar MOVE?CT 1,PORTA,0 MOVE?BB _MyVar,_YourVar
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?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks