1
1
This commit is contained in:
20
cpuDuck.cpp
Normal file
20
cpuDuck.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
|
||||
extern "C" void asm_fake_jmp();
|
||||
extern "C" void fake_jmp_end();
|
||||
void fake_jmp_end() {
|
||||
printf("you are intel cpu \n");
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
__try
|
||||
{
|
||||
asm_fake_jmp();
|
||||
}
|
||||
__except (1)
|
||||
{
|
||||
printf("you are amd cpu \n");
|
||||
}
|
||||
system("pause");
|
||||
}
|
||||
Reference in New Issue
Block a user