521
CHAPTER 22 ADDRESS MATCH DETECTION FUNCTION
Figure 22.4-5 Flow of Patch Processing for Patch Program
E
2
PROM :
0000H = 0
INT9
INT9
NO
YES
NO
YES
MB90360
ROM
RAM
E
2
PROM
000000H
000100H
000400H
000480H
000900H
FF0000H
FF8000H
FF8050H
FFFFFFH
0000H
0001H
0002H
0003H
0010H
0090H
FFFFH
I/O area
Register/RAM area
Patch program
RAM area
Stack area
Detection address setting
register
Program error
Patch program byte count : 80
H
Detect address (Low): 00
H
Detect address (Middle): 80
H
Detect address (High): FF
H
Patch program
Reset
Read the 00
H
of
E
2
PROM
Read detect address
E
2
PROM:
0001
H
to 0003
H
Å´
MCU: Set to PADR0
Read patch program
E
2
PROM:
0010
H
to 008F
H
Å´
MCU:
000400
H
to 000047F
H
Enable address match
detection
(PACSR: AD0E = 1)
Execution of normal
program
Program address
= PADR0
Branch to patch program
JMP 000400
H
Execution of patch program
000400
H
to 000480
H
End of patch program
JMP FF8050
H