I use mikroC.
The following code does not work.
short Position;
int Error = 0;
But this code works.
int Position;
int Error = 0;
When the Position register is "int" type the code works.Can somebody explain me this.
The following code does not work.
short Position;
int Error = 0;
Code:
if (Position == 0b11000000) Error = -6 ;
But this code works.
int Position;
int Error = 0;
Code:
if (Position == 0b11000000) Error = -6 ;
When the Position register is "int" type the code works.Can somebody explain me this.