Copyright (C) 2000-2012 |
GNU Info (nasm.info)Section 6.1.16.1.1. `ORG': Binary File Program Origin ---------------------------------------- The `bin' format provides an additional directive to the list given in Note: Chapter 5: `ORG'. The function of the `ORG' directive is to specify the origin address which NASM will assume the program begins at when it is loaded into memory. For example, the following code will generate the longword `0x00000104': org 0x100 dd label label: Unlike the `ORG' directive provided by MASM-compatible assemblers, which allows you to jump around in the object file and overwrite code you have already generated, NASM's `ORG' does exactly what the directive says: _origin_. Its sole function is to specify one offset which is added to all internal address references within the section; it does not permit any of the trickery that MASM's version does. See *Note Section 10.1.3:: for further comments. automatically generated by info2www version 1.2.2.9 |