flat assembler
Message board for the users of flat assembler.

Index > Main > Parity Flag. Error in Intel's manuals???

Author
Thread Post new topic Reply to topic
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 03 Aug 2008, 10:59
Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 1: Basic Architecture, APPENDIX B EFLAGS CONDITION CODES.
Table B-1. EFLAGS Condition Codes says:
Code:
Mnemonic    Condition      Status Flag Setting
P           Parity         PF = 1
PE          Parity even
--------------------
NP          No parity      PF = 0
PO          Parity odd
    


When tested under Bochs (DEC CX / JP label), if result is even, PF = 0 and vice versa.
It seems, that there's an error in the manual... Or it is a bug in the emulator?
Post 03 Aug 2008, 10:59
View user's profile Send private message Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 03 Aug 2008, 11:25
I've got it. sorry. it's my mistake. I've read the manual carefully, and it says:
Parity flag — Set if the least-significant byte of the result
contains an even number of 1 bits; cleared otherwise.
Post 03 Aug 2008, 11:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.