Results 1 to 5 of 5

Thread: about NASM

  1. #1
    0x400
    Guest

    about NASM

    hi all,

    my question is:
    is there any options in NASM allowing to define start address when compiling raw 32 bit code (no segments)?

    i use NASM as a code generator for snippets for win32 executables (and dlls) and everything goes on perfect, BUT in order to make JMPs and CALLs with correct addresses i must use TIMES directive e. g. [TIMES 0040xxxx 0x00] which makes NASM to generate huge (about 4 Mb) output file, from which i use only couple hundert bytes - it takes some time to do this.
    maybe i should reverse NASM add this feature? :P

    thnx
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    The Owl
    Guest
    if i understood your question properly, then ORG is your friend. and the manual as usual ;-).
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    0x400
    Guest
    i have tried it - ORG is not a friend ov mine, coz it works only with 2 byte values (at least i could not get it working w 4 byte values)
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  4. #4
    The Owl
    Guest
    i have tried it - ORG is not a friend ov mine, coz it works only with 2 byte values (at least i could not get it working w 4 byte values)
    well, meet BITS too ;-).
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  5. #5
    0x400
    Guest
    me lame - i put that ORG before [BITS 32], but i should put after

    thnx
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. Offset Independant RadASM with NASM included
    By OHPen in forum Tools of Our Trade (TOT) Messageboard
    Replies: 8
    Last Post: October 9th, 2011, 03:26
  2. NASM - GUI related question
    By OHPen in forum Advanced Reversing and Programming
    Replies: 10
    Last Post: January 31st, 2008, 08:11
  3. Need help using Ollydbg and NASM
    By pityocamptes in forum OllyDbg Support Forums
    Replies: 1
    Last Post: November 29th, 2004, 07:33
  4. DLL in NASM
    By AmAdEuS in forum The Newbie Forum
    Replies: 5
    Last Post: June 7th, 2004, 10:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •