Skip to main content
6 events
when toggle format what by license comment
Mar 29, 2018 at 19:14 history edited qwr CC BY-SA 3.0
added 62 characters in body
Mar 29, 2018 at 18:55 comment added qwr @PeterCordes Huh, I seemed to have misunderstood the parity flag. I am still working on my other answer. I'll edit the answer. And as you can probably tell, I am a beginner so basic tips help.
Mar 29, 2018 at 18:49 comment added Peter Cordes Anyway, if this answer said "use flags already set by other instructions to avoid test / cmp", then that would be pretty basic beginner x86, but still worth an upvote.
Mar 29, 2018 at 18:46 comment added Peter Cordes When have you ever used the parity flag? You know it's the horizontal xor of the low 8 bits of the result, right? (Regardless of operand-size, PF is set only from the low 8 bits; see also). Not even-number / odd-number; for that check ZF after test al,1; you usually don't get that for free. (Or and al,1 to create an integer 0/1 depending on odd/even.)
Mar 29, 2018 at 17:48 history edited qwr CC BY-SA 3.0
added 162 characters in body
Mar 29, 2018 at 17:43 history answered qwr CC BY-SA 3.0