Logo 
Search:

Assembly Language Articles

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

PROGRAM TO FIND THE ADDITION OF TWO 32- BIT NUMBERS

Posted By: Bing Fischer     Category: Assembly Language     Views: 24669

A PROGRAM TO FIND THE ADDITION OF TWO 32- BIT NUMBERS.

Code for PROGRAM TO FIND THE ADDITION OF TWO 32- BIT NUMBERS in Assembly Language

DATA SEGMENT
        A DD 30H
        B DD 50H
        RES DD ?
DATA ENDS

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

        MOV AX,DS:WORD PTR A
        ADC AX,DS:WORD PTR B
        MOV BX,DS:WORD PTR A+2
        ADD BX,DS:WORD PTR [B+2]
        MOV DS:WORD PTR RES,AX
        MOV DS:WORD PTR [RES+2],BX

        MOV AX,4CH
        INT 21H

CODE ENDS
END START

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

 ax 0080
 
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM TO FIND THE ADDITION OF TWO 32- BIT NUMBERS Or get search suggestion and latest updates.

Bing Fischer
Bing Fischer author of PROGRAM TO FIND THE ADDITION OF TWO 32- BIT NUMBERS is from Frankfurt, Germany.
 
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!