NASM Forum > Programming with NASM

ORG Instruction

(1/1)

nobody:
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

nobody:
> 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.

Navigation

[0] Message Index

Go to full version