mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 10:11:31 +00:00
17 lines
519 B
C#
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; }
|
|
}
|
|
}
|