• Saving context before a switch
    Hello, I am working with an xc167. Currently I use a round-robin schedular, but I want to write my own preemptive schedular. I have browsed through the user manual, but it is still not 100% clear to...
  • Saving context before a switch
    Hello, I am working with an xc167. Currently I use a round-robin schedular, but I want to write my own preemptive schedular. I have browsed through the user manual, but it is still not 100% clear to...
  • Global variable not initialized by __main() function
    Hi. I hope this is the right place to ask to open this question. I define an initialized variable in my C code, let's say: ... int MyVariable = 0xDEADABBA; ... Using a scatter file, I instruct the arm...
  • Global variable not initialized by __main() function
    Hi. I hope this is the right place to ask to open this question. I define an initialized variable in my C code, let's say: ... int MyVariable = 0xDEADABBA; ... Using a scatter file, I instruct the arm...
  • Declare function that doesn't automatically save register when called.
    Hi all, In Keil C51 compiler, is there any way to declare a function that doesn't automatically save registers (acc, b, dptr, r0-r7...) when called? I want to do it manually. In SDCC, I can use the attribute...