Aim: – To write an assembly language program for subtraction of two 16-bit numbers.
1 2 3 4 5 6 7 | 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.
Aim: – To write an assembly language program for subtraction of two 16-bit numbers.
1 2 3 4 5 6 7 | 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.
Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.
how to subtract three integers using only 16 bit registers