mov cl,4
shr al,cl
out 280h,al
mov ah,1
int 16h
je loop
mov ah,4ch
int 21h
code segment
end start
12月23日 接口上机试题(上午)
题目:编一个程序,用8255从C口的低四位输入,求反后从C口的高四位输出.
程序如下:
code segment
start:mov dx,28bh
mov al,81h
out dx,al
inout:mov dx,28ah
in al,dx
not al