微机原理实验三 并行口实验 微机接口技术完整优秀实验报告
程序源代码: assume cs:code code segment public org 100h start: mov dx,04a6h ;控制寄存器地址 mov ax,90h ;设置为 A 口输入,B 口输出 out dx,ax? start1: mov dx,04a0h ;A 口地址 in ax,dx ;输入 mov dx,04a2h ;B 口地址 out dx,ax ;输出 jmp start1 code ends end start
实验结果截图:
图 1:程序代码运行截图