I would like to set the value of a variable in my function to the value
of one of the CPU registers, like so:

void MyFunction( void )
{
    UInt32 registerA6;

    registerA6 = ??function or macro which reads the value out of
register A6 ??

    /* do something with the registerA6 */
}

Are there any macros for accessing registers in C code?  Do I have to
use inline assembly to do this?  Are there any examples?





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to