Panasonic F77G, MN101C77C Corrected at second to the ROM correction address, RC1VL = xBC, RC1VH =

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 89
Image 89

[Setup for the second correction]

Set the head address of the program to be

Chapter 2 CPU Basics

The second program to be corrected (internal ROM)

The head address of the correction

corrected at second to the ROM correction address 1

Address Data

(the set value of RC1AP)

setting register (RC1AP). RC1APL = x'FD' RC1APM = x'08' RC1APH = x'01'

Set the internal RAM address x'06BC' that stored the second correct program to the RC vector table address (RC1V(L), RC1V(H).

108FC

85

sub

d1, d1

108FD

A011

mov

11, d0

 

108FF

58

mov

d0, (a0)

10900

EC1

addw

1, a0

10901_

A081

mov

_Msyscom_edge, 0

The address for recover

The second correct program (internal RAM)

The head address of the correction program

RC1V(L) = x'BC'

Address Data

(the set value of RC1V)

RC1V(H) = x'06'

006BC

A041

mov

14, d0

006BE

58

mov

d0, (a0)

006BF

3920090

jmp

10900

The address for recover

(STEP 3) Set the bit 0 (RC0EN) and the bit 1 (RC1EN) of the ROM correction control register (RCCTR) to "1".

After the main program is started, the instruction fetched address and the set address to the ROM correction address setting register (RCnAP) are always compared, then once they are matched program counter indirectly branches to the address in RAM area, that are stored to the RC vector table (RCnV).

The correction program in RAM area is executed.

Program counter recovers to the program in ROM area.

ROM Correction

II - 37

Page 89
Image 89
Panasonic F77G, MN101C77C user manual Corrected at second to the ROM correction address, RC1VL = xBC, RC1VH =