• Problem with Shift-Operator
    Hi, I have a Problem with the Shift-Operator >> within my C-Code. I'm using PK166 V4.2 The following code should set the Variable n to 0. void main() { unsigned char n; unsigned char p; /...
  • working with right shift operators in C
    I am facing a problem in using the right shift operator in C with keil. The instruction is:for(i=0;i<=8;i++) { j=sum>>i; } where sum= 32 bit no. the instruction is not executed if the syntax is as...
  • C51 Compiler: Inconsistent Behaviour of Bit Shift Operator (<<)
    Compiler Version: Keil C51 5.0 I experienced some unexpected behaviour with the Keil C51 compiler. I have recreated the issue in the below code snippets. Case 1: Result of bit shift operator...
  • shift with ">>" in c51 ...
    some time c user do shift for mul and divide and some time u write byte to byte then not require any carry for me in asm i do two shift mul 4 i do it with c51 ypos3 = ypos>>3; ; SOURCE LINE...
  • bit shifting
    hello there i have some problem regarding the bit shifting i want to convert the some no. from Hex. to Decimal for that i am going to used the shifting. when i recived the no. in hex format then i want...