>>Im searching a way to read the M68KRegs (Not the CPU ones).
>
>I'm not sure what you're asking for. M68KRegsType does represent the
>CPU registers.
I'm sorry for the confusion. Are there differnt names for the d,a, usp, ssp, pc and sr
registers, and the ones found at memory location 0xfffff000 on a M68k Chip?
>>What I want to do: is to find a way (hopefully in C) to read theese registers.
>>In the M68KHwr.h I saw this typedef:
>>typedef struct M68KRegsType {
>>DWord d[8]; /* data registers */
>>DWord a[7]; /* address registers */
>>DWord usp; /* user stack pointer */
>>DWord ssp; /* supervisor stack pointer */
>>DWord pc; /* program counter */
>>Word sr; /* status register */
>>} M68KRegsType;
>>So I therefore think there must be a way to read the M68KRegs in C.
>>help!
>
>
>That structure is used when communicating with an external debugger.
>It is typically filled out by assembly-language code in the Palm OS
>that can directly access the CPU registers.
>
>There is no Palm OS function that you can call to fill out that
>structure.
That's a pitty for since I don't know asm....
>Besides, even if there were, many of the values would be
>out-of-date by the time the function returned. :-)
I'm aware of that.
>If you want to access the CPU registers yourself, you would have to
>use a small bit of assembly-language, too. Check the documentation
>for your development system to find out how.
Thanks for your answer. It seams that I have to learn asm.... :)
>-- Keith
/John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/