Rev. 1.50, 10/04, page 410 of 448
10.3.20 FSCHG (Sz-bit Change): Floating-Point Instruction
PR
Format
Operation
Instruction Code
Cycle
T Bit
0
FSCHG
~FPSCR.SZ
→
FPSCR.SZ
1111001111111101
1
—
Description:
This instruction inverts the SZ bit of the floating-point status register FPSCR.
Changing the value of the SZ bit in FPSCR switches the amount of data for transfer by the FMOV
instruction between one single-precision data and a pair of single-precision data. When FPSCR.SZ
= 0, an FMOV instruction transfers a single-precision number. When FPSCR.SZ = 1, the FMOV
instruction transfers a pair of single-precision numbers.
Notes:
None
Operation:
void FSCHG() /* FSCHG */
{
if(FPSCR_PR == 0){
FPSCR ^= 0x00100000; /* bit 20 */
PC
+=
2;
}
else
undefined_operation();
}
Possible Exceptions:
None
Содержание SuperH SH-4A
Страница 2: ...Rev 1 50 10 04 page ii of xx ...
Страница 8: ...Rev 1 50 10 04 page viii of xx ...
Страница 116: ...Rev 1 50 10 04 page 96 of 448 ...
Страница 178: ...Rev 1 50 10 04 page 158 of 448 ...
Страница 206: ...Rev 1 50 10 04 page 186 of 448 ...
Страница 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Страница 445: ...Rev 1 50 10 04 page 425 of 448 Possible Exceptions Invalid operation Overflow Underflow Inexact ...
Страница 446: ...Rev 1 50 10 04 page 426 of 448 ...
Страница 468: ...Rev 1 50 10 04 page 448 of 448 ...
Страница 471: ......
Страница 472: ...SH 4A Software Manual ...