Cosmos/source/Cosmos.Core/Multiboot/GetMultibootAddress.cs
2020-07-05 00:47:15 +02:00

17 lines
519 B
C#

using IL2CPU.API.Attribs;
using XSharp.Assembler;
using CPUx86 = XSharp.Assembler.x86;
namespace Cosmos.Core.Multiboot
{
public class GetMBI : AssemblerMethod
{
public override void AssembleNew(Assembler aAssembler, object aMethodInfo)
{
new CPUx86.Push { DestinationRef = ElementReference.New("MultiBootInfo_Structure"), DestinationIsIndirect = true };
}
[PlugMethod(Assembler = typeof(GetMBI))]
public static uint GetMBIAddress() { return 0; }
}
}