• Comiple a Source file at a fixed address
    I know one can compile a function at a fixed address. But is it possible to compile a source file at a fixed address? For example: Main.c is compiled from 0x1000. So all the functions in Main...
  • How to Init Local Static Variable
    Dear All, I write a function with Local Static Variable. But can't get its value initiated. void analyzeInputs() { static uByte TimeState = 0; // Init Value switch (TimeState) { case 0 ...
  • Init
    void GpioInit(void) { // Set to inputs FIO0DIR = \ FIO1DIR = \ FIO2DIR = \ FIO3DIR = \ FIO4DIR = 0; // clear mask registers FIO0MASK =\ FIO1MASK =\ FIO2MASK =\ FIO3MASK =\ FIO4MASK = 0; /...
  • Init Vars and Clear Memory
    I have these set to 1 in my startup file, CLR_MEMORY INIT_VARS. I would like to know if this clears all internal and external ram ? and the vars ? I ask because when i start to debug, upto main, via...
  • How to force comipler generate LCALL and LJMP for all funciton call?
    I am writing a library for 8051 mcu. this library call some outside functions, i mean some routine defined by user, I am not sure how far those codes will be seperated from my library in code space, to...