dosbox を使用して、16 ビット プログラムの実行と TASM を許可しています。私のOSはWindows 8で、特に送受信する14時間割り込みを除いて、他の割り込みの実行に問題はないようです。RX と TX が互いに接続された 2 つの USB to UART モジュールを使用し (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