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

Latest

programs

Thursday, October 13, 2011

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



ADDITION OF TWO 8-BIT NUMBERS

Aim: -   To write an assembly language program for addition of two 8-bit numbers.

MOV AL, FIRST
ADD AL, SECOND
MOV SUM, AL
MOV AL, 00
ADC AL, 00
MOV SUM+1, AL
END

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

No comments:

Post a Comment