AT&T汇编试讲--获取CPU Vendor ID
摘要:
纯汇编代码如下:# a test program to get the processor vendor id# data segment.section .dataoutput: .ascii "The processor Vendor id is 'xxxxxxxxxxxx'\n"# code segment.section .text.global _start_start: movl $0,%eax cpuid movl $output,%edi # 将output位置加载进edi movl %ebx,28(%edi) # 将结果最低4字节,即ebx 阅读全文
posted @ 2013-09-11 20:25 新一 阅读(704) 评论(0) 推荐(0)
浙公网安备 33010602011771号