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

Method fetchByte

source/emulation/cpu/common/cpu.cpp:1202–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202U8 CPU::fetchByte(U32* eip) {
1203 if (*eip - this->seg[CS].address == 0xFFFF && !this->isBig()) {
1204 kpanic("eip wrapped around.");
1205 }
1206 return this->memory->readb((*eip)++);
1207}
1208
1209DecodedOp* CPU::getNextOp(U32 jumpTargetFlags) {
1210 return getOp(getEipAddress(), jumpTargetFlags);

Callers 1

fetch8Method · 0.80

Calls 3

isBigMethod · 0.95
kpanicFunction · 0.85
readbMethod · 0.45

Tested by

no test coverage detected