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

Method fillFlags

source/emulation/cpu/common/cpu.cpp:845–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void CPU::fillFlags() {
846 if (this->lazyFlagType !=FLAGS_NONE) {
847 int newFlags = this->flags & ~(CF|AF|OF|SF|ZF|PF);
848 const LazyFlags* lazyFlag = lazyFlags[this->lazyFlagType];
849
850 if (lazyFlag->getAF(this)) newFlags |= AF;
851 if (lazyFlag->getZF(this)) newFlags |= ZF;
852 if (lazyFlag->getPF(this)) newFlags |= PF;
853 if (lazyFlag->getSF(this)) newFlags |= SF;
854 if (lazyFlag->getCF(this)) newFlags |= CF;
855 if (lazyFlag->getOF(this)) newFlags |= OF;
856 this->flags = newFlags;
857 this->lazyFlagType = FLAGS_NONE;
858 }
859}
860
861void CPU::fillFlagsNoCF() {
862 if (this->lazyFlagType !=FLAGS_NONE) {

Callers 15

larMethod · 0.95
lslMethod · 0.95
verrMethod · 0.95
verwMethod · 0.95
common_comisdXmmXmmFunction · 0.45
common_comisdXmmE64Function · 0.45
common_setFlagsFunction · 0.45
common_fillFlagsFunction · 0.45
common_cmpxchg8bFunction · 0.45
common_cmpxchg8b_lockFunction · 0.45
common_comissXmmXmmFunction · 0.45
common_comissXmmE32Function · 0.45

Calls 6

getAFMethod · 0.45
getZFMethod · 0.45
getPFMethod · 0.45
getSFMethod · 0.45
getCFMethod · 0.45
getOFMethod · 0.45

Tested by

no test coverage detected