• bdata problem
    can any one solve this #include <AT89X51.H> #include<stdio.h> bdata unsigned int a; sbit lsb=a^0; sbit msb=a^7; bit i; void main() { a=0xaa; while(1) { i=lsb; a=a>>1; msb=i; a^7=msb;...
  • bitfields in bdata behaviour
    Hello, If a bdata variable is defined in the form: struct foo { unsigned char b1:1; unsigned char b2:1; unsigned char b3:1; unsigned char b4:1; unsigned char b5:1; unsigned char b6:1; ...
  • bug of define a bit in bdata
    C: bdata unsigned BUFR16=0; sbit BIT8=BUFR16^8; the assemble language which is compiled by Keil uVision3: C:0x1172 9210 MOV BIT8(0x22.0),C ...... ;BUFR16<<=1; C:0x117D E522 MOV A,0x22 C:0x117F...
  • bdata across multiple files?
    I have data that I would like to efficiently address as both a byte and as 8 bits. The bdata type sounds like the way to go, but I can not make it work across multiple files. This program fails to compile...
  • problem with bdata of type char
    iam getting syntax errors whiel accessing bdata chat buff[10] i wrote the code as below to acces the array char bdata buff[10]; sbit mybit4; unsigned int i=0; for(i=0;i<=10;i++) { mybit4 ...