NASM Problem

From: BWA (bwa_at_qbs.com.pl)
Date: 01/13/04

  • Next message: Beth: "Re: Syntax highlighting for assembly language"
    Date: Tue, 13 Jan 2004 17:12:14 +0000 (UTC)
    
    

    Hello.

    I have small problem while compiling with NASM.

    In sorce i have:

    [BITS 32]
    ..
    push ebp
    mov ebp,esp
    ..

    and nasm generates in binary file:
    55 ; push bp

    89 E5 ; mov bp,esp

    only when i change
    [BITS 32] on [BITS 16]

    it generatas good bytecodes:

    66 55 ; push ebp

    what is the problem whith it?

    greetings
    BWA


  • Next message: Beth: "Re: Syntax highlighting for assembly language"

    Relevant Pages

    • Re: NASM Problem
      ... > I have small problem while compiling with NASM. ... > In sorce i have: ... was that supposed to be "mov bp,sp" that you meant to type? ...
      (comp.lang.asm.x86)
    • Re: NASM Problem
      ... >I have small problem while compiling with NASM. ... >mov ebp,esp ... >and nasm generates in binary file: ...
      (comp.lang.asm.x86)
    • Re: NASM Problem
      ... > and nasm generates in binary file: ... > it generatas good bytecodes: ... What NASM is doing is correct. ...
      (comp.lang.asm.x86)
    • Re: which book to start with...?
      ... mov eax, 4 ... just installed nasm 16 bit and 32 bit bins under dosemu. ... .bss wont accept initialisations while .data will but no garantee for modification at runtime. ... Section .bss is nominally "uninitialized" data, but is in fact cleard to zero. ...
      (alt.lang.asm)
    • Re: Why is my nasm program killing itself?
      ... Nasm is like a sewer, Phil - what you get out of it depends on what you put in. ... If you pour source code suitable for a dos .com file into Nasm, you'll get a dos .com file out. ... orig equ $08048000 ... mov byte,49;working once ...
      (alt.lang.asm)