Mail Archives: djgpp/2001/07/01/23:27:49
On Monday, July 02, 2001 2:28 AM, Tom St Denis [SMTP:tomstdenis AT yahoo DOT com]
wrote:
|
| "Jacek K." <xos AT o2 DOT pl> wrote in message news:9hns3d$4rn$1
| @news.tpi.pl...
| > Are there some instructions/macros to access CPU registers?
| > Anything other
| > than inline assembly, of course.
|
| No and you shouldn't.
And why not?
Try this:
void foo ()
{
register unsigned long eax __asm__ ("ax");
...
}
Everytime you use the variable "eax", you're actually accessing or modifying
the eax register itself.
--
Prashant TR <tr AT midpec DOT com> Web: http://www.midpec.com/
"Those who do not understand Unix are condemned to reinvent it, poorly."
-- Henry Spencer
- Raw text -