Jump to content

Recommended Posts

Posted

static void cpuid(DWORD op, DWORD *EAX, DWORD *EBX, DWORD *ECX, DWORD *EDX)

{

DWORD A, B, C, D;

_asm{

mov eax, op

mov ecx, 0

cpuid

mov A, eax

mov B, ebx

mov C, ecx

mov D, edx

}

*EAX = A;

*EBX = B;

*ECX = C;

*EDX = D;

_cpuid(op,EAX,EBX,ECX,EDX);

__asm__("cpuid"

: "=a" (*EAX),

"=b" (*EBX),

"=c" (*ECX),

"=d" (*EDX)

: "a" (op));

}

Posted

You want us to convert that to AU3 code? How about starting by telling what you tried yourself?

This is assembly, what are you trying to accomplish?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...