Microchip Technology DM164130-9 User Manual

Page of 101
PIC® MCU Architecture
 2012 Microchip Technology Inc.
DS41628B-page 37
2.17.3
Org (addr)
Org tells the assembler where to start generating code at addr. Normally, the lessons 
would start code at address 0x0000. 
2.17.4
End
End tells the assembler to stop assembling. There must be one at the end of the 
program. It does not necessarily have to be at the end of the file, but nothing after the 
end statement will be assembled.
2.17.5
Errorlevel 
This is used to suppress warnings that the assembler may give. It is vital that the 
programmer understand the message before hiding them from the output window.
EXAMPLE 2-6: 
2.17.6
#include
EXAMPLE 2-7: 
The specified file is read in as source code. The effect is the same as if the entire text 
of the included file were inserted into the file at the location of the include statement. 
The angled brackets (< >) indicate that the file can be found in the library folder of the 
assembler. Double quotes ( “ “) indicate that the include file is in the current working 
directory. The exact locations can be changed in the IDE. 
            “MESSAGE 302 – Operand Not in Bank 0, check to ensure bank bits are correct” 
include “include_file”
#include <include_file>