Download CPU32 Reference Manual [330 pages!]
Transcript
7.2.8.6 Read System Register (RSREG) The specified system control register is read. All registers that can be read in supervisor mode can be read in BDM. Several internal temporary registers are also accessible. Command Format: 15 14 13 12 11 10 9 8 7 6 5 4 0 0 1 0 0 1 0 0 1 0 0 0 3 0 REGISTER Command Sequence: RSREG ??? XXX MS RESULT NEXT CMD LS RESULT XXX "ILLEGAL" NEXT CMD "NOT READY" 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 following table: System Register 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) Select Code 0000 0001 1011 1100 1101 1110 1111 1000 1001 1010 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 registers are also accessible. Command Format: MOTOROLA 7-16 DEVELOPMENT SUPPORT CPU32 REFERENCE MANUAL