|
CODE:
#cpuid.s Sample program
.section .data output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx' " .section .text .globl _start _start: nop //gdb中暂停程序用 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 $0, %ebx int $0x80 来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10617731/viewspace-959714/ ,如需转载,请注明出处,否则将追究法律责任。
上一篇:
Linux下备份恢复技术的应用(转)
请登录后发表评论
登录
全部评论
|