Program Example Of Address Match Detection Function - Fujitsu MB90895 Series Hardware Manual

16 bit, controller manual
Table of Contents

Advertisement

17.5

Program Example of Address Match Detection Function

This section gives a program example for the address match detection function.
I Program Example of Address Match Detection Function
G
Processing specification
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.
G
Coding example
PACSR EQU 00009EH
PADRL EQU 001FF0H
PADRM EQU 001FF1H
PADRH EQU 001FF2H
;
;---------Main Program-------------------------------------
CODE CSEG
START:
MOV PADRL,#00H
MOV PADRM,#00H
MOV PADRH,#00H
;
MOV I:PACSR,#00000010B ;Enables the address match
User processing
LOOP:
User processing
BRA LOOP
;---------Interrupt program-------------------------------------
WARI:
User procseeing
RETI
CODE ENDS
;---------Vector Setting------------------------------------------
VECT CSEG ABS=0FFH
ORG 00FFDCH
DSL WARI
ORG 00FFDCH
DSL START
DB
VECT ENDS
END START
;Stack pointer (SP), already initialized
;Detect address setting registers 0 Low
;Detect address setting registers 0 Middle
;Detect address setting registers 0 High
;Return from interrupt processing
;Reset vector Setting
00H
;Single-chip mode Setting
CHAPTER 17 Address Match Detecting Function
;Address detection control register
;Detect address setting registers 0 Low
;Detect address setting registers 0 Middle
;Detect address setting registers 0 High
569

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx

Table of Contents