Fujitsu F2MCTM-16LX Manual do Utilizador Página 538

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 682
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 537
522
CHAPTER 22 ADDRESS MATCH DETECTION FUNCTION
22.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
PACSR0 EQU 00009EH ;Address detection control register 0
PADRL EQU 0079E0H ;Detection address setting register 0
(Low)
PADRM EQU 0079E1H ;Detection address setting register 0
(Middle)
PADRH EQU 0079E2H ;Detection address setting register 0
(High)
;
;---------Main program-------------------------------------
CODE CSEG
START:
;Stack pointer (SP), etc.,
;already initialized
MOV PADRL,#00H ;Set address detection register 0
(Low)
MOV PADRM,#00H ;Set address detection register 0
(Middle)
MOV PADRH,#00H ;Set address detection register 0
(High)
;
MOV I:PACSR0,#00000010B ;Enable address match
.
processing by user
.
LOOP:
.
processing by user
.
BRA LOOP
;---------Interrupt program-------------------------------------
WARI:
.
processing by user
Vista de página 537
1 2 ... 533 534 535 536 537 538 539 540 541 542 543 ... 681 682

Comentários a estes Manuais

Sem comentários