Application Examples
;
;***********************************************************
;*
*
;*
MACRO DEFINITIONS
*
;*
*
;***********************************************************
;
GET
MACRO
SRC
MOV
DX,SRC
;; GET I/O PORT
IN
AL,DX
;; INPUT DATA
ENDM
;
PUT
MACRO
DST
MOV
DX,DST
;; GET I/O PORT
OUT
DX,AL
;; OUTPUT DATA
ENDM
;
;***********************************************************
;*
*
;*
INTERRUPT POINTERS SEGMENT
*
;*
*
;***********************************************************
;
; INTERRUPT POINTER TABLE LOCATED AT 0H
;
INT_POINTERS
SEGMENT
ORG
0
;
TYPE_0
DD
?
; DIV BY ZERO, NOT USED
TYPE_1
DD
?
; SINGLE STEP,
"
TYPE_2
DD
?
; NON-MASKABLE INT
TYPE_3
DD
?
; BREAKPOINT, NOT USED
TYPE_4
DD
?
; OVERFLOW,
"
;
; INTERRUPT POINTER TABLE IS LOCATED JUST ABOVE THE FIRST EIGHT
;
INTERRUPT TYPES.
;
ORG
8*4
;
TYPE_8
DD
?
; 8259A IR0-TIMER 0
TYPE_9
DD
?
; 8259A IR1-KEYBD
TYPE_10
DD
?
; 8259A IR2-TIMER2 (W6B)
TYPE_11
DD
?
; 8259A IR3-COM2
TYPE_12
DD
?
; 8259A IR4-COM1
TYPE_13
DD
?
; 8259A IR5-FP5
TYPE_14
DD
?
; 8259A IR6-FP6
TYPE_15
DD
?
; 8259A IR7-FP7
;
INT_POINTERS
ENDS
;
4-8