NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: nobody on June 26, 2008, 07:16:51 PM

Title: ORG Instruction
Post by: nobody on June 26, 2008, 07:16:51 PM
Hello,

I want to assemble the following code to a binary file:


org 0 // I don't know this value yet

start:

jmp start


but I don't know the start address (ORG) at this time, since I will use this code in a C++ Application.

Is there any program that allows me to change the start address by patching the whole file?

Thanks in advance
Title: Re: ORG Instruction
Post by: nobody on July 02, 2008, 08:36:02 AM
> org 0 // I don't know this value yet

:-D

> address (ORG) at this time, since I will use this code in a C++

C++ calling conventions ... or drop C++ completely ;-)

> Is there any program that allows me to change the start
> address by patching the whole file?

Linker ?

PS: "org" is a directive, not an instruction.