问答题

简答题 设8255的端口地址为200H~203H。要求PA口方式1,输入;PB口方式0输出;PC7~PC6为输入;PC1~PC0为输出。试写出8255的初始化程序。

【参考答案】

MOV DX,203H
MOV AL,10111000B
OUT DX,AL