Logo 
Search:

Assembly Language Articles

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

PROGRAM WHICH WILL DISPLAY ONE CHARACTER ON SCREEN UNTIL $ COMES

Posted By: Rebecca Hughes     Category: Assembly Language     Views: 3419

WRITE A PROGRAM WHICH WILL DISPLAY ONE CHARACTER ON SCREEN UNTIL $ COMES.

Code for PROGRAM WHICH WILL DISPLAY ONE CHARACTER ON SCREEN UNTIL $ COMES in Assembly Language

DATA SEGMENT
    MSG DB "INDIA IS GREAT"
    TEN EQU $-MSG
DATA ENDS

CODE SEGMENT
START:    ASSUME CS:CODE,DS:DATA
    MOV AX,DATA
    MOV DS,AX
    MOV SI,OFFSET MSG
    MOV CS,LEN
LP1:    MOV AH,02H
    MOV DI,[SI]
    INT 21H
    INC SI
    LOOP LP1.CX=CX-1,CX=/0
    MOV AH,4CH
    INT 21H
CODE ENDS 
END START
  
Share: 



Rebecca Hughes
Rebecca Hughes author of PROGRAM WHICH WILL DISPLAY ONE CHARACTER ON SCREEN UNTIL $ COMES is from London, United Kingdom.
 
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!