From 507e0b59896779d0276456c780ad2aefc3dbc28a Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 9 Apr 2016 17:42:48 -0400 Subject: emitter: Add CALL that can be fixed up. --- src/common/x64/emitter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/common/x64/emitter.cpp') diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp index 6c8d10ea7..5662f7f86 100644 --- a/src/common/x64/emitter.cpp +++ b/src/common/x64/emitter.cpp @@ -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; -- cgit v1.2.3