Texas Instruments MSP-FET430 manual Symbol Control Directives, Reptc

Page 86

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

X

SET

X+1

; Increment counter

 

ENDR

 

 

 

ENDM

 

 

Additional A430 Directives (IAR)

A430 Directive (IAR)

Repeatable block assembly: Formal argument is substituted by each

REPTC

character of a string.

 

Repeatable block assembly: formal argument is substituted by each string

REPTI

of a list of actual arguments.

 

See also Preprocessor Directives

 

E.2.8 Symbol Control Directives

The scope of assembly-time symbols differs in the two assemblers. In Asm430, definitions are global to a file, but can be undefined with the

.newblock directive. In A430, symbols are either local to a macro (LOCAL), local to a module (EQU) or global to a file (DEFINE). In addition, the preprocessor directive #define can also be used to define local symbols.

Description

Asm430 Directive (TI)

A430 Directive (IAR)

Assign a character string to a substitution

.asg

SET or VAR or ASSIGN

symbol

 

 

Undefine local symbols

.newblock

1)

Equate a value with a symbol

.equ or .set

EQU or =

Perform arithmetic on numeric substitution

.eval

SET or VAR or ASSIGN

symbols

 

 

End structure definition

.endstruct

2)

Begin a structure definition

.struct

2)

Assign structure attributes to a label

.tag

2)

1)No A430 directive directly corresponds to .newblock. However, #undef may be used to reset a symbol that was defined with the #define directive. Also, macros or modules may be used to achieve the

.newblock functionality because local symbols are implicitly undefined at the end of a macro or module.

2)Definition of structure types is not supported. Similar functionality is achieved by using macros to allocate aggregate data and base address plus symbolic offset, as shown below:

MYSTRUCT:MACRO

 

 

DS 4

 

 

ENDM

 

LO

DEFINE 0

HI

DEFINE 2

 

RSEG

DATA16_Z

X

MYSTRUCT

 

RSEG

CODE

 

MOV

X+LO,R4

 

...

 

Additional A430 Directives (IAR)

A430 Directive (IAR)

Define a file-wide symbol

DEFINE

Definition of special function registers (byte size)

SFRB

Definition of special function registers (word size)

SFRW

E-6

Image 86
Contents Users Guide 2004Important Notice Page July About This Manual How to Use This ManualRead This First 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 Hardware Installation, MSP-FET430X110 Kit Contents, MSP-FET430UIFSoftware Installation 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 Breakpoint Types Using C-SPYUsing Breakpoints 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 Introduction Segment ControlTranslating Asm430 Assembler Directives to A430 Directives Character stringsSection Control Directives Description Asm430 Directive TI A430 Directive IARConstant Initialization Directives Listing Control DirectivesConditional-Assembly Directives File Reference DirectivesSymbol Control Directives ReptcPreprocessor Directives Macro DirectivesMiscellaneous 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