I want to know how to count the 1's in a result to know the parity flag in assembly.
For example:
MOV AL, 0xFF
MOV BL, 0x01
ADD AL, BL
So the answer here in bits is 1 0000 0000
, but in my professor's reviewer the parity flag = 1 so i assume that the carry out flag is counted too for parity flag? Am i correct or is my reviewer wrong?
And also, the overflow flag = 0? Why is that?