Closed bkrug closed 2 years ago
I'm assembling using this command: xas99.py 'myfile.asm' -S -R -L 'myfile.lst'
Thanks for your report! At first I couldn't reproduce it, but then I found out that you must be assembling a relocatable program.
You could argue that comparing a relocatable address to something is not particular useful, since the relocatable address ($ in your case) might become something else altogether when the program is loaded into memory.
But I think it is still useful, and made a fix for it. Unfortunately, I cannot push it right now, since I'm working on the IDE plugins, but you should get it sometime next week. I'll let you know when I push it.
Thanks, I'll look out for it.
And you're right I'm working with relocatable addresses, but am still interested in addresses relative to the beginning of the file. I'll probably change my original condition to:
.ifne $, >3E
or
.ifne >6000+$, >603E
Your fix has been release with version 3.3.0. Please check if it works for you now, and reopen this ticket if not.
Regarding your two comparisons, they're equivalent, but I'd prefer the simpler one. :-)
Thanks for your help!
I started using 3.3.1, and the comparison with a relocatable address is now a warning instead of throwing an exception. My program assembles correctly.
I now have second thoughts about this warning. I think it should be fine, say, to compare the program size again an upper limit for relocatable programs. I'll remove the warning again in the next release.
Removed with 3.3.2.
Thank you for creating this extremely useful utility.
My assembly code contains the following code:
When I assemble my code I get the following stack trace:
I am using:
Thanks!