ADDITION OF TWO 16-BIT NUMBERS MICROPROCESSOR AND MICROCONTROLLER LAB MANUAL - Code

Latest

programs

Thursday, October 13, 2011

ADDITION OF TWO 16-BIT NUMBERS MICROPROCESSOR AND MICROCONTROLLER LAB MANUAL


ADDITION OF TWO 16-BIT NUMBERS


Aim: -   To write an assembly language program for Addition of two 16-bit numbers.

            MOV AX, FIRST
            ADD AX, SECOND
             MOV SUM, AX
             MOV AX, 00
             ADC AX, 00
            MOV SUM+2, AX
             END

Result: Addition of two 16-bit numbers is obtained.

No comments:

Post a Comment