Cosmos/source/Cosmos/Cosmos.Kernel.Plugs/Assemblers/GetCurrentESP.cs
mterwoord_cp acaa8e0a89
2009-10-17 13:45:47 +00:00

14 lines
385 B
C#

using System;
using System.Collections.Generic;
using Cosmos.IL2CPU.Plugs;
using CPUx86 = Cosmos.IL2CPU.X86;
namespace Cosmos.Kernel.Plugs.Assemblers {
public class GetCurrentESP: AssemblerMethod {
public override void AssembleNew(object aAssembler, object aMethodInfo) {
new CPUx86.Push {
DestinationReg = CPUx86.Registers.ESP
};
}
}
}