Hello All!
I would like to convert the MASM code below for YASM x64 or JWASM x64. My goal is make a DLL to be called from x64 code (Visual Basic). The code below functions 100% in x86 format, but I don't know exactly the changes I must conduct to get x64 valid code.
Thanks for any help.
get_cpu_vendor_information Proc Public Entrada_Index:UINT, bufferpointer:LPVOID
; Assume que rcx = pointer to the buffer to store the data into
PushA
Mov Eax, Entrada_Index ; value 1
CPUID
Mov Esi, [bufferpointer]
Mov [Esi], Eax
Mov [Esi + 4], Ebx
Mov [Esi + 08H], Ecx
Mov [Esi + 0CH], Edx
xor eax, eax
Mov [Esi + 10H], Eax
PopA
Ret
get_cpu_vendor_information EndP