Author Topic: ORG Instruction  (Read 9732 times)

nobody

  • Guest
ORG Instruction
« 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

nobody

  • Guest
Re: ORG Instruction
« Reply #1 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.