• How to declare a structure?
    I define an area of memory that in 'non-volatile' so it doesn't get cleared on powerup. I do this is a module called memmap.asm like this: MyData DS 512 ;Located at 0x801C In another module, I want...
  • How to declare a Struct for Multiple files?
    At the risk of receiving a good thrashing, I need to ask a basic C code beginner's question: I want to declare/define an array of struct in a .h file that assigns it to xdata memory. /* Struct.h...
  • How to use extern sbit declare?
    I declare a variable unsigned char bdata Kde in a.c . [in file a.c] unsigned char bdata Kde; Than I want to use the variable in b.c . [in file b.c] #include <stdio.h> ..... extern unsigned...
  • How to declare a 12bit variable at KEILC
    Dear all: Would somebody can tell me how to declare a 12bits variable in KeilC ? Now I only know use struct to do this. just like struct OneHalf { unsigned int a: 12; }; but I remember that...
  • IData Declaration
    Hello everyone, I am using an 8051W device with uVision V4.02, working with an external C Tester and it's not recognizing the terms "idata" or "xdata". While I can create workarounds to this (ie...