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

Method verr

source/emulation/cpu/common/cpu.cpp:1145–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145void CPU::verr(U32 selector) {
1146 this->fillFlags();
1147 if (selector == 0) {
1148 this->removeZF();
1149 return;
1150 }
1151 U32 index = selector >> 3;
1152 struct user_desc* ldt = this->thread->getLDT(index);
1153
1154 if (!ldt || ldt->seg_not_present) {
1155 this->removeZF();
1156 } else {
1157 this->addZF();
1158 }
1159}
1160
1161void CPU::verw(U32 selector) {
1162 this->fillFlags();

Callers 3

common_verre16Function · 0.80
common_verrFunction · 0.80
normal_verre16Function · 0.80

Calls 4

fillFlagsMethod · 0.95
removeZFMethod · 0.95
addZFMethod · 0.95
getLDTMethod · 0.45

Tested by

no test coverage detected