0x400
November 11th, 2000, 04:44
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
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
