Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

Program to print characters from A to Z on the screen

Posted By: Waggoner Fischer     Category: Assembly Language     Views: 3503

Program to print characters from A to Z on the screen...

Code for Program to print characters from A to Z on the screen in Assembly Language

data segment
data ends

stack segment
stack ends

code segment
        assume cs:code,ds:data,ss:stack

print_atoz       proc
    mov dl,'A'    
        mov cx,26       


print_loop :
        call write_char        
        inc dl                 
        loop print_loop        
        mov ah,4ch             
        int 21h                
print_atoz      endp           


write_char       proc
        mov ah,2h               
        int 21h                 
        ret                     
write_char     endp


code ends
       end 




;----------------------------------------------------------------------------
;OUTPUT:
;-----------------------------------------------------------------------------
; ABCDEFGHIJKLMNOPQRSTUVWXYZ
;----------------------------------------------------------------------------

  
Share: 


Didn't find what you were looking for? Find more on Program to print characters from A to Z on the screen Or get search suggestion and latest updates.

Waggoner Fischer
Waggoner Fischer author of Program to print characters from A to Z on the screen is from Frankfurt, Germany.
 
View All Articles

 

Other Interesting Articles in Assembly Language:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!