mirror of
https://github.com/BepInEx/Dobby.git
synced 2026-11-13 20:06:11 -10:00
17 lines
334 B
C++
17 lines
334 B
C++
#include "platform_macro.h"
|
|
#if defined(TARGET_ARCH_X64)
|
|
|
|
#include "core/modules/assembler/assembler-x64.h"
|
|
|
|
using namespace zz::x64;
|
|
|
|
void Assembler::jmp(Immediate imm) {
|
|
buffer_->Emit8(0xE9);
|
|
buffer_->Emit32((int)imm.value());
|
|
}
|
|
|
|
uint64_t TurboAssembler::CurrentIP() {
|
|
return pc_offset() + (addr_t)realized_address_;
|
|
}
|
|
|
|
#endif |