INT 21h does not print

拥有回忆 提交于 2019-12-02 17:49:12

问题


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

According to here, calling INT 21h while AH is 2, prints on stdout the ASCII code contained in AL. While debugging I found nothing...


回答1:


It will print the character in DL (see this reference).

For example, if DL contains the decimal value 65, it will print the character A (since 65 is the ASCII code for 'A')



来源:https://stackoverflow.com/questions/16479762/int-21h-does-not-print

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!