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

Models: MSP-FET430

1 95
Download 95 pages 60.63 Kb
Page 84
Image 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

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