DATA SEGMENTORG 1000HDBUF DB 1024 DUP(?)DATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATA,START:MOV AX,DATAMOV DS,AXMOV SI,OFFSET DBUFMOV CX,1024L0: IN AL,80HJZ L0OUT 90H,ALL1: IN AL,A0HTEST AL,80HJNZ L1L2: IN AL,A0HJZ L2IN AL,90HMOV SI,AL INC SILOOP L0L3: IN AL,80HJNZ L3L4: MOV SI,OFFSET DBUFMOV CX,1024L5: MOV AL,SI OUT B0H,ALINC SILOOP L5JMP L4MOV AH,4CHINT 21HCODE ENDSEND START注:上面的程序是在 masm 中写的,是本人设计电路图配套的原版程序题目:正弦波经 ADC0809 采集,8086 查 EOC 状态判断是否转换结束,结束后,经 DAC0832 输出波形。开关 K1 控制:闭合时,ADC0809采集数据,断开时,DAC0832 输出