/media/sda-magnetic/david/Dok-15-2023-11-27/informatik/vhdl20240401/cpuid001.asm


global      _start
section     .data
    outstr:     db  "____________",  0xA, 0xD, 0x00
    outstrlen:  equ $-outstr
section     .text
    _start:
section     .568

    mov eax, 0x00
    cpuid

    mov edi, outstr

    mov [edi], ebx
    inc edi
    inc edi
    inc edi
    inc edi
    mov [edi], ecx
    inc edi
    inc edi
    inc edi
    inc edi
    mov [edi], edx


    mov edx, outstrlen
    mov ecx, outstr
    mov ebx, 1
    mov eax, 4
    int 0x80

    mov ebx, 0
    mov eax, 1
    int 0x80