我正在使用dosbox来运行16位程序和TASM。我的操作系统是Windows 8,除了专门发送和接收的14h中断外,我没有看到运行任何其他中断的麻烦。我使用两个USB到UART模块,其RX和TX相互连接(rx-> tx,tx-> rx),它们的接地也连接在一起。我的问题是它不会传输。模块很好,因为我用realterm测试它们。
这是我的传输代码。
.model small
.stack
.data
.code
main proc far
mov ax,@data
mov ds,ax
mov al,11100011b ;baud rate set to 9600
mov dx,0 ;com port 1, yes i've configured the comport on both pc and conf file of dosbox
int 14h
mov ah,01
mov al,42h ;character to transmit, letter B
mov dx,0h
int 14h
mov ah,4ch
int 21h
main endp
end main