Beruflich Dokumente
Kultur Dokumente
Assembler Operation
The MPASM assembler can be used in two ways:
To generate relocatable code that can be linked with other separately assembled or compiled modules.
When a source file is assembled in this manner, all variables and routines used in the source file must be
defined within that source file, or in files that have been explicitly included by that source file. If assembly
proceeds without errors, a hex file will be generated, containing the executable machine code for the target
device. This file can then be used with a debugger to test code execution or with a device programmer to
program the microcontroller.
Related modules can be grouped and stored together in a library using Microchip's MPLIB librarian. Required
libraries can be specified at link time, and only the routines that are needed will be included in the final
executable.
mk:@MSITStore:C:\Program%20Files\Microchip\MPASM%20Suite\hlpMPASMAsm.chm... 5/8/2009
Assembler Operation Page 2 of 2
Refer to Relocatable Objects for more information on the differences between absolute and relocatable object
assembly.
mk:@MSITStore:C:\Program%20Files\Microchip\MPASM%20Suite\hlpMPASMAsm.chm... 5/8/2009