Re: [Sdcc-user] ASxxxx assembler looping macro

2020-07-30 Thread Basil Hussain
I figured something out. I think my problems were mostly down to the fact I was using a literal value as argument to the macro (e.g. "foo 6"). The assembler is not creating a new variable 'n' inside the macro, it is just substituting the argument in place of 'n'. So, of course, where there is "

[Sdcc-user] ASxxxx assembler looping macro

2020-07-28 Thread Basil Hussain
Hi all, I'm tearing my hair out trying to figure out how to do something with AS assembler macros which ostensibly seems so damn simple, yet I am having no success figuring out anything that works. All I want to do is have a macro that will repeat a block of assembly code a number of tim