I do not know how to explain this...:
I have this piece of code:
dplaces := $01 shl (4*dplaces)-1;
num1.p2 := num1.p2 and dplaces;
num2.p2 := num2.p2 and dplaces;
num1.p2 := num1.p2+(dplaces+1);
If I am not mistaken, if "dplaces = 2" the first line must result in 255. But when I am debugging the program it keeps changing its value, sometimes when I step into the code it results in 255 then add some code, recompile, debug and it is at different value (32767, 3, etc...).
What am I doing wrong?
Thank you!