how to use XDATA in Keil uVision?

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?

Reply to
Loading thread data ...


You can do it like this:

unsigned char xdata byMyVar _at_ 0xF901;

Best regards Henrik

Reply to
Henrik [6650]

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.