answersLogoWhite

0


Best Answer

LDA 9000H

MOV B,A

LDA 9001H

MOV E,A

MVI C,00H

MOV A,B

LOOP : INR C

SUB E

JNZ LOOP

ADD E

DCR C

STA 9002H

MOV E,A

STA 9003H

Input the 2 numbers in 9000 & 9001.

Remainder stored in 9002, Quotient stored in 9003.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago
  • MOV A, L : Get lower 2 digits of no. 1
  • ADD E : Add two lower digits
  • DAA : Adjust result to valid BCD
  • STA 2300H : Store partial result
  • MOV A, H : Get most significant 2 digits of number
  • ADC D : Add two most significant digits
  • DAA : Adjust result to valid BCD
  • STA 2301H : Store partial result
  • HLT : Terminate program execution.
This answer is:
User Avatar

User Avatar

Wiki User

11y ago

hi,maggie, a 2nd year cse student in methodist college of engg and tech hydrebad India.....Here's the program, please correct it if i am wrong

lxi h,4150

mov b,m //get divident in b-reg

mvi c,00 // clear c-reg for quotient

inx h

mov a,m //get the divisor in A reg

Next cmp b // compare A reg with b reg

jc loop // jump on carry to loop

sub b // sub A reg from b reg

inr c// increment content of register c

jmp NEXT// jump to next

loop sta 4152// store the remainder

mov a,c

sta 4153//store the quotient

hlt

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write program to divide two number using 8085 microprocessor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


Why you write H after number in microprocessor?

Writing H after a number means the number is a hexadecimal, or base 16, number.


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.


Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


How do you write program to convert meter to kilometer in c plus plus?

Divide it by 1000.


How do you write a mix number?

you divide the denominator to the numerator


What number would you divide by to write the fraction 60 over 80?

Divide by 80.


How do you write a program in c for left factoring?

Store both the number in two variable X and Y. Divide X by Y. If remainder is zero then Y is HCF.


How do you write 50 percent as a decimal?

To write a percent as a decimal, divide the number by 100. So, divide 50 by 100. The answer is .50.