times

Peter Johnson peter at tortall.net
Sat Oct 29 23:17:05 PDT 2005


On Fri, 28 Oct 2005 SMarF at gmx.de wrote:
>
> Perhaps the following problem is interesting to you:
> yasm (even the latest snapshot) stops on
>  times 01FEh-($-$$) db 0
> if the current position is beyond 510 (nasm produced an error in this case,
> yasm writes megabytes of zeros).
>
> I tried to use
>  %if ($-$$) > 510
>    %error code size exceeded
>  %endif
> but yasm says "$ not supported". Is there a workaround?
>

Stefan,

This is fixed in r1296 (the times usage).  Yasm will now report "multiple 
is negative" for the error case you describe.  Thanks for the bug report!

There's no workaround for $ in macros due to yasm's design.

Thanks,
Peter


More information about the yasm-devel mailing list