mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
19 lines
371 B
C#
19 lines
371 B
C#
using System;
|
|
using XSharp.Assembler;
|
|
using XSharp;
|
|
|
|
using static XSharp.XSRegisters;
|
|
|
|
namespace Cosmos.Core_Asm
|
|
{
|
|
public class CPUReadTimestampCounterAsm : AssemblerMethod
|
|
{
|
|
public override void AssembleNew(Assembler aAssembler, object aMethodInfo)
|
|
{
|
|
XS.Rdtsc();
|
|
XS.Push(EDX);
|
|
XS.Push(EAX);
|
|
|
|
}
|
|
}
|
|
}
|