- added OP_MOVES, OP_CONCAT, OP_LENS, OP_CMPS

This commit is contained in:
Jonathan Russell 2018-09-13 20:31:06 +01:00
commit 0b6c514067
5 changed files with 81 additions and 10 deletions

View file

@ -12,7 +12,13 @@ void JitCompiler::EmitMOVEF()
void JitCompiler::EmitMOVES()
{
I_FatalError("EmitMOVES not implemented\n");
auto loadLambda = [](FString* to, FString* from) -> void {
*to = *from;
};
auto call = cc.call(ToMemAddress(reinterpret_cast<void*>(static_cast<void(*)(FString*, FString*)>(loadLambda))),
asmjit::FuncSignature2<void, FString*, FString*>(asmjit::CallConv::kIdHostCDecl));
call->setArg(0, regS[A]);
call->setArg(1, regS[B]);
}
void JitCompiler::EmitMOVEA()