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

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
JudyJudy
Simplicity is my specialty.
Chat with Judy
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

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