EasyManua.ls Logo

Renesas SuperH SH-4A - Page 339

Renesas SuperH SH-4A
472 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals