Learning assembly and reading about the BIT instruction on msp430. When trying to compile this code:
int main (void)
{
while(1){
__asm__("BIT R2, 3");
}
return 0;
}
It says: error: odd operand: -3
Yet when writing __asm__("BIT.B R2, 3");
instead, it works.
Could somebody explain this please?