What is compare instruction 8086 microprocessor?

1 answer

Answer

1032480

2026-04-06 21:35

+ Follow

the compare instruction of 808 is used to compare the 2 operands.

syntax: cmp op1,op2

algorithm: op1-op2

the value of the operands are not affected only the flags are updated

if op1<op2 carry=1 and zero flag=0

if op1=op2 cy=0 and zf=1

if op1>op2 cy=0 and zf=0

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.