From 9d5d021c30d9f2bcc0f2dd9bd9a24879e1fdf2ae Mon Sep 17 00:00:00 2001 From: Trivalik_cp <42497cfff885d3ca0e6fda54fb6262dd42101bd5sx56jUzf> Date: Sat, 15 Jan 2011 23:21:59 +0000 Subject: [PATCH] switch push for 8 byte values --- source2/IL2CPU/Cosmos.IL2CPU.X86/IL/Ldc_R8.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source2/IL2CPU/Cosmos.IL2CPU.X86/IL/Ldc_R8.cs b/source2/IL2CPU/Cosmos.IL2CPU.X86/IL/Ldc_R8.cs index 3c8077991..e994070a0 100644 --- a/source2/IL2CPU/Cosmos.IL2CPU.X86/IL/Ldc_R8.cs +++ b/source2/IL2CPU/Cosmos.IL2CPU.X86/IL/Ldc_R8.cs @@ -17,8 +17,8 @@ namespace Cosmos.IL2CPU.X86.IL OpDouble xOp = ( OpDouble )aOpCode; byte[] xBytes = BitConverter.GetBytes( xOp.Value ); + new CPU.Push { DestinationValue = BitConverter.ToUInt32(xBytes, 4) }; new CPU.Push { DestinationValue = BitConverter.ToUInt32( xBytes, 0 ) }; - new CPU.Push { DestinationValue = BitConverter.ToUInt32( xBytes, 4 ) }; Assembler.Stack.Push( new StackContents.Item( 4, typeof( Double ) ) ); }