Re: Question about jumps



Frank Kotler wrote:
The "$ - msg"
expression needs to immediately follow what it's calculating the length
of.

I'd better not ask why this is so :)

The "write" function does *not* terminate on a zero - that's more of
a "C thing" - but writes the full length you say - whatever it might be.
If it *did* terminate on the zero, you wouldn't get the linefeed (10).

I also saw that I don't need the 0 and the 10 termination together. It
also works with 10 itself, so "errmsg db "eax is not 1.", 10" works as
good as ...,10, 0 or ...0, 10.

Regards,
Markus

.