Re: Question about jumps



Am Sun, 27 Aug 2006 12:49:37 +0200 schrieb Herbert Kleebauer:

Markus Pitha wrote:

Frank already gave you the answer, but a few questions:


segment .data

Is your program (and not only the data) really stored and executed
in the data segment? Which assembler sets the data segment executable?

No, it was my mistake. The program is stored in the .text segment. I just
wanted to delete all the unnecessary code and obviously I deleted too
much.

successmsg db "eax is set to 1.", 0, 10
^
Which purpose has the 0?

0 terminates the string and 10 is a newline, isn't it?
.



Relevant Pages

  • Re: Question about jumps
    ... Markus Pitha wrote: ... Frank already gave you the answer, ... Which assembler sets the data segment executable? ... succlen equ $-successmsg ...
    (alt.lang.asm)
  • Re: Is it possible sentence?
    ... >>I have a question regarding to string variable. ... then it's probably in the data segment. ... since it ceases to be strictly conforming ... processor can do to it in normal execution. ...
    (comp.lang.c)
  • Re: Question about jumps
    ... Which assembler sets the data segment executable? ... terminates the string and 10 is a newline, ... here we decide ourselves how to terminate an string). ...
    (alt.lang.asm)
  • Re: Another dynamic memory doubt
    ... jacob navia wrote: ... but rather makes ptr point to the start of a string ... All C implementations have a data segment. ...
    (comp.lang.c)