Read System Register (Rsreg) - Motorola CPU32 Reference Manual

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

7.2.8.6 Read System Register (RSREG)

The specified system control register is read. All registers that can be read in supervi-
sor mode can be read in BDM. Several internal temporary registers are also accessi-
ble.
Command Format:
15
14
13
0
0
1
Command Sequence:
Operand Data:
None
Result Data:
Always returns 32 bits of data, regardless of the size of the register being read. If
the register is less than 32 bits, the result is returned zero extended.
Register Field:
The system control register is specified by the register field according to the follow-
ing table:
Return Program Counter (RPC)
Current Instruction Program Counter (PCC)
Status Register (SR)
User Stack Pointer (USP)
Supervisor Stack Pointer (SSP)
Source Function Code Register (SFC)
Destination Function Code Register (DFC)
Temporary Register A (ATEMP)
Fault Address Register (FAR)
Vector Base Register (VBR)
7.2.8.7 Write System Register (WSREG)
Operand data is written into the specified system control register. All registers that can
be written in supervisor mode can be written in BDM. Several internal temporary reg-
isters are also accessible.
Command Format:
MOTOROLA
7-16
12
11
10
9
0
0
1
0
RSREG
???
System Register
DEVELOPMENT SUPPORT
8
7
6
5
0
1
0
0
XXX
NEXT CMD
MS RESULT
LS RESULT
XXX
NEXT CMD
"NOT READY"
"ILLEGAL"
4
3
0
REGISTER
Select Code
0000
0001
1011
1100
1101
1110
1111
1000
1001
1010
CPU32
REFERENCE MANUAL
0

Advertisement

Table of Contents
loading

Table of Contents