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
Copyright © 2026 eLLeNow.com All Rights Reserved.