C– – Compiler
5-47
Code Development Tools
Also note that the user has to supply the length of the input string and the length
of the output string in the string multiply operations: the result of multiplying a
string by an integer can be one word longer than the input string. Unpredictable
results may occur if parameter lgr is not at least equal to lgr+1.
5.9.11 Constant Functions
The only two
constant functions implemented in C– – are
xfer_const
and
xfer_single
.
cmm_func xfer_const(int *out,int *constant_in,int lg)
It transfers
lg
+2 integers from program ROM starting at address
constant_in
to RAM, starting at address
out
. Note that
constant_in
is
not doubled, because it is used in A0 in a MOV A0,*A0 operation. The C– –
compiler takes care of this.
cmm_func xfer_single(int *out,int *constant_in)
transfers a single value.
An example of the use of
xfer_const
is:
int array[8],i;
const int atan[80*8] ={.........640 integers );
/* .... */
for(i=0;i<80;i++){
xfer_const(array,&atan[i*8],STR_LENGTH(8));
/* ... now use array normally
..... */
}
Summary of Contents for MSP50C614
Page 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Page 6: ...vi ...
Page 92: ...3 22 ...
Page 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Page 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Page 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Page 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Page 368: ...5 68 ...
Page 394: ...7 12 ...
Page 402: ...A 8 ...
Page 412: ...Packaging B 10 ...