MB90335 Series
21.5
Program Example of Address Match Detection Function
This section gives a program example for the address match detection function.
■ Program Example for Address Match Detection Function
●
Processing specifications
If the address of the instruction to be executed by the program matches the address set in the Program
address detection register 0 (PADR0), the INT9 instruction is executed.
●
Coding example
PACSR
PADRL
PADRM
PADRH
;
;-----Main program---------------------------------------------------------------
CODE
START:
;
LOOP:
;-----Interrupt program----------------------------------------------------------
WARI:
CM44-10137-6E
21.5 Program Example of Address Match Detection Function
EQU
00009EH
EQU
001FF0H
EQU
001FF1H
EQU
001FF2H
CSEG
MOV
PADRL,#00H
MOV
PADRM,#00H
MOV
PADRH,#00H
MOV I:PACSR,#00000010B
:
processing by user
:
:
processing by user
:
BRA LOOP
:
processing by user
:
FUJITSU MICROELECTRONICS LIMITED
CHAPTER 21 ADDRESS MATCH DETECTION FUNCTION
; Program address detection control status register
; Program address detection register 0 (Low)
; Program address detection register 0 (Middle)
; Program address detection register 0 (High)
; Stack pointer (SP), etc.,
; already reset
; Set program address detection register 0 (Low)
; Set program address detection register 0 (Middle)
; Set program address detection register 0 (High)
; Enable address match
473