mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
14 lines
408 B
C#
14 lines
408 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
using CPUx86 = Cosmos.Assembler.x86;
|
|
|
|
namespace Cosmos.Kernel.Plugs.Assemblers {
|
|
public class GetCurrentESP: AssemblerMethod {
|
|
public override void AssembleNew(Cosmos.Assembler.Assembler aAssembler, object aMethodInfo) {
|
|
new CPUx86.Push {
|
|
DestinationReg = CPUx86.Registers.ESP
|
|
};
|
|
}
|
|
}
|
|
}
|