• 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...
  • Initialize bit variable when using (bdata + sbit) ?
    I have one question about bit variable initialization. Before I used below simple way to initialize bit vars: Ex. bit bvar_0=0;bit bvar_1=1; bit bvar_2=1;bit bvar_3=1; bit bvar_4=1;bit bvar_5...
  • union, bit field and bdata
    I want to fix (in C langage if possible) in bdata memory a word (u16). At the same address I want to use 2 bytes (u08) and always in the same area (0x20 and 0x21 addresses for example) to declare bits...
  • 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;...
  • 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...