Texas Instruments MSP-FET430 manual Constant Initialization Directives, Listing Control Directives

Page 84
A430 Directive (IAR)
DL

TI to IAR 2.x/3.x Assembler Migration

E.2.4

Constant Initialization Directives

 

Description

 

Asm430 Directive (TI)

A430 Directive (IAR)

Initialize one or more successive bytes or

.byte or .string

DB

text strings

 

 

 

Initialize a 48-bit MSP430 floating-point

.double

1)

constant

 

 

 

Initialize a variable-length field

.field

2)

Initialize a 32-bit MSP430 floating-point

.float

DF 3)

constant

 

 

 

Reserve size bytes in the current section

.space

DS

Initialize one or more text strings

.string

DB

Initialize one or more 16-bit integers

.word

DW

1)The 48-bit MSP430 format is not supported

2)nitialization of bit-field constants (.field) is not supported. Constants must be combined into complete words using DW.

; Asm430 code

; A430 code

.field 5,3

\

 

.field 12,4

->

DW (30<<(4+3))(12<<3)5 ; equals 3941

.field 30,8

/

 

3)The 32-bit IEEE floating-point format, used by the C Compiler, is supported in the A430 assembler.

Additional A430 Directives (IAR)

Initialize one or more 32-bit integers

E.2.5 Listing Control Directives

Description

Asm430 Directive (TI)

A430 Directive (IAR)

Allow false conditional code block listing

.fclist

LSTCND-

Inhibit false conditional code block listing

.fcnolist

LSTCND+

Set the page length of the source listing

.length

PAGSIZ

Set the page width of the source listing

.width

COL

Restart the source listing

.list

LSTOUT+

Stop the source listing

.nolist

LSTOUT-

Allow macro listings and loop blocks

.mlist

LSTEXP+ (macro)

 

 

LSTREP+ (loop blocks)

Inhibit macro listings and loop blocks

.mnolist

LSTEXP- (macro)

 

 

LSTREP- (loop blocks)

Select output listing options

.option

1)

Eject a page in the source listing

.page

PAGE

Allow expanded substitution symbol listing

.sslist

2)

Inhibit expanded substitution symbol

.ssnolist

2)

listing

 

 

Print a title in the listing page header

.title

3)

1)No A430 directive directly corresponds to .option. The individual listing control directives (above) or the command-line option -c (with suboptions) should be used to replace the .option directive.

2)There is no directive that directly corresponds to .sslist/.ssnolist.

3)The title in the listing page header is the source file name.

Additional A430 Directives (IAR)

A430 Directive (IAR)

Allow/inhibit listing of macro definitions

LSTMAC (+/-)

Allow/inhibit multi-line code listing

LSTCOD (+/-)

Allow/inhibit partitioning of listing into pages

LSTPAG (+/-)

Generate cross reference table

LSTXREF (+/-)

E-4

Image 84
Contents Users Guide 2004Important Notice Page July How to Use This Manual Read This FirstAbout This Manual Information About Cautions and Warnings Related Documentation From Texas InstrumentsIf You Need Assistance FCC WarningPage Contents Frequently Asked Questions Figures TablesPage Get Started Now TopicKit Contents, MSP-FET430X110 Kit Contents, MSP-FET430UIF Software InstallationHardware Installation, MSP-FET430X110 Hardware Installation, USB-IF, MSP-FET430UIF Flashing the LEDGet Started Now Important MSP430 Documents on the CD-ROM and WEB Development Flow Using Kickstart OverviewProject Settings OUTPUT-OUTPUT FILE-EXECUTABLEFactory Settings Creating a Project from Scratch Using an Existing IAR V1.x/V2.x Project Stack Management within the .xcl FilesHow to Generate Texas Instrument .TXT and other format Files Overview of Example ProgramsDevelopment Flow Using C-SPY Using BreakpointsBreakpoint Types Using Single Step Using Watch Windows Page Design Considerations for In-Circuit Programming Bootstrap Loader External PowerDesign Considerations for In-Circuit Programming Device Signals PRGS430Design Considerations for In-Circuit Programming Signal connections for MSP-FET430X110 Design Considerations for In-Circuit Programming Jtag Signal Connections Frequently Asked Questions Hardware Program Development Assembler, C-Compiler, Linker Should Done or Not Return Omit Debugging C-SPY OPTIONS-FET DEBUGGER-CONNECTIONSFrequently Asked Questions Figure A-1. Modification to FET Interface module Frequently Asked Questions Frequently Asked Questions Frequently Asked Questions Frequently Asked Questions Frequently Asked Questions Figure B-1. MSP-FET430X110, Schematic HardwareFigure B-1. MSP-FET430X110, Schematic Figure B-2. MSP-FET430X110, PCB Pictorials Figure B-3. MSP-FET430IF FET Interface module, Schematic Figure B-4. MSP-FET430IF FET Interface module, PCB Pictorial Figure B-5. MSP-TS430DW28 Target Socket module, Schematic LED connected to P1.0 Hardware Jumper J7 Jumper J6Open to measure current Hardware Jumper J6 Open to disconnect LED History of changes to MSP-TS430PM64 Target Socket module Figure B-11. MSP-TSPN80 Target Socket module, Schematic Figure B-12. MSP-TSPN80 Target Socket module, PCB Pictorials Figure B-13. MSP-TSPZ100 Target Socket module, Schematic Jumper J6 Figure B-15. MSP-FET430UIF USB Interface schematics Hardware Hardware Hardware Hardware Page FET Specific Menus Emulator EMULATOR-POWER on Reset EMULATOR-GIE on/off EMULATOR-FORCE Single SteppingPin MSP430F44x and MSP430F43x Device Emulation Table D-1. F4xx/80-pin Signal Mapping P1.5/TACLK/ACLK P1.4/TBCLK/SMCLK P1.3/TBOUTH/SVSOUT Page TI to IAR 2.x/3.x Assembler Migration Segment Control Translating Asm430 Assembler Directives to A430 DirectivesIntroduction Character stringsSection Control Directives Description Asm430 Directive TI A430 Directive IARConstant Initialization Directives Listing Control DirectivesConditional-Assembly Directives File Reference DirectivesSymbol Control Directives ReptcMacro Directives Miscellaneous DirectivesPreprocessor Directives Additional A430 Directives IAR Asm430 directive A430 directiveLstpag + #if, #else, #elif Page MSP-FET430UIF Installation Guide Hardware Installation Figure F-1. WinXP Hardware RecognitionFigure F-3. WinXP Driver Location Selection Folder Figure F-4. WinXP Driver Installation Figure F-5. Device Manager