⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpuid.s

📁 基于Blas CLapck的.用过的人知道是干啥的
💻 S
字号:
#include "atlas_asm.h"        .text        .globl ATL_asmdecor(do_cpuid)ATL_asmdecor(do_cpuid):## NOTE: cpuid overwrites eax, ebx, ecx, and edx, takes eax as input#       -- save ebx##ifdef ATL_GAS_x8664        movq    %rbx, -8(%rsp)##       Load input reg, and call cpuid#        movl    %esi, %eax        cpuid##       Load address of output array, and fill in its entries#        movl    %eax, (%rdi)        movl    %ebx, 4(%rdi)        movl    %ecx, 8(%rdi)        movl    %edx, 12(%rdi)        movq    -8(%rsp), %rbx        ret #else##       Prologue#        subl    $8, %esp        movl    %ebx, (%esp)        movl    %edi, 4(%esp)##       Load input reg, and call cpuid#        movl    16(%esp), %eax        cpuid##       Load address of output array, and fill in its entries#        movl    12(%esp), %edi        movl    %eax, (%edi)        movl    %ebx, 4(%edi)        movl    %ecx, 8(%edi)        movl    %edx, 12(%edi)##       Epilogue#        movl    (%esp), %ebx        movl    4(%esp), %edi        addl    $8, %esp        ret#endif

⌨️ 快捷键说明

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