Skip to content

Instantly share code, notes, and snippets.

@epcnt19 epcnt19/cpuid.c

Created Dec 19, 2018
Embed
What would you like to do?
#include<stdio.h>
int eax_value = 0;
void cpuid(){
__asm__ volatile ("movl eax_value,%eax \n\t"
"cpuid");
}
int main(void){
cpuid();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.