diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Property.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Property.cs index 7e303bce2..07de94aec 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Property.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Property.cs @@ -450,8 +450,14 @@ namespace Cosmos.Debug.VSDebugEngine else { - if (m_variableInformation.IsReference) xData = mProcess.mDbgConnector.GetMemoryData(m_variableInformation.Pointer, 4, 4); - else xData = mProcess.mDbgConnector.GetStackData(OFFSET, 4); + if (m_variableInformation.IsReference) + { + xData = mProcess.mDbgConnector.GetMemoryData(m_variableInformation.Pointer, 4, 4); + } + else + { + xData = mProcess.mDbgConnector.GetStackData(OFFSET, 4); + } if (xData == null) { propertyInfo.bstrValue = String.Format("Error! Stack data received was null!"); diff --git a/source2/IL2CPU/Cosmos.IL2CPU/IL/Ldelem_Ref.cs b/source2/IL2CPU/Cosmos.IL2CPU/IL/Ldelem_Ref.cs index f8f620d86..42d0766de 100644 --- a/source2/IL2CPU/Cosmos.IL2CPU/IL/Ldelem_Ref.cs +++ b/source2/IL2CPU/Cosmos.IL2CPU/IL/Ldelem_Ref.cs @@ -46,8 +46,8 @@ namespace Cosmos.IL2CPU.X86.IL new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationIsIndirect = true }; break; case 8: + new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationDisplacement = 4, DestinationIsIndirect = true }; new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationIsIndirect = true }; - new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationDisplacement = 4, DestinationIsIndirect = true }; break; } }