answersLogoWhite

0


Best Answer

Mov a.#000ff,

mov b,#0008f

add a,b

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in 8051 to add 2 16- bit numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Other Math

Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085


Write a 8051 program to add two 8 bit numbers?

8059


Write down four odd digits that will add up to 19?

There are no four odd numbers that will add up to nineteen.


1 To develop a program using the ADI instruction to add the two hexadecimal numbers 3AH and 48H and store the result in memory location 2100H?

Oh, what a happy little question! To add the two hexadecimal numbers 3AH and 48H using the ADI instruction, you can first load 3AH into the accumulator, then use the ADI 48H instruction to add 48H to the accumulator. Finally, you can store the result in memory location 2100H. Just remember to take your time, enjoy the process, and trust in your abilities to create something wonderful!


How do you solve this problem .41 plus 21.4 plus 6.3 plus 280 step by step?

Here is one way: Add the first two numbers; add the result to the third number; add the result of this to the fourth number.However, to do the addition with pencil and paper, it is best to write the numbers down, one below the other, keeping the decimal points aligned. Then add from the right to the left.Here is one way: Add the first two numbers; add the result to the third number; add the result of this to the fourth number.However, to do the addition with pencil and paper, it is best to write the numbers down, one below the other, keeping the decimal points aligned. Then add from the right to the left.Here is one way: Add the first two numbers; add the result to the third number; add the result of this to the fourth number.However, to do the addition with pencil and paper, it is best to write the numbers down, one below the other, keeping the decimal points aligned. Then add from the right to the left.Here is one way: Add the first two numbers; add the result to the third number; add the result of this to the fourth number.However, to do the addition with pencil and paper, it is best to write the numbers down, one below the other, keeping the decimal points aligned. Then add from the right to the left.

Related questions

Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085


How do you add and subtract 16 bit numbers using 8051 microprocessor?

The 8051 is a microcontroller, not a microprocessor. To add or subtract, use the ADD or SUBB opcodes.


Write a 8051 program to add two 8 bit numbers?

8059


How do you write a program in java to read ten numbers and print sum of ten integers?

Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.


Can we add website link when we write java program?

yes ,i can add the website link in java program when we write.


write simple program to solve the following problems : add the following numbers = 10,222,99,999,74,532?

A+(B+C**3) (A-(+D+B/A+B)


1 To develop a program using the ADI instruction to add the two hexadecimal numbers 3AH and 48H and store the result in memory location 2100H?

Oh, what a happy little question! To add the two hexadecimal numbers 3AH and 48H using the ADI instruction, you can first load 3AH into the accumulator, then use the ADI 48H instruction to add 48H to the accumulator. Finally, you can store the result in memory location 2100H. Just remember to take your time, enjoy the process, and trust in your abilities to create something wonderful!


How do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


Write a program in c plus plus language to add 2 numbers?

int main() { int num1; int num2; int result = num1 + num2; return 0; }


2 Write a program to print a following program?

USING STRING LITERAL VALUES TO ADD 2 NUMBERS If you just want to show the outcome of two numbers you have: PRINT 4 + 5 This will print '9' the answer to 4 + 5. If you want to show the addition: PRINT "4 + 5 = "; 4 + 5 This will show the question and then calculate the answer. If you want the user to input numbers to add, use variables and then add them the same way. ====== COLLECTING USER INPUT FROM THE KEYBOARD/USING NUMERIC VARIABLES In the following example, the end user can get to interact with the program by typing in their numbers at the keyboard; then, pressing the [Enter] key. CLS PRINT "PROGRAM: Add 2 numbers" PRINT INPUT "Enter the 1st number: ", number1 INPUT "Enter the 2nd number: ", number2 PRINT sumTotal=number1+number2 PRINT "The sum total is: "; sumTotal PRINT INPUT "Again, Y/N"; yesNo$ IF UCASE$(LEFT$(yesNo$,1))="Y" THEN RUN END ====== CREATE FUNCTION/THEN, MAKE A FUNCTION CALL TO ADD 2 NUMBERS Another way to write this program is to create a function/then, make a function call... '*** PROGRAM: Add 2 numbers... '*** Variable declaration list... number1=7 '...initialise numeric variable 1 number2=3 '...initialise numeric variable 2 '*** Main program... CLS '...(CL)ear the (S)creen PRINT add(number1,number2) '...make function call/passing in 2 numbers to add END '...END of program/halt program code execution '*** Function(s)... FUNCTION add(num1,num2) '...this line marks the start of the Function add=num1+num2 '...this line returns the sum total of the 2 numbers END FUNCTION '...this line marks the end of the Function


How can you write a program to find the mean resistance in c language given the values of 8 resistances?

"Mean" usually means "average", so you just add the numbers together, then divide by 8.


Suppose AX and BX contains signed numbers write some code to put the bigger one in CX and if they are equal add them in AX?

Da program pa yakho obo olambawa