现代计算机接口实验 (一)熟悉环境
D型触发器
;Q非-L7;D-SD-VCC;CLK-2A0H~2A7H;CD-2A8H~28FH
DuanKou1 equ 2a0h
DuanKou2 equ 2a8h
code segment
assume cs:code
KaiShi:
mov dx,DuanKou1
out dx,al
call Dengdai
mov dx,DuanKou2
out dx,al
call Dengdai
mov ah,1
int 16h
je KaiShi
mov ah, 4ch
int 21h
DengDai proc near ;内置等待函数
mov bx ,200
Yi:mov cx,0
Er:loop Er
dec bx
jne Yi
ret
DengDai endp
code ends
end KaiShi