Download MPASM Assembler

Transcript
Assembler Control – Placing Code
ORG: Set absolute program origin
<label> org <expr>
 Sets the value of the assembler’s location counter
 For PIC18 <expr> must be an even number
 The location counter value at assembly time
is equivalent to the PC value at run time
 Cannot be used when generating a
relocatable object file
 Use CODE, UDATA, UDATA_ACS, IDATA
directives instead (see later)
David Rye :: MTRX 3700
org
0x000008
goto HighISR
; HighISR replaced by address
HighISR:
; High priority ISR goes here
…
RETFIE
MPASM Assembler :: Slide 26 of 78