ORG - Set Program Origin
Syntax
[<label>] org <expr>
Description
Set the program origin for subsequent code at the address defined in
<expr>. If<label>is specified, it will be given the value of the<expr>. If noorgis specified, code generation will begin at address zero.For PIC18CXXX devices, only even
<expr>values are allowed.When generating an object file, the
orgdirective is interpreted as introducing an absoluteCODEsection with an internally generated name. For example:L1: org 0x200
is interpreted as:
.scnname CODE 0x200
L1:
where
.scnnameis generated by the assembler, and will be distinct from every name previously generated in this context.Example
int_1 org 0x20
; Vector 20 code goes here
int_2 org int_1+0x10
; Vector 30 code goes here
See Also
|
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |
![]()
|

