Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/14/00 22:37
Read: times


 
#7301 - RE: xdata question using Keil v6
I'm sorry, yes, x is supposed to be s. I have a question regarding "i". Can I declare it as an internal "data" type? I have plenty of on-board RAM. So for example:

long value(mystring xdata *s)
{
// int xdata i; // old way
unsigned char i; // new way
long result = 0;

for (i=0; i<(s->size); i++)
{
result <<= 8;
result += s->val[i];
}

return result;
}


List of 4 messages in thread
TopicAuthorDate
xdata question using Keil v6            01/01/70 00:00      
RE: xdata question using Keil v6            01/01/70 00:00      
RE: xdata question using Keil v6            01/01/70 00:00      
RE: xdata question using Keil v6            01/01/70 00:00      

Back to Subject List