Re: Question about jumps
- From: Markus Pitha <ngNOSPAM@xxxxxxxxxx>
- Date: Sun, 27 Aug 2006 13:37:45 +0200
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
.
- References:
- Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Frank Kotler
- Re: Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Frank Kotler
- Question about jumps
- Prev by Date: Re: Question about jumps
- Next by Date: Re: Question about jumps
- Previous by thread: Re: Question about jumps
- Next by thread: Re: Question about jumps
- Index(es):