543
CHAPTER 25 ROM CORRECTION
ADD A, #2
BR
!1002H
BR
!F702H
ADD A, #1
MOV B, A
0000H
0080H
Program start
1000H
1002H
Internal ROM
Internal expansion RAM
F400H
F702H
F7FDH
F7FFH
(1)
(2)
(3)
EFFFH
25.5 ROM Correction Example
The example of ROM correction when the instruction at address 1000H “ADD A, #1” is changed to “ADD A, #2”
is as follows.
Figure 25-8. ROM Correction Example
(1) Branches to address F7FDH when the preset value 1000H in the correction address register matches the fetch
address value after the main program is started.
(2) Branches to any address (address F702H in this example) by setting the entire-space branch instruction (BR
!addr16) to address F7FDH with the main program.
(3) Returns to the internal ROM program after executing the substitute instruction ADD A, #2.
Summary of Contents for PD78052
Page 2: ...2 MEMO ...
Page 8: ...8 MEMO ...
Page 16: ...16 MEMO ...
Page 36: ...36 MEMO ...
Page 158: ...158 MEMO ...
Page 174: ...174 MEMO ...
Page 240: ...240 MEMO ...
Page 260: ...260 MEMO ...
Page 340: ...340 MEMO ...
Page 392: ...392 MEMO ...
Page 438: ...438 MEMO ...
Page 482: ...482 CHAPTER 20 REAL TIME OUTPUT PORT MEMO ...
Page 510: ...510 MEMO ...
Page 524: ...524 MEMO ...
Page 560: ...560 MEMO ...
Page 576: ...576 MEMO ...
Page 598: ...598 MEMO ...
Page 602: ...602 MEMO ...