beautypg.com

Texas Instruments MSP-FET430 User Manual

Page 88

background image

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

E-8

Additional A430 Directives (IAR)

A430 Directive (IAR)

Assign a value to a preprocessor symbol

#define

Undefine a preprocessor symbol

#undef

Conditional assembly

#if, #else, #elif

Assemble if a preprocessor symbol is defined (not defined)

#ifdef, #ifndef

End a #if, #ifdef or #ifndef block

#endif

Includes a file

#include

Generate an error

#error

E.2.12

Alphabetical Listing and Cross Reference of Asm430 Directives

Asm430 directive

A430 directive

Asm430 directive

A430 directive

.align See

Section control directives .loop

REPT

.asg

SET or VAR or ASSIGN

.macro

MACRO

.break See

Conditional-Assembly Directives .mexit

EXITM

.bss See

Symbol Control Directives

.mlib See

File Referencing Directives

.byte or .string

DB

.mlist

LSTEXP+ (macro)

.copy or .include

#include or $

LSTREP+ (loop blocks)

.data RSEG

.mmsg

#message

(XXXXXX)

.def

PUBLIC or EXPORT

.mnolist

LSTEXP- (macro)

.double

Not supported

LSTREP- (loop blocks)

.else ELSE

.newblock

See

Symbol Control Directives

.elseif ELSEIF

.nolist LSTOUT-

.emsg #error

.option See

Listing Control Directives

.end END

.page

PAGE

.endif

ENDIF

.ref

EXTERN or IMPORT

.endloop ENDR

.sect

RSEG

.endm ENDM

.setsect

See

Miscellaneous Directives

.endstruct See

Symbol Control Directives .setsym See

Miscellaneous Directives

.equ or .set

EQU or =

.space

DS

.eval

SET or VAR or ASSIGN

.sslist

Not supported

.even EVEN

.ssnolist

Not

supported

.fclist LSTCND-

.string DB

.fcnolist LSTCND+

.struct See

Symbol Control Directives

.field See

Constant Initialization Directives .tag

See

Symbol Control Directives

.float See

Constant Initialization Directives .text

RSEG

.global See

File Referencing Directives

.title See

Listing Control Directives

.if IF

.usect

See

Symbol Control Directives

.label See

Miscellaneous Directives .width

COL

.length PAGSIZ

.wmsg See

Miscellaneous Directives

.list LSTOUT+

.word

DW

E.2.13

Additional A430 Directives (IAR)

Conditional-Assembly Directives

Constant Initialization Directives

Macro Directives

REPTC DL

LOCAL

REPTI

File Referencing Directives

Miscellaneous Directives

Symbol Control Directives

NAME or PROGRAM

RADIX

DEFINE

MODULE or LIBRARY

CASEON

SFRB

ENDMOD CASEOFF SFRW

Listing Control Directives

Preprocessor Directives

Symbol Control Directives

LSTMAC (+/-)

#define

ASEG

LSTCOD (+/-)

#undef

RSEG