Created
December 19, 2018 12:55
-
-
Save epcnt19/e03808fd3df132fd3bfeab54259c3148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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