Re-Enabled a couple of exceptions that were disabled in an attempt to deal with a stfld issue quite a while ago. Also fixed a couple of error messages to use better english :P

This commit is contained in:
blah38621_cp 2012-01-23 22:00:08 +00:00
parent a8073141e1
commit 487ee9eeff
2 changed files with 4 additions and 4 deletions

View file

@ -40,9 +40,9 @@ namespace Cosmos.IL2CPU.X86.IL
switch (xSource.Size)
{
case 1:
//throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U1.cs->The size 1 could not exist, because always is pushed Int32 or Int64!");
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U1.cs->The size 1 should not exist, because it is always pushed as Int32 or Int64!");
case 2:
//throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U1.cs->The size 2 could not exist, because always is pushed Int32 or Int64!");
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U1.cs->The size 2 should not exist, because it is always pushed as Int32 or Int64!");
case 4:
{
new CPUx86.Pop { DestinationReg = CPUx86.Registers.EAX };

View file

@ -40,9 +40,9 @@ namespace Cosmos.IL2CPU.X86.IL
switch( xSource.Size )
{
case 1:
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U2.cs->The size 1 could not exist, because always is pushed Int32 or Int64!");
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U2.cs->The size 1 should not exist, because it is always pushed as Int32 or Int64!");
case 2:
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U2.cs->The size 2 could not exist, because always is pushed Int32 or Int64!");
throw new Exception("Cosmos.IL2CPU.x86->IL->Conv_U2.cs->The size 2 should not exist, because it is always pushed as Int32 or Int64!");
case 4:
new CPUx86.Pop { DestinationReg = CPUx86.Registers.EAX };
new CPUx86.MoveZeroExtend { DestinationReg = CPUx86.Registers.EAX, SourceReg = CPUx86.Registers.AX, Size = 16 };