can anyone give me a comprehensive description about ORG directive?
When and why is it used in assembly written applications?
Using Nasm on x86 or AMD64.
can anyone give me a comprehensive description about ORG directive?
When and why is it used in assembly written applications?
Using Nasm on x86 or AMD64.
ORG means origin ORG is used for specific addressing in microprocessor and microcontroller programming.
For example:
.org 0000H
This means we want to start our program from the 0000H address.
ORG xxxx ORG is not an assembly language instruction; it is an assembler directive instruction. It tells the assembler that the instruction from here onwards should be placed at location starting xxxx