Download Assembler/Linker/Librarian User's Guide

Transcript
ASSEMBLER/LINKER/LIBRARIAN
USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 1
PIC1X MCU Language Tools and MPLAB IDE ............................................................ 9
Part 1 – MPASM Assembler
Chapter 1. MPASM Assembler Overview
1.1 Introduction ................................................................................................... 23
1.2 MPASM Assembler Defined ......................................................................... 23
1.3 How MPASM Assembler Helps You ............................................................ 23
1.4 Assembler Migration Path ............................................................................ 23
1.5 Assembler Compatibility Issues ................................................................... 24
1.6 Assembler Operation .................................................................................... 24
1.7 Assembler Input/Output Files ....................................................................... 26
Chapter 2. Assembler Interfaces
2.1 Introduction ................................................................................................... 33
2.2 MPLAB IDE Interface ................................................................................... 33
2.3 Windows Interface ........................................................................................ 34
2.4 Command Line Interface .............................................................................. 35
Chapter 3. Expression Syntax and Operation
3.1 Introduction ................................................................................................... 37
3.2 Text Strings .................................................................................................. 37
3.3 Reserved Words and Section Names .......................................................... 39
3.4 Numeric Constants and Radix ...................................................................... 39
3.5 Arithmetic Operators and Precedence ......................................................... 40
Chapter 4. Directives
4.1 Introduction ................................................................................................... 43
4.2 Directives by Type ........................................................................................ 43
4.3 access_ovr - Begin an Object File Overlay Section in Access
RAM (PIC18 MCUs) ............................................................................... 46
4.4 __badram - Identify Unimplemented RAM ................................................. 46
4.5 __badrom - Identify Unimplemented ROM ................................................ 47
4.6 bankisel - Generate Indirect Bank Selecting Code
(PIC12/16 MCUs) ................................................................................... 48
4.7 banksel - Generate Bank Selecting Code ................................................ 50
4.8 cblock - Define a Block of Constants ........................................................ 52
4.9 code - Begin an Object File Code Section .................................................. 54
4.10 code_pack - Begin an Object File Packed Code Section
(PIC18 MCUs) ........................................................................................ 55
© 2009 Microchip Technology Inc.
DS33014K-page iii