Vertauschte ausgabe - richtig rum


    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], edx
    inc esi
    inc esi
    inc esi
    inc esi
    mov [esi], ecx

    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:~$ nasm -f elf32 nasm20241121cpuid.asm
david@work:~$ ld -m elf_i386 nasm20241121cpuid.o -o nasm2024112cpuid
david@work:~$ ./nasm2024112cpuid
GenuntelineIdavid@work:~$