answersLogoWhite

0


Best Answer

The compare and subtract instructions in the 8085 both subtract one operand from another, and set flags accordingly. The subtract instruction stores the result in the accumulator, while the compare instruction does not - except for the flags, the compare instruction "throws" the result away.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

The compare instruction (CMP) in the 8085 subtracts the two operands but does not store the results. What it does do is set flags, in particular, zero, negative, carry, parity, and auxillary carry, so you can follow up the instruction with a conditional branch or call instruction to perform some operation based on the comparison of those two numbers.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How compare instruction is used in 8085?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the instruction for exit in 8085 microprocessors?

There is no exit instruction in the 8085. Do you mean return, as in from a function or interrupt? If so, the instruction is RET.


Is there a multiply instruction?

Not in the 8085.


How many instruction are there in 8085 mp?

There are 74 instructions in the 8085 microprocessor.


What happens when MUL CH instruction is executed?

MUL is not an 8085 instruction.


What is the purpose of adc instruction according to 8085 microprocessor?

this instruction is used to add the specified register content to that of the accumulator along with the carry flag value. this instruction is used in processes which involve continuous addition.


Which is the longest instruction in 8085 instruction set?

CALL, requiring 18 clock cycles.


How many bytes are there for jump instruction in 8085?

There are 74 instructions in the 8085 microprocessor.


What is NOP Instruction stands in 8085 microprocessor?

The NOP instruction is a no-operation instruction. It does nothing to the state of the machine, except to use some time. In the case of the 8085, it uses four clock cycles plus however many wait states are need to access the NOP instruction from memory.


What no of instruction will be execute by using only one clock pulse in 8085 microprocessor?

There are no instructions in the 8085 that execute in only one clock pulse. The minimum number of clock cycles is four; three for instruction fetch and one for instruction decode/execute.


How does the 8085 microprocessor instruction register work?

stores next instructions


According to word size how many instruction in 8085?

The 8085 is an 8 bit processor, so its word length is 8 bits.


PUSH Instruction in 8085 Micro processor?

Push instruction pushes two byte of data on the top of the stack.