How do you detect if two 8-bit signals are same?
by using X-OR(Exclusive-OR ) gate and checking using zero flag ( it should be set if two 8-bit signals are same) . also the accumulator contents will also become all bits areoooo oooo.