is there a way to access processor registers from C without having to use the __asm keyword???
I'm using VC++ 6.0.

Posted on 2003-10-27 12:20:39 by yaa
Why would you need that?

Posted on 2003-10-27 12:23:56 by Thomas
Thomas, I don't need it .... I remembered something like _EAX or __EAX as a "shortcut" to access registers directly from C but having searched for examples and having found none I have asked.
I probably just "invented" it.

Posted on 2003-10-27 13:34:00 by yaa
i thnk that the _EAX thingi was for the C debugger (VC)
which those labels u can see the register's data.
mabye it was @EAX i can't remember, check it out ;)
it is for the UnDocuments tricks using vc debugger.
Posted on 2003-10-27 16:12:38 by wizzra
Check it out where wizzra??

Posted on 2003-10-27 16:54:47 by yaa

If you need to access registers in your C code, there is good reason to do it through the _asm format as treating registers like variables does not work when the same registers are used for many other things in the normal code.

When you write a block of assembler code inline,

; assembler instructions
etc ....

You effectively isolate the assembler code from other code before and after it so you have proper control of those registers.

Posted on 2003-10-27 19:04:56 by hutch--
Posted on 2003-10-27 21:34:48 by Mecurius
Posted on 2003-10-28 04:32:36 by wizzra
Some of my macros approach inline C :tongue:
Posted on 2003-10-28 06:48:43 by Homer