mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-09 01:32:58 +00:00
Merge pull request #81 from ARMmaster17/master
Added Ldobj OpType handling in IL interpreter.
This commit is contained in:
commit
c7466b9363
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ namespace Cosmos.IL2CPU.ILOpCodes {
|
||||||
return 1;
|
return 1;
|
||||||
case Code.Stobj:
|
case Code.Stobj:
|
||||||
return 2;
|
return 2;
|
||||||
|
case Code.Ldobj:
|
||||||
|
return 1;
|
||||||
default:
|
default:
|
||||||
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented! Encountered in method " + aMethod.ToString());
|
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented! Encountered in method " + aMethod.ToString());
|
||||||
}
|
}
|
||||||
|
|
@ -79,6 +81,8 @@ namespace Cosmos.IL2CPU.ILOpCodes {
|
||||||
return 1;
|
return 1;
|
||||||
case Code.Stobj:
|
case Code.Stobj:
|
||||||
return 0;
|
return 0;
|
||||||
|
case Code.Ldobj:
|
||||||
|
return 1;
|
||||||
default:
|
default:
|
||||||
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented!");
|
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue