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
Chat with our AI personalities
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!
sample program in sum of the series using the formula for s=n/2[2a+{n-1}d] in 8085
The most significant difference between the Intel 8085 and 8086 microprocessors is that the 8085 is an 8-bit system and the 8086 is a 16-bit system. This difference allows the 8086 system to have a much larger set of operational instructions and can make calculations to more significant places. Note: the 8085 processor does have two 16-bit registers. The pointer and the program counter.
Lda 3000mov c,acpi 02hjz 2025cpi 01hjz 202dcpi 01hjz 202dmvi b,02hsub bjz 202djnc 2015inr bmov a,ccmp bjz 2025jnz 2015mvi a,01sta 27f6jmp 2032mvi a,0esta 27f6call 06fahlt
In the 8085, if the accumulator starts as 00H, then adding 89H and 79H to it results in a value of 02H with CARRY set.