Quote:
Originally Posted by hop
Is there a way to use ASSERT directives with the vasm motorola syntax module?
|
It could be added in a minute. Probably 2 or 3 lines of C code. The reason why it's not there is that I have never seen an Assert directive in common Amiga assemblers, like Devpac, etc., and I don't like to introduce new vasm-only directives, which make source texts incompatible.
With some conditional assembly you could easily reach the same effect:
Code:
ifne (*-spritePalette)%2
fail odd address
endif
EDIT: I was too fast. This is a bad workaround to check label differences in an optimizing assembler. See below.