Programmering - Assembler - INT - INT21 - 02: Display Character >09: Display String
>INT 10.0E: Write Char Teletype

>ASCII table

DOS 1.0 : Displays any character on the standard output device

AH = 2
DL = OutputChar (ASCII value)
   = 7 : Beep
   = 8 : Backspace
 

 

 

Display an 'A'
mov dl,'A'
mov ah,2
int 21h
 
Display a string of characters:
msg     db  1,2,3,"Hello World",13,10,"$"
len     equ $-msg

        mov si, offset msg
        mov cx, len
        
do:     mov dl, [si]
        mov ah, 2     ;Display Character
        int 21h
21-09.gif (1068 bytes)
        inc si
        loop do