SUBTRACTION OF TWO 16-BIT NUMBERS MICROPROCESSOR AND MICROCONTROLLER LAB MANUAL - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Thursday, October 13, 2011

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



SUBTRACTION OF TWO 16-BIT NUMBERS

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

            MOV AX, FIRST
            SUB AX, SECOND
             MOV DIFF, AX
             MOV AX, 00
             ADC AX, 00
             MOV DIFF+2, AX
              END

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

No comments:

Post a Comment