EasyManuals Logo

Renesas SuperH SH-4A User Manual

Renesas SuperH SH-4A
472 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #314 background imageLoading...
Page #314 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas SuperH SH-4A and is the answer not in the manual?

Renesas SuperH SH-4A Specifications

General IconGeneral
BrandRenesas
ModelSuperH SH-4A
CategoryComputer Hardware
LanguageEnglish

Related product manuals