24.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 detection
address setting register (PADR0), the INT9 instruction is executed.
Coding example
PACSR
PADRL
PADRM
PADRH
;
;-----Main program---------------------------------------------------------------
CODE
START:
;
LOOP:
;-----Interrupt program----------------------------------------------------------
WARI:
EQU
00009EH
EQU
001FF0H
EQU
001FF1H
EQU
001FF2H
CSEG
; Stack pointer (SP), etc.,
; already reset
MOV
PADRL,#00H
MOV
PADRM,#00H
MOV
PADRH,#00H
MOV I:PACSR,#00000010B
:
processing by user
:
:
processing by user
:
BAR LOOP
:
processing by user
:
CHAPTER 24 ADDRESS MATCH DETECTION FUNCTION
; Address detection control register
; Detection address setting register 0 (Low)
; Detection address setting register 0 (Middle)
; Detection address setting register 0 (High)
; Set address detection register 0 (Low)
; Set address detection register 0 (Middle)
; Set address detection register 0 (High)
; Enable address match
561