This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is this a BUG?

In C51 v8.01 Compiler
void Fnc(BYTE * pT, WORD Dat, BYTE x, BYTE y)
{
BYTE Asc[6];
BYTE * pSource = Asc + 5 - (x + y);
.....
}

I got wrong "pSource", but it is OK in v7.50
I changed it to

BYTE * pSource = &Asc + 5 - (x + y);

It is OK, WHY?

0