What does ORG Assembly Instruction do?

前端 未结 5 1513
花落未央
花落未央 2021-02-01 01:12

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.

5条回答
  •  野性不改
    2021-02-01 01:41

    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.

提交回复
热议问题