how to use XDATA in Keil uVision?

Jun 24, 2006 1 Replies

I can do this in SDCC: xdata at 0xF901 unsigned char port_e;



how do I do it in Keil? The help says: "unsigned char xdata variable" but where does the address, 0xF901, go?



Hello,

You can do it like this:

unsigned char xdata byMyVar _at_ 0xF901;

Best regards Henrik

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required