• __at for Function Address
    void __at(0x2000) test(void) { int i; i++ } This Function is right by MDK3.05, but is warning by MDK3.24? warning:: Sources\BSP.c(50): warning: #1202-D: invalid attribute for function "test" ...
  • error: using (__attribute(__at()))
    I'm using the uvision and I want to define a variable at a specific address. I figured out that it should work like int main(void) { int var __attribute__((__at(0x40001000))) = 20; } but...
  • How The sbit keyword works
    how can an sbit variable be assigned an address which is intrinsically assigned to something else. e.g will the following code work on an 8051? sfr SCON = 0x98; // declare SCON sbit SM0 = 0x9F;...
  • Absolute Variable Location: compilation error using __at
    Hi, I'm trying to use "__at" to locate a variable to a specific address: void delay (void) { unsigned long cont __at 0x4000000; for (cont = 0; cont < 10000;cont++); } But the compiler...
  • what does keyword 'B' mean?
    In the m51 file below, I know that C means Code Memory and D means Data Momory. However I don't know what does keyword B mean. If you tell me, I would appreciate your kindness C:0000H SYMBOL _ICE_DUMMY_...