mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-31 00:11:02 +00:00
replace printf() with logger
This commit is contained in:
@@ -948,11 +948,12 @@ void windows_emulator::on_instruction_execution(const uint64_t address)
|
|||||||
|
|
||||||
auto& emu = this->emu();
|
auto& emu = this->emu();
|
||||||
|
|
||||||
printf("Inst: %16" PRIx64 " - RAX: %16" PRIx64 " - RBX: %16" PRIx64 " - RCX: %16" PRIx64 " - RDX: %16" PRIx64
|
log.print(color::gray,
|
||||||
" - R8: %16" PRIx64 " - R9: %16" PRIx64 " - RDI: %16" PRIx64 " - RSI: %16" PRIx64 " - %s\n",
|
"Inst: %16" PRIx64 " - RAX: %16" PRIx64 " - RBX: %16" PRIx64 " - RCX: %16" PRIx64 " - RDX: %16" PRIx64
|
||||||
address, emu.reg(x64_register::rax), emu.reg(x64_register::rbx), emu.reg(x64_register::rcx),
|
" - R8: %16" PRIx64 " - R9: %16" PRIx64 " - RDI: %16" PRIx64 " - RSI: %16" PRIx64 " - %s\n",
|
||||||
emu.reg(x64_register::rdx), emu.reg(x64_register::r8), emu.reg(x64_register::r9), emu.reg(x64_register::rdi),
|
address, emu.reg(x64_register::rax), emu.reg(x64_register::rbx), emu.reg(x64_register::rcx),
|
||||||
emu.reg(x64_register::rsi), binary ? binary->name.c_str() : "<N/A>");
|
emu.reg(x64_register::rdx), emu.reg(x64_register::r8), emu.reg(x64_register::r9),
|
||||||
|
emu.reg(x64_register::rdi), emu.reg(x64_register::rsi), binary ? binary->name.c_str() : "<N/A>");
|
||||||
}
|
}
|
||||||
|
|
||||||
void windows_emulator::setup_hooks()
|
void windows_emulator::setup_hooks()
|
||||||
|
|||||||
Reference in New Issue
Block a user