INT 21h不打印 [英] INT 21h does not print
本文介绍了INT 21h不打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道为什么此过程无法打印:
I wonder why this procedure does not print:
print:
push ax
push bx
push dx
mov ah, 02h
ciclo:
mov al, [si]
int 21h
inc si
loop ciclo
pop dx
pop bx
pop ax
ret
根据此处,在AH
为2时调用INT 21h
,在stdout上打印AL
中包含的ASCII码.调试时我什么也没发现...
According to here, calling INT 21h
while AH
is 2, prints on stdout the ASCII code contained in AL
. While debugging I found nothing...
推荐答案
It will print the character in DL
(see this reference).
例如,如果DL
包含十进制值65,它将打印字符A
(因为65是'A'的ASCII码)
For example, if DL
contains the decimal value 65, it will print the character A
(since 65 is the ASCII code for 'A')
这篇关于INT 21h不打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文