MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / setPFonValue

Method setPFonValue

source/emulation/cpu/common/cpu.cpp:960–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958
959extern U8 parity_lookup[256] ;
960void CPU::setPFonValue(U32 value) {
961#ifdef _DEBUG
962 if (this->lazyFlagType !=FLAGS_NONE) {
963 kpanic("CPU::fillFlags must be called before CPU::setPFonValue");
964 }
965#endif
966 this->flags&=~PF;
967 if (parity_lookup[value & 0xFF])
968 this->flags|=PF;
969}
970
971void CPU::setFlags(U32 flags, U32 mask) {
972#ifdef _DEBUG

Callers 6

daaFunction · 0.80
dasFunction · 0.80
aaaFunction · 0.80
aasFunction · 0.80
aadFunction · 0.80
aamFunction · 0.80

Calls 1

kpanicFunction · 0.85

Tested by

no test coverage detected