I have declared a int16 variable and tried to perform a rotate_left() with it. When I try to observe the changes to the int16 variable in "File Register" watch window. I only see the lower 8 bit shfting.
ie.
/*****************************************************/
int16 var1;
var1 = 0x0001;
// so now the var1 should look like 00000000 00000010
for(i=0; i<=8; i++)
rotate_left(&var1, 1);
// the for loop should rotate the 1 into the upper byte
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum