mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
cpuid instruction clobbers eax/ebx/ecx/edx
This commit is contained in:
parent
fdec7fe203
commit
c90ea2bd6d
2
main.cpp
2
main.cpp
@ -3127,7 +3127,7 @@ void CallCPUID(int in, int& aret, int& cret)
|
|||||||
"mov %%ecx, %1;" // ecx into c
|
"mov %%ecx, %1;" // ecx into c
|
||||||
:"=r"(a),"=r"(c) /* output */
|
:"=r"(a),"=r"(c) /* output */
|
||||||
:"r"(in) /* input */
|
:"r"(in) /* input */
|
||||||
:"%eax","%ecx" /* clobbered register */
|
:"%eax","%ebx","%ecx","%edx" /* clobbered register */
|
||||||
);
|
);
|
||||||
aret = a;
|
aret = a;
|
||||||
cret = c;
|
cret = c;
|
||||||
|
Loading…
Reference in New Issue
Block a user