我试图在Assembly中实现Hello world程序,但有一些
警告:
cpuid.s:汇编程序消息: cpuid.s:警告:文件末尾不在行尾;插入换行符
下面有代码
.section .data
output:
.ascii "The processor Vender Id is 'xxxxxxxxxxxx'"
.section .text
.globl _start
_start:
mov $0,%eax
cpuid
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 $43,%edx
int $0x80
movl $1,%eax
movl $0,%ebx
int $0x80