• C51: a lot of values assignment
    Hi, In my C code, I need to assign a lot of values. Like this: a1,a2,... are variables as char. v1,v2...,w1,w2...y1,y2 are constant (like 0x00, 0x01, ...etc) if (i==0){ a1 = v1; a2 = v2;...
  • Assigning a larger value to a bit
    bit bitVal; unsigned char byteVal; : : bitVal = byteVal; Question: How does C51 determine whether to set or clear the bit? Does it: A). Simply copy the LSB of the byteVal into the bit, or B)...
  • can't assign a value to SBUF in simulator
    hello every body i have a problem when i use debugger i assign a value to sbuf but i can't get that?!?!? it seems that i can't simulate serial recieve?!?! plz help me :(
  • Assign value issue in pdata variable
    Hi all, In my project, I write some codes like this sample: 1 void foo(char xdata *pbuf, char a, char b) 2 { 3 int pdata bufaddr; 4 long pdata testval; 5 6 testval = 0x200; 7 bufaddr = pbuf;...
  • assign an absolute memory location
    I am kind of confused about using the _at_ keyword to assign a specific address to a variable. so for example : extern xdata char variable _at_ 0x000f; it fills 3 bytes in xram . can any...