Program Example Of The Address Match Detection Function - Fujitsu F2MC-16LX Hardware Manual

Mb90550a/b series, 16-bit
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 21 ADDRESS MATCH DETECTION FUNCTION

21.5 Program Example of the Address Match Detection Function

Figure 21.5-1 shows an example of program patch processing, and Figure 21.5-2
shows the flow of program patch processing
■ Program Example of the Address Match Detection Function
movw
a, sp
movw
rw4, a
spb
movl
a, @rw4+2
movl
rl2, a
decl
rl2
mov
r3, #00H
addsp #12
or
ccr,#040H ;Allows the interrupt.
mov
a, padr0+2
movw
a, padr0
cmpl
a, rl2
check1
beq
ROM
RAM
334
Figure 21.5-1 Example of Program Patch Processing
;Stores the value of the stack pointer in RW4.
;Gets the value of stacked PC + PCB + DPB.
;Corrects one value of PC (for INT9 instruction).
;Initializes the portion of DPB to 00
;Restores the value of the stack pointer.
;Sends the value of the address detection registers to the accumulator.
;Compares the address detection register with the value of stacked PC.
MB90550A/B
FFFFFF
H
Abnormal program
Register set for
program patch
Corrected program
000000
H
H
External E
Number of bytes of the program
Address where the interrupt
occurs
Corrected program
Data transfer through UART
2
PROM

Advertisement

Table of Contents
loading

Table of Contents