cpuid2.s
来自「汇编代码示例」· S 代码 · 共 22 行
S
22 行
#cpuid2.s View the CPUID Vendor ID string using C library calls.section .datatextoutput: .asciz "The processor Vendor ID is '%s'\n".section .bss .lcomm buffer, 12.section .text.globl _start_start: movl $0, %eax cpuid movl $buffer, %edi movl %ebx, (%edi) movl %edx, 4(%edi) movl %ecx, 8(%edi) pushl $buffer pushl $output call printf addl $8, %esp pushl $0 call exit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?