565
CHAPTER 26 ROM CORRECTION
26.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 26-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.
ADD A, #2
BR
!1002H
BR
!F702H
ADD A, #1
MOV B, A
0000H
0080H
Program start
1000H
1002H
Internal ROM
Internal expansion RAM
0000H
F702H
F7FDH
F7FFH
(1)
(2)
(3)
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...