
Creating DSK Assembler Source Files
5-4
Using the mnemonic field
The mnemonic field follows the label field.
The mnemonic field cannot start in
column 1, or it is interpreted as a label. The mnemonic field can contain one
of the following opcodes:
-
Machine-instruction mnemonic (such as ADDI, MPYF)
-
Assembler directive (such as .data, .set, .entry)
If you have a label in the first column, a space, colon, or tab must separate the
mnemonic field (opcode) from the label. For example:
;==================================================
.start ”AICTEST”,0x809900
.sect ”AICTEST”
GIE .set 0x2000
;============================================================
.C3xMMRS.ASM
A_REG .word (TA<<9)+(RA<<2)+0 ; 0x809902
B_REG .word (TB<<9)+(RB<<2)+2 ; 0x809903
C_REG .word 10000011b ; 0x809904 +/– 1.5 V
;
S0_gctrl_val .word 0x0E970300
S0_xctrl_val .word 0x00000111 ;
S0_rctrl_val .word 0x00000111 ;
;
prog_AIC push R1
push IE
ldi 0x10,IE
andn 0x30,IF
ldi @S0_xdata,R1
sti R1,@S0_xdata
idle
ldi @S0_xdata,R1
or 3,R1
sti R1,@S0_xdata
idle
sti R0,@S0_xdata
idle
andn 3,R1
sti R1,@S0_xdata
pop IE
pop R1
rets
Refer to the
TMS320C3x User’s Guide for syntax specifications on individual
opcodes.
It is necessary to resolve
all fields in an opcode. If an opcode field (such as the
section name in a .sect opcode) is omitted, the assembler generates the error
statement, “Invalid, Undefined, or Missing Operand”.
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...