answersLogoWhite

0


Best Answer

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

12y ago
This answer is:
User Avatar

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
Related questions

Prime numbers between 1 to 10 in microprocessor 8085?

program to find prime number in 8085 microprocessor


Program for interfacing of relay with 8085?

we want relay interface with 8085 and also attech the program


Write a 8085 microprocessor program to check whether a give number is even or odd?

Lxi h, 2000h mov a,m mov b,a inx h mov a,m add b sta 2002h hlt


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.


Program to convert hex to decimal in 8085?

jump,b


2x2 matrix multiplication program in 8085 processor?

how to write a program for matrix multiplication in microprocesspr


What is subroutine in 8085?

in 8085 microprocessor a subroutine is a separate program written aside from main program ,this program is basically the program which requires to be executed several times in the main program. the microprocessor can call subroutine any time using CALL instruction . after the subroutine is executed the subbroutine hands over the program to main program using RET instruction.


How do you write a program in 8085?

Either in Assembly or in some high level language/the hex-code (for the mnemonics) that the microprocessor 8085 generally understands.


What are the factors and prime factors of 8085?

The factors of 8085 are 1, 3, 5, 7, 11, 15, 21, 33, 35, 49, 55, 77, 105, 147, 165, 231, 245, 385, 539, 735, 1155, 1617, 2695, and 8085 8085 = 3*5*7*7*11, so the prime factors are 3, 5, 7 and 11. 7 is used twice!


How do you build 8085 using vhdl?

VHDL is a hardware description language. It describes the functionality of a hardware as a program. If we know the architecture of 8085, the same can be implemented or coded using VHDL.


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

write it in 8085


To find LCM of n numbers using 8085 programs?

sample program in sum of the series using the formula for s=n/2[2a+{n-1}d] in 8085