Re: Why doesn't this NASM program work? It loops endlessly

spamtrap_at_crayne.org
Date: 03/27/05


Date: Sun, 27 Mar 2005 16:44:49 +0000 (UTC)

Lamp <spamtrap@crayne.org> wrote:

>>
>> Have you looked at my tutorial? It uses NASM and has lots of examples.
>>
>> http://www.drpaulcarter.com/pcasm

> I have started to read it, it is good, but it assumes one already has
> some knowledge in Assembler. You talk about segments, bss, text, etc,
> for example, but you don't explain what they are, if they are different
> from the MASM segments. You have spent for this topic only few lines. I
> need to understand the organization of an Asm program in Linux, the
> logic under it. A good book, but too Masm specific, was "Assembler
> Inside Out, Mc Graw-Hill".

> Francesco

I would beg to differ with you there. It assumes that one has
experience with C, but not assembly.

-- 
Paul Carter 


Relevant Pages

  • Re: Forth for Mac OS X Leopard (Intel) - what are the options?
    ... linker can put them at whatever address it wants. ... assembler puts code and data in _sections_ (relocation information is ... and length) to a chunk of virtual memory. ... sections and segments are totally ...
    (comp.lang.forth)
  • Re: Optimizing Static Variable Layout
    ... Relying on being able to reopen segments and have the variables appear in the order declared is absolutely guaranteed. ... Is it possible to create an assembler that would reorder them randomly? ... For this to be an assembler issue and not a linker issue, these data items within identically named segments must be in the same file or within a file combined with included files. ... LINK processes modules in the order it receives them on the command line, so if you want to specify *segment* ordering, you create a dummy segment declaration "include file" and use the default .SEQ ordering of segments. ...
    (comp.lang.asm.x86)
  • Re: Why doesnt this NASM program work? It loops endlessly
    ... It uses NASM and has lots of examples. ... from the MASM segments. ... A good book, but too Masm specific, was "Assembler ... Francesco ...
    (comp.lang.asm.x86)
  • Re: CS and IP register
    ... > include code here and there to increase the CS register and adjust IP ... The assembler usually keeps track of what mode to use by the Memory ... Segment Directives and Memory Model and the assembler itself as well ... the only time you worry about segments is if you need to ...
    (comp.lang.asm.x86)
  • Re: Optimizing Static Variable Layout
    ... about the organization of different declaration sections (i.e., segments) by the assembler. ... things appear in memory. ...
    (comp.lang.asm.x86)