Rev. 1.50, 10/04, page 319 of 448
Operation:
SHLR2(long n) /* SHLR2 Rn */
{
R[n] >>= 2;
R[n] &= 0x3FFFFFFF;
PC += 2;
}
SHLR8(long n) /* SHLR8 Rn */
{
R[n] >>= 8;
R[n] &= 0x00FFFFFF;
PC += 2;
}
SHLR16(long n) /* SHLR16 Rn */
{
R[n] >>= 16;
R[n] &= 0x0000FFFF;
PC += 2;
}
Example:
SHLR2
R0
;
Before execution R0 = H'12345678
;
After execution
R0 = H'048D159E
SHLR8
R0
;
Before execution R0 = H'12345678
;
After execution
R0 = H'00123456
SHLR16 R0
;
Before execution R0 = H'12345678
;
After execution
R0 = H'00001234
Содержание 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 ...