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
.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
相关文章推荐
- android 反编译
- Reloading Java Classes 101: Objects, Classes and ClassLoaders Translation
- 显卡
- android的消息处理机制(图+源码分析)——Looper,Handler,Message
- My Big Project
- mmap
- 会话之session技术(转)
- Struts2系列——struts2的result
- IIS6如何开启Gzip压缩的方法
- 不同用户导出导入时,表空间的问题
- KVC和KVO实现监听容器类(数组等)的变化
- java获取当前类的绝对路径
- flock
- 算法视频库下载常用网址(转载)
- Android中的JSON详细总结
- property_get/property_set
- zoj Candies 贪心
- 混合高斯背景建模理解(原创)
- 软件工程第一次作业词频统计
- MyEclipse使用经验总结