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

What else can I help you with?

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


Can you write a hex program of 8051 on 8085?

Writing a hex program for the 8051 microcontroller on an 8085 microprocessor is not directly feasible, as they are based on different architectures and instruction sets. The 8051 uses its own assembly language and has features like built-in I/O ports and timers that are not present in the 8085. However, you can create a similar program in 8085 assembly language that performs equivalent tasks, keeping in mind the differences in hardware capabilities and instruction sets. You would need to carefully translate the logic and functionality from the 8051 program to suit the 8085 environment.


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.


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