s

8086 assembly language program to display a character edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 10 February 2021 | 3760

If you are an absolute beginner and if this is the first program you are trying to write. This first check this article before reading further. Check this video also.

In this article, we will write a simple program that would display a * on the screen. Please check the code below.

.model tiny
.code
org 100h



main proc near
    
mov ah,02h  ; Dos function 02h to Write character to STDOUT
mov dl,'*'  ; character to write
int 21h     ; dos interrupt 21h
            
mov ah,4ch  ; Dos function to terminate the return to dos
mov al,00   ; return code
int 21h     ; dos interrupt 21h

ret
endp
end main