answersLogoWhite

0

Lda 8500

mov c,a

cpi 02h

jz l1

cpi 01h

jz l1

mvi e,01h

mvi h,00

mvi b,02h

l4: mvi d,00

mov a,c

l2: sub b

inr d

cmp b

jnc l2

cmp e

jz l3

jnc l3

inr h

l3:inr b

dcr d

jnz l4

mov a,h

cmp e

jz l5

jnc l5

mov a,01

sta 8501

hlt

l5: mov a,0e

sta 8501

hlt

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: 8085 program to check whether no is prime or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp