address.m

来自「一个MATLAB的应用程序」· M 代码 · 共 24 行

M
24
字号
function addr=address(cc,symname)
%ADDRESS returns the address value for specified a target symbol
%  A = ADDRESS(CC,SYM) Returns the address of SYM, which is a string 
%  representation of the desired symbol.  If the specified symbol is not 
%  found, a warning is generated and A is empty.  Note, this method 
%  returns only the first occurance of the specified symbol (SYM) from 
%  the symbol table.  This method is only applicable after loading the 
%  desired program file.  The return value A is a 2 element numeric 
%  array with the symbols offset and page.  This return value can be 
%  used directly as an input to the address field of CC.READ and 
%  CC.WRITE. 
%
%  Return value:
%  A(1) - Address offset
%  A(2) - Page
%
%  For example:
%  >cc.read(cc.address('coef'),5,'int32')
%  returns the first 5 members of a target's array called 'coef'.
%
%  See also DEC2HEX, LOAD, SYMBOL.

% Copyright 2002 The MathWorks, Inc.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?