Assembly Language Articles

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

Program to add two 32 bit nos

Posted By: Nicole Hughes     Category: Assembly Language     Views: 284447

Write a program to add two 32 bit nos.

Code for Program to add two 32 bit nos in Assembly Language

data segment
    val1 dw 1111h
    val2 dw 2222h
    val3 dw 3333h
    val4 dw 4444h
data ends

code segment
    assume cs:code, ds:data
start :
    mov ax, data
    mov ds, ax

    mov dx, val1
    add dx, val3

    mov cx, val2
    adc cx, val4

    mov ax, 4c00h
    int 21h
code ends
    end start


Didn't find what you were looking for? Find more on Program to add two 32 bit nos Or get search suggestion and latest updates.

Nicole Hughes
Nicole Hughes author of Program to add two 32 bit nos 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!