Shouldn't be more than the amount of NOP. When you call a macro it just paste the macro code, but use another name.
While it's not the best code efficient, You could also use some self expanding macro by adding an argument, so if you need 2,3 or 10 NOP, it will do it for you automatically. Not sure if you need it here.
something like
If you use @ NOP?C 1 it will paste 1 NOP and so on.Code:<font color="#000080">ASM NOP?C macro Cin local a a=0 while a<Cin nop a++=1 endw endm ENDASM </font>
Last edited by mister_e; - 1st April 2008 at 17:12.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
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.
Bookmarks