mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-20 04:03:57 +00:00
Almost running application
This commit is contained in:
@@ -158,7 +158,8 @@ namespace
|
||||
emu.hook_memory_execution(exp.first, 0,
|
||||
[n = std::move(name), filename](const uint64_t address, const size_t)
|
||||
{
|
||||
printf("Executing function: %s - %s (%llX)\n",filename.c_str(), n.c_str(), address);
|
||||
printf("Executing function: %s - %s (%llX)\n", filename.c_str(), n.c_str(),
|
||||
address);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -189,6 +190,9 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
binary.entry_point = binary.image_base + optional_header.AddressOfEntryPoint;
|
||||
|
||||
printf("Mapping %s at %llX\n", name.c_str(), binary.image_base);
|
||||
|
||||
emu.write_memory(binary.image_base, ptr, optional_header.SizeOfHeaders);
|
||||
|
||||
Reference in New Issue
Block a user