Logo 
Search:

Assembly Language Articles

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

PREPARE TWO VARIABLES MSG1 HAVING "HELLO" & MSG2 HAVING "WORLD" & DISPLAY THESE STRINGS LIKE "HELLO $ WORLD"

Posted By: Blaz Fischer     Category: Assembly Language     Views: 3189

PREPARE TWO VARIABLES MSG1 HAVING "HELLO" & MSG2 HAVING "WORLD" & DISPLAY THESE STRINGS LIKE "HELLO $ WORLD".

Code for PREPARE TWO VARIABLES MSG1 HAVING "HELLO" & MSG2 HAVING "WORLD" & DISPLAY THESE STRINGS LIKE "HELLO $ WORLD" in Assembly Language

DATA SEGMENT
    MSG1 DB "HELLO$"
    MSG2 DB "WORLD$"
DATA ENDS

CODE SEGMENT
START:    ASSUME CS:CODE,DS:DATA
    MOV AX,DATA
    MOV DS,AX
    MOV AH,09H
    MOV DX,OFFSET MSG1
    INT 21H
    MOV AH,02H
MOV DX,OFFSET MSG2
INT 21H
MOV AH,4CH
INT 21H
    CODE ENDS
    END START

  
Share: 



Blaz Fischer
Blaz Fischer author of PREPARE TWO VARIABLES MSG1 HAVING "HELLO" & MSG2 HAVING "WORLD" & DISPLAY THESE STRINGS LIKE "HELLO $ WORLD" is from Frankfurt, Germany.
 
View All Articles

Related Articles and Code:


 

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!