• remainer of division
    C has one shortcoming that keeps bothering me. When converting a number from binary to decimal, we typically do something like : int n,d; for (i=0; i<5; ++i) { d=n%10; n/=10; display_area...
  • remainer of division
    C has one shortcoming that keeps bothering me. When converting a number from binary to decimal, we typically do something like : int n,d; for (i=0; i<5; ++i) { d=n%10; n/=10; display_area...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...
  • Allocate all remaining RAM to HEAP?
    I am trying to find a way to allocate all remaining RAM in my application to the heap. Basically a variable heap size that will allow the use of all available memory. I have tried different things with...