Re: Question about jumps
- From: Markus Pitha <ngNOSPAM@xxxxxxxxxx>
- Date: Sun, 27 Aug 2006 13:47:41 +0200
Herbert Kleebauer wrote:
There is no need to put read only data in the data segment,
it is best placed in the code segment.
Ok, I'm still not absolutely sure about the differences between the
segments yet.
C uses NULL terminated strings, bur we are in assembly (and here we
decide ourselves how to terminate an string). Redirect the output to a
file and look at the hex dump of the file, then you will see, the 0 is
written as part of the string to stdout.
I see. I thought it's the same in assembly. So the last character of the
$-equ string tells assembler the end of the string, is that right?
.
- Follow-Ups:
- Re: Question about jumps
- From: Frank Kotler
- Re: Question about jumps
- From: Herbert Kleebauer
- Re: Question about jumps
- References:
- Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Herbert Kleebauer
- Re: Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Herbert Kleebauer
- 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):
Relevant Pages
|