answersLogoWhite

0


Best Answer

;Write a program to add two 32-bit numbers stored in RAM locations. ;Let's assume that the numbers are stored at RAM location 40-43H and 50-53H respectively. ORG 0H MOV 40H, #23 MOV 41H, #15 MOV 42H, #60 MOV 43H, #70 MOV 50H, #30 MOV 51H, #40 MOV 52H, #63 MOV 53H, #77 MOV R0, #40H ;pointer of bank 0 MOV R1, #60H ;result storage bank 0 MOV R2, #4 ;counter SETB RS0 MOV R1, #50H ;pointer bank 1 CLR RS0 CLR C REPEAT: MOV A, @R0 SETB RS0 ADDC A, @R1 INC R1 CLR RS0 MOV @R1, A INC R0 INC R1 DJNZ R2, REPEAT JNC EXIT INC @R1 EXIT: NOP SJMP $ END

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to add and subtract two 32 bit numbers in 8085 microprocessor?
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


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


Write a program to subtract two 16 bit numbers in microprocessor 8085?

LHLD 4000H : Get first 16-bit number in HLXCHG : Save first 16-bit number in DELHLD 4002H : Get second 16-bit number in HLMOV A, E : Get lower byte of the first numberSUB L : Subtract lower byte of the second numberMOV L, A : Store the result in L registerMOV A, D : Get higher byte of the first numberSBB H : Subtract higher byte of second number with borrowMOV H, A : Store l6-bit result in memory locations 4004H and 4005H.SHLD 4004H : Store l6-bit result in memory locations 4004H and 4005H.HLT : Terminate program execution.


How is adding and subtracting decimals similar to and different from adding and subtracting whole numbers?

You write down the numbers you want to add and subtract, making sure the decimal points are aligned. Then, you add (or subtract) EXACTLY as you would add or subtract integers. The decimal point in the solution should be aligned with the decimal points in the original numbers.

Related questions

Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


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

write it in 8085


Write a program to multiply two 8 bit numbers in microprocessor 8086?

mov ax,1234hmov bx,03hmul bxhlt( "THIS IS THE PROGRAMM CODING FOR 8 BIT 2NUMBERE'S MULTIPLICATION


Write a program to subtract integer y from integer x?

x -=y;


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


How do you write Ascending order program using 8086 microprocessor?

One many find this answer on YouTube. One also may find out how to write ascending order programs using an 8086 microprocessor by looking at the owners manual.


How do you write a assembly language program to subtract two 8 bit numbers?

Code for 8085 microprocessor. MVI A, Number1 SUI Number2 The code works as follows: Register A = Number1 - Number2


How do write sorting of numbers using microprocessor?

There are several methods available to sort numbers. A simple way to program sorting is the so-called "bubble-sort". This is inefficient for larger lists of numbers; in which case it is more convenient to use one of the faster algorithms, for example, "quick-sort".


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?

Sp[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Answer]]ell chec[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answer it!]]k your answe[[Q/Discuss:Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Disc]][[help/answering questions|guidelin]]Spell check your answeresussionr[[help/signing in|full benefits]] Save C[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 ]][[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answering 'Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?']]matrix?ancel[[Q/How many animals are in West Texas|How many animals are in West Texas?]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]] Service workshop?[[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]]More Q&A


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html