EasyManua.ls Logo

Renesas SuperH SH-4A - Page 314

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 294 of 448
Operation:
OR(long m, long n) /* OR Rm,Rn */
{
R[n] |= R[m];
PC += 2;
}
ORI(long i) /* OR #imm,R0 */
{
R[0] |= (0x000000FF & (long)i);
PC += 2;
}
ORM(long i) /* OR.B #imm,@(R0,GBR) */
{
long temp;
temp = (long)Read_Byte(GBR+R[0]);
temp |= (0x000000FF & (long)i);
Write_Byte(GBR+R[0],temp);
PC += 2;
}
Example:
OR R0,R1 ;Before execution R0 = H'AAAA5555, R1 = H'55550000
;After execution R1 = H'FFFF5555
OR #H'F0,R0 ;Before execution R0 = H'00000008
;After execution R0 = H'000000F8
OR.B #H'50,@(R0,GBR) ;Before execution (R0,GBR) = H'A5
;After execution (R0,GBR) = H'F5

Table of Contents

Related product manuals