
汇编程序实例
Farmwang
博采众长,兼收并蓄!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cpuid 的使用方法
.section .data output: .ascii "the processor vendor id is 'XXXXXXXXXXXX'\n" .section .text .globl _start _start: movl $0,%eax cpuid movl $output,%edi movl %ebx,28(%edi) movl %edx,32(%edi) movl %ecx原创 2017-07-22 16:08:44 · 1884 阅读 · 0 评论 -
CPUID Using printf
.section .data output: .asciz "the value is '%s'\n" .section .bss .lcomm buffer,12 .section .text .globl _start _start: nop movl $0,%eax cpuid movl $buffer,%edi movl %ebx,(%edi) movl %edx,4(%edi) m原创 2017-07-23 16:03:48 · 306 阅读 · 0 评论