first unrecognized character valued oxfffffffe2

原因,字符集不对。重新改字符集合,需要utf-8 字符集合

#cpuid.s Sample program to extract the processor Vendor ID
.section .dataoutput:
.ascii “The processor Vendor ID is ‘xxxxxxxxxxxx’\n”
.section .text.globl _start_start:
movl $0, %eaxcpuid

movl $output, %edi
movl %ebx, 28(%edi)
movl %edx, 32(%edi)
movl %ecx, 36(%edi)
movl $4, %eax
movl $1, %ebx
movl $output, %ecx
movl $42, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80

posted @ 2022-08-11 09:47  zzas12345  阅读(25)  评论(0编辑  收藏  举报