Chapter 2 CPU Basics
2-7-3
ROM Correction Control Register
ROM correction control register (RCCTR) and ROM correction address setting register (RCnAPL,
RCnAPM, RCnAPH) control the ROM correction.
ROM correction control register (RCCTR) enables/disables the ROM correction function to 3 parts of the
program to be corrected. When the RCnEN flag is set, the ROM correction is activated. And when the
ROM address (the instruction execution address) reaches the set address to the ROM correction ad-
dress setting register, it branches indirectly to the RAM address set on the RC vector table (RCnV(L),
RCnV(H)). Set the RCnEN flag after setting the ROM correction address setting register.
ROM Correction Control Register(RCCTR)
7
6
-
-
RCCTR
Figure 2-7-2
II - 32
ROM Correction
5
4
3
2
-
-
-
RC2EN
ROM Correction Control Regiser (RCCTR : x'03F0E', R/W)
1
0
RC1EN RC0EN
( At reset :
RC0EN
0
1
RC1EN
0
1
RC2EN
0
1
- - - - -
0 0 0 )
ROM correction control at 1st address
Disable
Enable
ROM correction control at 2nd address
Disable
Enable
ROM correction control at 3rd address
Disable
Enable