📄 cpuidtest.s
字号:
# cpuidtest.s - An example of using the TEST instruction.section .dataoutput_cpuid: .asciz "This processor supports the CPUID instruction\n"output_nocpuid: .asciz "This processor does not support the CPUID instruction\n".section .text.globl _start_start: nop pushfl popl %eax movl %eax, %edx xor $0x00200000, %eax pushl %eax popfl pushfl popl %eax xor %edx, %eax test $0x00200000, %eax jnz cpuid pushl $output_nocpuid call printf add $4, %esp pushl $0 call exitcpuid: pushl $output_cpuid call printf add $4, %esp pushl $0 call exit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -