mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- fix offsetting bug when loading address registers
This commit is contained in:
parent
db78d02d79
commit
f0dbc8414a
1 changed files with 3 additions and 3 deletions
|
@ -2409,7 +2409,7 @@ private:
|
||||||
FString regname;
|
FString regname;
|
||||||
regname.Format("regD%d", i);
|
regname.Format("regD%d", i);
|
||||||
regD[i] = cc.newInt32(regname.GetChars());
|
regD[i] = cc.newInt32(regname.GetChars());
|
||||||
cc.mov(regD[i], x86::dword_ptr(initreg, i * 4));
|
cc.mov(regD[i], x86::dword_ptr(initreg, i * sizeof(int32_t)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sfunc->NumRegF > 0)
|
if (sfunc->NumRegF > 0)
|
||||||
|
@ -2420,7 +2420,7 @@ private:
|
||||||
FString regname;
|
FString regname;
|
||||||
regname.Format("regF%d", i);
|
regname.Format("regF%d", i);
|
||||||
regF[i] = cc.newXmmSd(regname.GetChars());
|
regF[i] = cc.newXmmSd(regname.GetChars());
|
||||||
cc.movsd(regF[i], x86::qword_ptr(initreg, i * 8));
|
cc.movsd(regF[i], x86::qword_ptr(initreg, i * sizeof(double)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*if (sfunc->NumRegS > 0)
|
/*if (sfunc->NumRegS > 0)
|
||||||
|
@ -2441,7 +2441,7 @@ private:
|
||||||
FString regname;
|
FString regname;
|
||||||
regname.Format("regA%d", i);
|
regname.Format("regA%d", i);
|
||||||
regA[i] = cc.newIntPtr(regname.GetChars());
|
regA[i] = cc.newIntPtr(regname.GetChars());
|
||||||
cc.mov(regA[i], x86::ptr(initreg, i * 4));
|
cc.mov(regA[i], x86::ptr(initreg, i * sizeof(void*)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue