amd64 - CPUID

    global _start
    section .data
        brandmarkstr: db "xxxx xxx xxx"
    section .text

_start:

    mov eax, 0x00
    cpuid
    mov esi, brandmarkstr
    mov [esi], ebx
    inc esi
    inc esi
    inc esi
    inc esi
    mov [esi], ecx
    inc esi
    inc esi
    inc esi
    inc esi
    mov [esi], edx

    mov ecx, brandmarkstr
    mov edx, 12
    mov ebx, 1
    mov eax, 4
    int 0x80

    mov ebx, 0
    mov eax, 1
    int 80h

Ausgabe:

david@work:~$ ./nasm2024112cpuid
GenuntelineIdavid@work:~$



Unterabschnitte