answersLogoWhite

0

The 8085 is an 8-bit computer, with only limited capability to do 16 bit arithmetic. In order to add two 16-bit numbers, NUM1 and NUM2, together, and store the result at NUM3, you can use the code...

LHLD NUM1

XCHG

LHLD NUM2

DAD D

SHLD NUM3

If you want to subtract NUM1 from NUM2, you need to take the two's complement first, by inverting it and adding one...

LHLD NUM1

MOV A,H

CMA

MOV H,A

MOV A,L

CMA

MOV L,A

INX H

... and then continue with adding NUM2...

XCHG

LHLD NUM2

DAD D

SHLD NUM3

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the group of two addition and two subtraction that uses the same three numbers?

The group of two addition and two subtraction using the same three numbers can be represented as follows: Given numbers (a), (b), and (c), one possible arrangement is ( (a + b) - c + (a - b) ). This expression uses addition and subtraction to combine the same three numbers in different ways, resulting in a calculation that involves each of the numbers.


Which operations require you to align numbers using their decimal points before you begin a calculation?

Addition and subtraction.


How do you make 36 using subtraction division multiplication and addition and brackets by using the numbers 2 7 4 3?

It is: 23+(4*7) = 36.


What is a mathematical phrase made up of numbers and variables connected by addition or subtraction operators?

A mathematical phrase made up of numbers and variables connected by addition or subtraction operators is called an algebraic expression. For example, the expression (3x + 5 - 2y) consists of the variables (x) and (y), along with the constants 3, 5, and -2, combined using addition and subtraction. Algebraic expressions do not include equality signs or inequalities.


How do you solve an equation using addition?

Addition and subtraction are inverse operations. So you can solve addition by subtracting.


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


What perform a possible math operation?

By using division, multiplication, addition or subtraction


How many numbers can you make with the numbers 480523 and using all the numbers?

By simply re-ordering the digits, you can get 500 6-digit numbers, excluding those starting with 0. There are thousands more that can be made using mathematical operations such as addition, subtraction, multiplication, division, exponentiation, factorials and so on.


How do you get any of the same three numbers to equal one greater then them using only addition subtraction division and multiplication?

Divide the first two of the same three numbers by eachother, and then add the third same number to the answer you get.


How can you use subtraction to complete an addition pattern using 3?

To complete an addition pattern using 3, you can rearrange the addition statements by using subtraction. For example, if the pattern is 3, 6, 9, you can see that each number increases by 3. To find the previous number in the sequence, you can subtract 3 from the current number: 9 - 3 = 6 and 6 - 3 = 3. This shows that subtraction can help identify the consistent step in an addition pattern.


Write down a word problem using addition and subtraction?

3-3=0


How can you get 500 with out using addition subtraction and 5?

505