Logo 
Search:

Assembly Language Articles

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

PROGRAM TO WRITE A PROGRAM TO PERFORM ADDITION OF TWO OPERANDS DECIMAL,BINARY,OCTAL,HEXADECIMAL

Posted By: Mikayla Campbell     Category: Assembly Language     Views: 8692

PROGRAM TO WRITE A PROGRAM TO PERFORM ADDITION OF TWO
OPERANDS DECIMAL,BINARY,OCTAL,HEXADECIMAL.

Code for PROGRAM TO WRITE A PROGRAM TO PERFORM ADDITION OF TWO OPERANDS DECIMAL,BINARY,OCTAL,HEXADECIMAL in Assembly Language

DATA SEGMENT
        A DB 10H
        B DB 20H
        D DB 10
        E DB 20
        F DB 10O
        G DB 20O
        J DB 1010B
        K DB 10100B
        
DATA ENDS

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

                MOV AL,A
                MOV BL,B

                ADD DL,AL
                ADD DL,BL

                MOV AH,D
                ADD AH,E

                MOV BH,F
                ADD BH,G

                MOV CL,J
                ADD CL,K

                MOV AX,4C00H
                INT 21H
CODE ENDS
        END START


OUTPUT
***********

 ax 06C1
 bx CD38
 cx F639
 dx 094E
 
  
Share: 



Mikayla Campbell
Mikayla Campbell author of PROGRAM TO WRITE A PROGRAM TO PERFORM ADDITION OF TWO OPERANDS DECIMAL,BINARY,OCTAL,HEXADECIMAL is from Toronto, Canada.
 
View All Articles

 
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!