mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
21 lines
561 B
C#
21 lines
561 B
C#
using XSharp.Compiler;
|
|
using static XSharp.Compiler.XSRegisters;
|
|
|
|
namespace Cosmos.IL2CPU.X86.IL
|
|
{
|
|
[Cosmos.IL2CPU.OpCode(ILOpCode.Code.Pop)]
|
|
public class Pop : ILOp
|
|
{
|
|
public Pop(Cosmos.Assembler.Assembler aAsmblr)
|
|
: base(aAsmblr)
|
|
{
|
|
}
|
|
|
|
public override void Execute(MethodInfo aMethod, ILOpCode aOpCode)
|
|
{
|
|
// todo: implement exception support.
|
|
var xSize = SizeOfType(aOpCode.StackPopTypes[0]);
|
|
XS.Add(ESP, Align(xSize, 4));
|
|
}
|
|
}
|
|
}
|