mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
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:
parent
a8073141e1
commit
487ee9eeff
2 changed files with 4 additions and 4 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue