diff options
| author | 2016-04-09 17:42:48 -0400 | |
|---|---|---|
| committer | 2016-04-13 23:04:50 -0400 | |
| commit | 507e0b59896779d0276456c780ad2aefc3dbc28a (patch) | |
| tree | 22ab065a6afc6de7e6b4e2fb6b17dd4f15a5daac /src/common/x64/emitter.cpp | |
| parent | shader_jit_x64: Separate initialization and code generation for readability. (diff) | |
| download | yuzu-507e0b59896779d0276456c780ad2aefc3dbc28a.tar.gz yuzu-507e0b59896779d0276456c780ad2aefc3dbc28a.tar.xz yuzu-507e0b59896779d0276456c780ad2aefc3dbc28a.zip | |
emitter: Add CALL that can be fixed up.
Diffstat (limited to 'src/common/x64/emitter.cpp')
| -rw-r--r-- | src/common/x64/emitter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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) | |||
| 455 | Write32(u32(distance)); | 455 | Write32(u32(distance)); |
| 456 | } | 456 | } |
| 457 | 457 | ||
| 458 | FixupBranch XEmitter::CALL() | ||
| 459 | { | ||
| 460 | FixupBranch branch; | ||
| 461 | branch.type = 1; | ||
| 462 | branch.ptr = code + 5; | ||
| 463 | |||
| 464 | Write8(0xE8); | ||
| 465 | Write32(0); | ||
| 466 | |||
| 467 | return branch; | ||
| 468 | } | ||
| 469 | |||
| 458 | FixupBranch XEmitter::J(bool force5bytes) | 470 | FixupBranch XEmitter::J(bool force5bytes) |
| 459 | { | 471 | { |
| 460 | FixupBranch branch; | 472 | FixupBranch branch; |