And, you should declare the pointer as volatile:
volatile long *SSA...
Otherwise, the optimizer might get you on some compilers. If you test a
bit, etc. in a loop you may find that the generated code only reads the
register once.
-jjf
-----Original Message-----
From: Adam Wozniak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 1:45 PM
To: Palm Developer Forum
Subject: Re: HOWTO: Access Palm registers?
Borislav Kolev wrote:
> long* SSA = 0x12345678; // or wherever the correct SSA address is for the
> particular processor
>
> long ssv = *(SSA); // SSA value
>
> For correct register addresses, refer to the processor specification on
the
> Motorola site.
>
Also make sure you get the type right. The code above assumes SSA is a 4
byte
value. It may not be.
--
Adam Wozniak Chief Architect
Surveyor Corporation
[EMAIL PROTECTED] 4548 Broad Street
[EMAIL PROTECTED] San Luis Obispo, CA 93401
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/