Mail Archives: djgpp/1997/07/13/17:09:46
Nate Eldredge wrote:
>
> Well, I hate to rain on everybody's parade here, but the Intel `80386
> Programmer's Reference Manual' says this about the parity flag:
>
> Parity Flag -- Set if low-order eight bits of result contain an even number
> of 1 ^^^^^^^^^^^^^^^^^^^^
> bits; cleared otherwise.
>
> So the parity flag only shows the parity of the low byte. It would be
> theoretically possible to check each byte of the int with this scheme and
> then combine your results, but it would doubtless be ugly and probably
> slower than the shift method.
Bummer! Just verified it too.
>
> Sorry. :-(
Hey, that's all right. Better you than the cpu giving appearently wrong
results!
Bill
--
Leave others their otherness.
- Raw text -