switch push for 8 byte values

This commit is contained in:
Trivalik_cp 2011-01-15 23:21:59 +00:00
parent 26170dbedc
commit 9d5d021c30

View file

@ -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 ) ) );
}