Logo 
Search:

Assembly Language Articles

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

PROGRAM TO WRITE A PROGRAM TO ADD TWO MEMORY LOCATIONS AND STORE THE RESULT IN THIRD MEMORY LOCATION

Posted By: Caitlin Brown     Category: Assembly Language     Views: 14109

A PROGRAM TO WRITE A PROGRAM TO ADD TWO MEMORY LOCATIONS AND STORE THE RESULT IN THIRD MEMORY LOCATION.

Code for PROGRAM TO WRITE A PROGRAM TO ADD TWO MEMORY LOCATIONS AND STORE THE RESULT IN THIRD MEMORY LOCATION in Assembly Language

DATA SEGMENT
        A DB 10H
        B DB 46H
        RES DB ?
DATA ENDS

CODE SEGMENT
ASSUME  DS:DATA, CS:CODE
START:
        MOV AX,DATA
        MOV DS,AX

        MOV AL,A
        ADD AL,B
        MOV RES,AL
        MOV AX,4CH
        INT 21H
CODE ENDS
END START

OUTPUT
***********
 ax 5656
 
  
Share: 



Caitlin Brown
Caitlin Brown author of PROGRAM TO WRITE A PROGRAM TO ADD TWO MEMORY LOCATIONS AND STORE THE RESULT IN THIRD MEMORY LOCATION is from London, United Kingdom.
 
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!