Fixing rdx clobber from mul/div.

This commit is contained in:
Ben Vanik
2014-02-02 01:51:38 -08:00
parent bca349b302
commit ae02dc7eba
2 changed files with 10 additions and 0 deletions

View File

@@ -73,6 +73,10 @@ void CallNative(X64Emitter& e, void* target) {
e.mov(e.rdx, e.qword[e.rcx + 8]); // membase
}
void ReloadRDX(X64Emitter& e) {
e.mov(e.rdx, e.qword[e.rcx + 8]); // membase
}
// Sets EFLAGs with zf for the given value.
// ZF = 1 if false, 0 = true (so jz = jump if false)
void CheckBoolean(X64Emitter& e, Value* v) {