• RTX51-full - os_wait for ever
    Hello all. Can anyone help me with the following one? My target is working under RTX51-full. I have an interrupt function (void mc12comm() interrupt 0 using 3) that calls other regular function, and...
  • never, ever increments
    a very, very odd thing.... #define BUFFER_SZ 64 unsigned char sBuf0tail; sBuf0tail = ((sBuf0tail + 1) % BUFFER_SZ); .. this increments a circular buffer index just fine. #define BUFFER_SZ 64...
  • The worst comment ever?
    Just running through some code written by someone no longer involved in the project and came across this: JobInProgress = true; // Obviously! Undoubtedly, comment style and reasoning can vary...
  • Did anyone ever use Keil's CRC example?
    I tried the assembler code at http://www.keil.com/support/docs/488.htm The results don't match other implementations of X^16+X^12+X^5+1 that I've found in C. I should be able to seed it with 0xFFFF, run...
  • Inline Functions
    Hi, How can a write a inline function ? Thanks Michael !