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 #266 background imageLoading...
Page #266 background image
Rev. 1.50, 10/04, page 246 of 448
Notes: With the exception of LDC Rm,GBR and LDC.L @Rm+,GBR, the LDC/LDC.L
instructions are privileged instructions and can only be used in privileged mode. Use in user mode
will cause an illegal instruction exception. However, LDC Rm,GBR and LDC.L @Rm+,GBR can
also be used in user mode.
With the LDC Rm, Rn_BANK and LDC.L @Rm, Rn_BANK instructions, Rn_BANK0 is
accessed when the RB bit in the SR register is 1, and Rn_BANK1 is accessed when this bit is 0.
Operation:
LDCGBR(int m) /* LDC Rm,GBR */
{
GBR = R[m];
PC += 2;
}
LDCVBR(int m) /* LDC Rm,VBR : Privileged */
{
VBR = R[m];
PC += 2;
}
LDCSGR(int m) /* LDC Rm,SGR : Privileged */
{
SGR = R[m];
PC += 2;
}
LDCSSR(int m) /* LDC Rm,SSR : Privileged */
{
SSR = R[m],
PC += 2;
}
LDCSPC(int m) /* LDC Rm,SPC : Privileged */
{
SPC = R[m];
PC += 2;
}

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