0
.model small
.stack 100
.data
.code

mov ah,00h
mov al,0e3h
mov dx,00h
int 14h

back: nop

l1: mov ah,03h
    mov dx,00h
    int 14h

    and ah,01h
    cmp ah,01h
    jne l1

    mov ah,02h
    mov dx,00h
    int 21h

mov dl,al
mov ah,02h
int 21h

jmb back
mov ah,4ch
int 21h

end

这是一个 pc 到 pc 通信接收器程序。我想知道它为什么使用这个mov dx,00h命令以及什么mov al,0e3h意思?

4

3 回答 3

3

看看这里。AX 将包含传输参数(波特率等),DX 选择端口号。E3 = 9600 速率,无奇偶校验,两个停止位,8 位字符大小。

于 2010-05-04T15:49:03.197 回答
2

根据我可以在 int 14h 上找到的文档,

dx 确定端口号。因此,如果您使用端口一,则将 00h 放入 dx。al 用于串行通信的参数。查看文档以获取有关参数的更多详细信息。

于 2010-05-04T15:46:43.530 回答
0

dx用于选择 com 端口。00=com1, 01=com2. al用于选择字符size(0 and 1 bit), stop bit(2nd bit),parity bits (3rd and 4th bit)baud rate(5,6,7 bit no.)

al=11100011=e3=8bits:无奇偶校验,一位停止位,9600 波特率

于 2014-04-19T13:30:49.163 回答