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

Method log

source/emulation/cpu/decoder.cpp:6556–6571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6554}
6555
6556void DecodedOp::log(CPU* cpu) {
6557#ifdef _DEBUG
6558 if (cpu->logFile.isOpen() && this->inst >= 0 && this->inst < None) {
6559 BOXEDWINE_CRITICAL_SECTION;
6560 U64 pos = cpu->logFile.getPos();
6561 cpu->logFile.writeFormat("%04X %08X ", cpu->thread->id, cpu->eip.u32);
6562 cpu->logFile.write(toString().c_str());
6563 U64 endPos = cpu->logFile.getPos();
6564 if (endPos - pos < 55) {
6565 cpu->logFile.write(B(" ").substr(0, (U32)(55 - (endPos - pos))));
6566 }
6567 cpu->logFile.writeFormat(" EAX=%.8X ECX=%.8X EDX=%.8X EBX=%.8X ESP=%.8X EBP=%.8X ESI=%.8X EDI=%.8X SS=%.8X DS=%.8X FLAGS=%.8X\n", EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, cpu->seg[SS].address, cpu->seg[DS].address, cpu->flags);
6568 cpu->logFile.flush();
6569 }
6570#endif
6571}

Callers 15

getEmscriptenEnvPropsFunction · 0.80
getDDrawOverridePathFunction · 0.80
getEnvPropFunction · 0.80
getCPUFunction · 0.80
getResolutionFunction · 0.80
getFrameSkipFunction · 0.80
getBitsPerPixelFunction · 0.80
getAutoRunFunction · 0.80
getLoadDesktopFunction · 0.80
getSoundFunction · 0.80
getDisableHideCursorFunction · 0.80
getExecutableFunction · 0.80

Calls 8

BFunction · 0.85
writeFormatMethod · 0.80
substrMethod · 0.80
isOpenMethod · 0.45
getPosMethod · 0.45
writeMethod · 0.45
c_strMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected