0
votes

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

1 Answers

4
votes

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')