mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
uint16 division fix
This commit is contained in:
parent
b141f341db
commit
0d46321881
1 changed files with 3 additions and 3 deletions
|
@ -14330,8 +14330,8 @@ void BeMCContext::DoCodeEmission()
|
||||||
break;
|
break;
|
||||||
case BeTypeCode_Int16:
|
case BeTypeCode_Int16:
|
||||||
BF_ASSERT((inst->mArg0.IsNativeReg()) && (inst->mArg0.mReg == X64Reg_AX));
|
BF_ASSERT((inst->mArg0.IsNativeReg()) && (inst->mArg0.mReg == X64Reg_AX));
|
||||||
// XOR eax, eax
|
// XOR dx, dx
|
||||||
Emit(0x31); Emit(0xC0);
|
Emit(0x66); Emit(0x31); Emit(0xD2);
|
||||||
// IDIV rm
|
// IDIV rm
|
||||||
Emit(0x66);
|
Emit(0x66);
|
||||||
EmitREX(BeMCOperand::FromReg(X64Reg_AX), inst->mArg1, false);
|
EmitREX(BeMCOperand::FromReg(X64Reg_AX), inst->mArg1, false);
|
||||||
|
@ -15708,7 +15708,7 @@ void BeMCContext::Generate(BeFunction* function)
|
||||||
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
||||||
|
|
||||||
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
||||||
//mDebugging = (function->mName == "?Main@TestProgram@BeefTest@bf@@SATint@@PEAV?$Array1@PEAVString@System@bf@@@System@3@@Z");
|
mDebugging = (function->mName == "?Main@TestProgram@BeefTest@bf@@SAXXZ");
|
||||||
// || (function->mName == "?__BfStaticCtor@roboto_font@Drawing@ClassicUO_assistant@bf@@SAXXZ")
|
// || (function->mName == "?__BfStaticCtor@roboto_font@Drawing@ClassicUO_assistant@bf@@SAXXZ")
|
||||||
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
||||||
// ;
|
// ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue