TI to IAR 2.x/3.x Assembler Migration
E-7
E.2.9 Macro
Directives
Description
Asm430 Directive (TI)
A430 Directive (IAR)
Define a macro
.macro
MACRO
Exit prematurely from a macro
.mexit
EXITM
End macro definition
.endm
ENDM
Additional A430 Directives (IAR)
A430 Directive (IAR)
Create symbol, local to a macro
LOCAL 1)
1) In Asm430 local symbols are suffixed by a question mark (?).
E.2.10 Miscellaneous
Directives
Description
Asm430 Directive (TI)
A430 Directive (IAR)
Send user-defined error messages to the
output device
.emsg #error
Send user-defined messages to the output
device
.mmsg #message
1)
Send user-defined warning messages to
the output device
.wmsg 2)
Define a load address label
.label
3)
Directive produced by absolute lister
.setsect
ASEG 4)
Directive produced by absolute lister
.setsym
EQU or = 4)
Program end
.end
END
1) The syntax of the #message directive is: #message “<string>”
This causes ‘#message <string>’ to be output to the project build window during assemble/compile time.
2) Warning messages cannot be user-defined. #message may be used, but the warning counter will not be
incremented.
3) The concept of load-time addresses is not supported. Run-time and load-time addresses are assumed to
be the same. To achieve the same effect, labels can be given absolute (run-time) addresses by the EQU
directives.
;
Asm430
code
;
A430
code
.label load_start
load_start:
Run_start:
<code>
<code>
load_end:
Run_end:
run_start:EQU
240H
.label load_end
run_end:
EQU ruload_end-load_start
4) Although not produced by the absolute lister ASEG defines absolute segments and EQU can be used to
define absolute symbols.
MYFLAG
EQU
23EH
; MYFLAG is located at 23E
ASEG
240H
; Absolute segment at 240
MAIN:
MOV
#23CH, SP
; MAIN is located at 240
...
Additional A430 Directives (IAR)
A430 Directive (IAR)
Set the default base of constants
RADIX
Enable case sensitivity
CASEON
Disable case sensitivity
CASEOFF
E.2.11 Preprocessor
Directives
The A430 assembler includes a preprocessor similar to that used in C
programming. The following preprocessor directives can be used in include
files which are shared by assembly and C programs.
Summary of Contents for MSP-FET430
Page 3: ......
Page 4: ...July 2004 U s e r s G u i d e ...
Page 8: ...vi ...
Page 12: ......
Page 30: ......
Page 52: ...Hardware B 2 Figure B 1 MSP FET430X110 Schematic ...
Page 54: ...Hardware B 4 Figure B 3 MSP FET430IF FET Interface module Schematic ...
Page 63: ...Hardware B 13 Figure B 11 MSP TSPN80 Target Socket module Schematic ...
Page 67: ...Hardware B 17 Figure B 15 MSP FET430UIF USB Interface schematics ...
Page 68: ...Hardware B 18 ...
Page 69: ...Hardware B 19 ...
Page 70: ...Hardware B 20 ...
Page 71: ...Hardware B 21 ...
Page 72: ......
Page 80: ......
Page 90: ......
Page 95: ...MSP FET430UIF Installation Guide F 5 Figure F 5 Device Manager ...