[Assembly 8086] Display ASCII Characters 80h to FFh







Question: Write a program to display the extended ASCII characters (ASCJI
codes 80h to FF_h). Display 10 characters per line, separated by
blanks. Stop after the extended characters have been displayed
once.



.model small
.stack 100h
.data

.code
        
    
     mov cx,127
     mov bl,0
     
     
 print:  
       
     mov ah,2
     inc cx
     cmp cx,255
     ja exit
     mov dx,cx
     int 21h 
     mov dx,32d
     int 21h
     jmp go
     
     
     
     
 go:
    
   inc bl
   cmp bl,10
   je nl
   jmp print   
   
   
   
 nl:

    mov ah,2
    mov dl,0dh
    int 21h
    mov dl,0ah
    int 21h
    mov bl,0
    jmp print
     
     

 exit:

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment