Download Assembler/Linker/Librarian User's Guide
Transcript
ASSEMBLER/LINKER/LIBRARIAN USER’S GUIDE Chapter 2. Assembler Interfaces 2.1 INTRODUCTION There are several interfaces with which you may use the MPASM assembler, depending on the assembler version. These interfaces are discussed here. When MPLAB IDE is installed, the windowed version of the MPASM assembler (mpasmwin.exe) is also installed. In addition, the windowed version and the command-line version (mpasm.exe) of the assembler may be obtained with the regular and demo version of the MPLAB C18 C compiler. Topics covered in this chapter: • • • • • 2.2 MPLAB IDE Interface Windows Interface Command Shell Interface Command Line Interface Troubleshooting MPLAB IDE INTERFACE The MPASM assembler is most commonly used with the MPLINK linker in an MPLAB IDE project to generate relocatable code. For more information on this use, see “PICmicro Language Tools and MPLAB IDE”. The assembler may also be used in MPLAB IDE to generate absolute code (without the use of the MPLINK linker or MPLAB IDE project) by using the QuickBuild feature. To do this: 1. From the MPLAB IDE menu bar, select Project>Set Language Tool Locations to open a dialog to set/check language tool executable location. 2. In the dialog, under Registered Tools, select “Microchip MPASM Toolsuite”. Click the “+” to expand. 3. Select Executables. Click the “+” to expand. 4. Select MPASM Assembler (mpasmwin.exe). Under Location, a path to the mpasmwin.exe file should be displayed. If no path is displayed, enter one or browse to the location of this file. By default, it is located at: C:\Program Files\Microchip\MPASM Suite\mpasmwin.exe 5. Click OK. 6. From the MPLAB IDE menu bar, select Project>Quickbuild to assemble the specified asm file using the MPASM assembler. © 2005 Microchip Technology Inc. DS33014J-page 31