Cosmos/source/Cosmos.IL2CPU/ILOpCodes/OpSig.cs
2017-03-19 09:29:46 -05:00

33 lines
871 B
C#

using System;
using System.Reflection;
using System.Reflection.Metadata;
namespace Cosmos.IL2CPU.ILOpCodes {
public class OpSig : ILOpCode {
public readonly int Value;
public OpSig(Code aOpCode, int aPos, int aNextPos, int aValue, _ExceptionRegionInfo aCurrentExceptionRegion)
: base(aOpCode, aPos, aNextPos, aCurrentExceptionRegion) {
Value = aValue;
}
public override int GetNumberOfStackPops(MethodBase aMethod)
{
switch (OpCode)
{
default:
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented!");
}
}
public override int GetNumberOfStackPushes(MethodBase aMethod)
{
switch (OpCode)
{
default:
throw new NotImplementedException("OpCode '" + OpCode + "' not implemented!");
}
}
}
}