View Single Post
Old 20 April 2022, 20:10   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by hop View Post
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.

Last edited by phx; 20 April 2022 at 20:39. Reason: Bad workaround
phx is offline  
 
Page generated in 0.05904 seconds with 11 queries