Rev. 1.50, 10/04, page 325 of 448
10.1.71 STS (Store System Register): System Control Instruction
Format
Operation
Instruction Code
Cycle
T Bit
STS MACH,Rn
MACH
→
Rn
0000nnnn00001010
1 —
STS MACL,Rn
MACL
→
Rn
0000nnnn00011010
1 —
STS PR,Rn
PR
→
Rn
0000nnnn00101010
1 —
STS.L MACH,@-Rn
Rn - 4
→
Rn, MACH
→
(Rn)
0100nnnn00000010
1 —
STS.L MACL,@-Rn
Rn - 4
→
Rn, MACL
→
(Rn)
0100nnnn00010010
1 —
STS.L PR,@-Rn
Rn - 4
→
Rn, PR
→
(Rn)
0100nnnn00100010
1 —
Description:
This instruction stores system register MACH, MACL, or PR in the destination.
Notes:
None
Operation:
STSMACH(int n) /* STS MACH,Rn */
{
R[n] = MACH;
PC += 2;
}
STSMACL(int n) /* STS MACL,Rn */
{
R[n] = MACL;
PC += 2;
}
STSPR(int n) /* STS PR,Rn */
{
R[n] = PR;
PC += 2;
}
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...