0% found this document useful (0 votes)
34 views

Program Number: 2 Date: / / Title

This program adds two 16-bit numbers stored in memory locations NO1 and NO2. It loads the numbers into registers CX and DX, adds them together with the result stored in CX, and exits the program by calling an interrupt. The final value in CX after adding 1234H and 4567H will be 579BH.

Uploaded by

Saurabh Patel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Program Number: 2 Date: / / Title

This program adds two 16-bit numbers stored in memory locations NO1 and NO2. It loads the numbers into registers CX and DX, adds them together with the result stored in CX, and exits the program by calling an interrupt. The final value in CX after adding 1234H and 4567H will be 579BH.

Uploaded by

Saurabh Patel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROGRAM NUMBER:

DATE:

TITLE: PROGRAM TO ADD TWO 16-BIT NUMBER STORED IN MEMORY. CODE: DATA SEGMENT NO1 DW 1234H NO2 DW 4567H DATA ENDS CODE SEGMENT ASSUME CS:CODE, DS: DATA START: MOV AX,DATA MOV DS,AX

MOV CX,NO1 MOV DX,NO2 ADD CX,DX MOV AX,4C00H INT 21H CODE ENDS END START

OUTPUT: At the end of program, the addition of 1234H and 4567H i.e (579BH) will be stored in CX.

You might also like