User`s guide
regread
The represent inputargumentdefines the format of the data stored in
regname. Input argument represent takes one of three input strings:
represent String Description
'2scomp'
Source register contains a signed integer value
in two’s compleme nt format. This is the default
setting when you omit the
represent argument.
'binary'
Source register contains an unsigned binary
integer.
'ieee'
Source register contains a floatingpoint32-bitor
64-bit value in IEEE floating -point fo rmat. Use
this only when you a re reading from 32 and 64
bit registers on the processor.
To limit the time that regread spends transferring data from the
processor, the optional a rgument
timeout tells the data transfer process
to stop after
timeout seconds. timeout is defined as the number of
seconds allowed to complete the read operation. You might find this
useful for limiting prolonged data transfer operations. If you omit the
timeout option in the syntax, regread defaults to the global timeout
defined in
cc.
reg = regread(cc,'regname','represent') does not s et the global
timeout value. The timeout value in
cc applies.
reg = regread(cc,'regname') does not define the format of the data
in
regname.
Reading and Writing Register Values
Register variables can be difficult to read and write because the
registers which hold their value are n ot dedicated to storing just the
variable values.
Registers are used as temporary storage locations at any time during
execution. When this temporary storage process occurs, the value of the
variable is temporarily stored somew here on the stack and returned
7-128