cpuid.s

来自「汇编经典教程profession_assembly_language(Richa」· S 代码 · 共 22 行

S
22
字号
#cpuid.s Sample program to extract the processor Vendor ID.section .dataoutput:   .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, 36(%edi)   movl $4, %eax   movl $1, %ebx   movl $output, %ecx   movl $42, %edx   int $0x80   movl $1, %eax   movl $0, %ebx   int $0x80

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?