Reply by grze...@woodanddouglas.co.uk January 14, 20092009-01-14
int *p = (int*)0xFFED00;

gives:

, line 49: warning:
conversion from integer to smaller pointer
int *p = (int*)0xFFED00;
That's why I asked, but I think I uderstand now, i use small model where pointer is 16bit, this way will works only with large model or huge model.
In small mode propably some asembler macro needs to be use.

SPRU281F, chapter 6.

/Greg
Reply by Xiang Chao January 12, 20092009-01-12
int *p = (int*)0xFFED00;

--- 09年1月10日,周六, grzegorzK@woodanddouglas.co.uk 写道:
发件人: g...@woodanddouglas.co.uk
主题: [c55x] acces rom memory (FFED00h) from C
收件人: c...
日期: 2009,110,周六,12:07上午

Hi

How to access rom memory from C program. I would like to access to sine table located at FFED00h addres in memory space, but I can not find in compiler doc. how to create pointer to rom memory.

MPNMC bit is cleared of course.

Kind Regards

/Greg
Reply by grze...@woodanddouglas.co.uk January 9, 20092009-01-09
Hi

How to access rom memory from C program. I would like to access to sine table located at FFED00h addres in memory space, but I can not find in compiler doc. how to create pointer to rom memory.
MPNMC bit is cleared of course.

Kind Regards
/Greg