INT 21h不打印 [英] INT 21h does not print

查看:75
本文介绍了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...

推荐答案

它将在DL中打印字符(请参见

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆