diff --git a/source/Cosmos.IL2CPU/ILOpCodes/OpType.cs b/source/Cosmos.IL2CPU/ILOpCodes/OpType.cs index f1dbe0700..c96b0ad11 100644 --- a/source/Cosmos.IL2CPU/ILOpCodes/OpType.cs +++ b/source/Cosmos.IL2CPU/ILOpCodes/OpType.cs @@ -46,6 +46,8 @@ namespace Cosmos.IL2CPU.ILOpCodes { return 1; case Code.Stobj: return 2; + case Code.Ldobj: + return 1; default: throw new NotImplementedException("OpCode '" + OpCode + "' not implemented! Encountered in method " + aMethod.ToString()); } @@ -79,6 +81,8 @@ namespace Cosmos.IL2CPU.ILOpCodes { return 1; case Code.Stobj: return 0; + case Code.Ldobj: + return 1; default: throw new NotImplementedException("OpCode '" + OpCode + "' not implemented!"); }