您的位置:首页 > 其它

x86---1

2013-09-25 01:09 218 查看
#cpuid.S a sample program to extract processor Verdor ID

.section .data

output:

.ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n"

.section .text

.globl _start

_start:

nop

movl $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 $42,%edx

int $0x80

movl $1,%eax

movl $2,%ebx

int $0x80
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: