hithesh123
Full Member level 6

When I try to right shift 16bit data, the MSbit gets loaded with 1.
mydata=0x8000;
mydata>>=1;
Now, mydata becomes 0xC000;
Does the 16bit shift work differently in keil C51.
My Mcu is C8051F120.
mydata=0x8000;
mydata>>=1;
Now, mydata becomes 0xC000;
Does the 16bit shift work differently in keil C51.
My Mcu is C8051F120.