Dan Henry
(Guru)
Sat Sep 08 2007 03:05 PM
Re: Error "Can't generate code for this expression"

Quote:

It appears to a problem with the small memory model.



In the small model, static duration objects are supposed to be 'near' by default, I think. Explicitly qualifying EP_STATUS as 'near' fixes the error.

Code:
near unsigned char EP_STATUS[3] = {EP_IDLE, EP_HALT, EP_HALT};




Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5