What is CMP in 8085 microprocessor?

1 answer

Answer

1258117

2026-08-12 16:00

+ Follow

In the 8085 microprocessor, CMP (Compare) is an instruction used to compare the contents of the accumulator (register A) with another specified register or memory location. It effectively subtracts the value of the specified operand from the accumulator but does not store the result; instead, it sets the status flags (zero, carry, and sign) based on the outcome of the comparison. This allows for conditional branching in programs, as the results can be used to determine the flow of execution. The CMP instruction helps in decision-making processes within the microprocessor's operation.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.