What exactly does BitwiseXNOR mean?

77 Views Asked by At

In x86 TEST instruction, we have the following operations:

Temporary = Source1 & Source2;
SF = MSB(Temporary);
if(Temporary = 0) ZF = 1;
else ZF = 0;
PF = BitwiseXNOR(Temporary[0:7]);
for(PF = 1, i = 0; i < 8; ++i) PF ^= Temporary[i];
CF = 0;
OF = 0;
AF = Undefined;

I don't get how is BitwiseXNOR(Temporary[0:7] calculated. I know what XNOR does and what is its truth table, but doesn't XNOR always need two operands? And more importantly, PF is just one bit, how does a bitwise calculation of 8-bit results in a 1-bit flag?

0

There are 0 best solutions below