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

Method fillFlagsNoZF

source/emulation/cpu/common/cpu.cpp:876–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876void CPU::fillFlagsNoZF() {
877 if (this->lazyFlagType !=FLAGS_NONE) {
878 int newFlags = this->flags & ~(CF|AF|OF|SF|ZF|PF);
879 const LazyFlags* lazyFlag = lazyFlags[this->lazyFlagType];
880
881 if (lazyFlag->getAF(this)) newFlags |= AF;
882 if (lazyFlag->getCF(this)) newFlags |= CF;
883 if (lazyFlag->getPF(this)) newFlags |= PF;
884 if (lazyFlag->getSF(this)) newFlags |= SF;
885 if (lazyFlag->getOF(this)) newFlags |= OF;
886 this->flags = newFlags;
887 this->lazyFlagType = FLAGS_NONE;
888 }
889}
890
891bool CPU::getCF() {
892 return lazyFlags[this->lazyFlagType]->getCF(this) != 0;

Callers 8

common_bsfr16r16Function · 0.80
common_bsfr16e16Function · 0.80
common_bsfr32r32Function · 0.80
common_bsfr32e32Function · 0.80
common_bsrr16r16Function · 0.80
common_bsrr16e16Function · 0.80
common_bsrr32r32Function · 0.80
common_bsrr32e32Function · 0.80

Calls 5

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

Tested by

no test coverage detected