mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-20 06:08:56 +02:00
emitter: Add CALL that can be fixed up.
This commit is contained in:
parent
0f9796a63e
commit
2d9c714baf
2 changed files with 13 additions and 0 deletions
|
|
@ -455,6 +455,18 @@ void XEmitter::CALL(const void* fnptr)
|
|||
Write32(u32(distance));
|
||||
}
|
||||
|
||||
FixupBranch XEmitter::CALL()
|
||||
{
|
||||
FixupBranch branch;
|
||||
branch.type = 1;
|
||||
branch.ptr = code + 5;
|
||||
|
||||
Write8(0xE8);
|
||||
Write32(0);
|
||||
|
||||
return branch;
|
||||
}
|
||||
|
||||
FixupBranch XEmitter::J(bool force5bytes)
|
||||
{
|
||||
FixupBranch branch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue