Newer
Older
tree-os / src / kernel / drivers / cpu / cpuid.asm
@lukas lukas on 24 Sep 2021 181 bytes add capital typing
section .text
global getVendorId
getVendorId:
    mov eax, 0x00
    cpuid
    mov eax, esp
    mov eax, [eax+4]
    mov [eax], ebx
    mov [eax+8], ecx
    mov [eax+4], edx
    ret