Fix debug assert for negative array index intermediate result
This commit is contained in:
parent
890a4b996e
commit
e7cece0f0f
|
@ -13777,7 +13777,7 @@ void NativeCodeBasicBlock::LoadEffectiveAddress(InterCodeProcedure* proc, const
|
||||||
{
|
{
|
||||||
// Negative index, small global
|
// Negative index, small global
|
||||||
|
|
||||||
mIns.Push(NativeCodeInstruction(ins, ASMIT_LDA, ASMIM_IMMEDIATE, ins->mSrc[1].mIntConst));
|
mIns.Push(NativeCodeInstruction(ins, ASMIT_LDA, ASMIM_IMMEDIATE, (ins->mSrc[1].mIntConst) & 0xff));
|
||||||
mIns.Push(NativeCodeInstruction(ins, iop, ASMIM_ZERO_PAGE, BC_REG_TMP + proc->mTempOffset[ireg]));
|
mIns.Push(NativeCodeInstruction(ins, iop, ASMIM_ZERO_PAGE, BC_REG_TMP + proc->mTempOffset[ireg]));
|
||||||
|
|
||||||
mIns.Push(NativeCodeInstruction(ins, ASMIT_CLC));
|
mIns.Push(NativeCodeInstruction(ins, ASMIT_CLC));
|
||||||
|
|
Loading…
Reference in New Issue