Re: Question about jumps



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?

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

errmsg db "eax is not 1.", 0, 10
succlen equ $-successmsg
errlen equ $-errmsg

global _start

_start:
mov eax, 1
.



Relevant Pages

  • Re: Question about jumps
    ... Markus Pitha wrote: ... the program executes both the if branch and the else branch, ... succlen equ $-successmsg ... errlen equ $-errmsg ...
    (alt.lang.asm)
  • Re: Question about jumps
    ... Frank already gave you the answer, ... Which assembler sets the data segment executable? ... terminates the string and 10 is a newline, ...
    (alt.lang.asm)