home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix Heaven Sunny 2
/
APPARE2.BIN
/
oh_towns
/
his
/
source
/
hisl2.asm
< prev
next >
Wrap
Assembly Source File
|
1995-06-20
|
1KB
|
61 lines
;*****************************************************************
;* *
;* 割り込み処理ライブラリ下請けプロシジャ *
;* *
;* ~ IMR読み込み ~ *
;* *
;* 1995 / 6 / 12 ちょもらんま *
;* *
;*****************************************************************
.386
;************** 割り込みハードウェア関係の定数 *************
OCW1_M equ 0002h
OCW1_S equ 0012h
OCW2_M equ 0000h
OCW2_S equ 0010h
OCW3_M equ 0000h
OCW3_S equ 0010h
ISR_M equ 0000h
ISR_S equ 0010h
IRR_M equ 0000h
IRR_S equ 0010h
IMR_M equ 0002h
IMR_S equ 0012h
ReadIRR equ 00001010b
ReadISR equ 00001011b
EOIcommand equ 00100000b
WaitRegister equ 006ch
; int HIS_readIMR( void );
public HIS_readIMR
;------------ PICアクセス待ちウェイト -------------
PicWait macro
out WaitRegister,al ; 1μ秒ウェイト
cmc
cmc
endm
assume cs:code
code segment public use32 'CODE'
;**************** 割り込みマスクレジスタの読み出し ***************
public HIS_readIMR
HIS_readIMR proc
xor eax,eax
PicWait
in al,IMR_S
PicWait
mov ah,al
in al,IMR_M
ret
HIS_readIMR endp
code ends
end