Is it possible to access 32-bit registers in C ? If it is, how ? And if not, then is there any way to embed Assembly code in C ? I`m using the MinGW compiler, by the way.
Thanks in advance!
Is it possible to access 32-bit registers in C ? If it is, how
Share
If you want to only read the register, you can simply:
Obviously it’s tied to instantiation.
Another way is using inline assembly. For example:
This stores the
ecxvalue into the variablevalue. I’ve already posted a similar answer here.