User`s guide

address
Examples After you load a program to your processor, address lets you read
and write to specic entries in the symbol table for the program. For
example, the following function reads the value of symbol
ddat’from
the symbol table in CCS IDE.
ddatv = read(cc,address(cc,'ddat'),'double',4)
ddat
is an entry in the current symbol table. address searches for the
string
ddat and returns a value when it nds a match. read returns
ddat to MATLAB software as a double-precision value as specied by
the string
double’.
To change values in the s ymbol table, use
address with write:
write(cc,adddress(cc,'ddat'),double([pi 12.3 exp(-1)...
sin(pi/4)]))
After executing this write operation, ddat contains double-precision
values for π, 12.3, e
-1
, and sin(π/4). Use read to verify the contents
of
ddat:
ddatv = read(cc,address(cc,'ddat'),'double',4)
MATLAB software returns
ddatv =
3.1416 12.3 0.3679 0.7071
See Also load, read, symbol, write
7-8