• Correction on "structs as return values"
    From a previous thread: "How the compiler implements this facet {stucts as return values} of ANSI C is of no concern to me unless I'm worried about efficiency." Reply: Great, another wrong sweeping...
  • Function returning a struct
    Hi, How come the 51 compiler V7.04 cannot compile the following code? typedef struct { int i; } S; S jj(void) { S k; return(k); } S i(void) { return(jj()); } void main(void...
  • Function return value if () are missing
    As I am sure most of us have at some time, I have ocasionally missed the () off the end when calling a function. e.g myFunction; instead of myFunction(); When I do this the code compiles and...
  • RTX51 Tiny problem: os_wait1() return value is 0.
    Hi, all, I got a problem about os_wait1() function. When my task 1 used os_wait1(0) to sleep forever, I wish task 1 will wake up by other task using os_set_ready(1) . It really does. But sometimes...
  • return value of subroutines and SCXT
    Hi, i am wondering how to give back a value of a subroutine to the calling routine and use a register when using scxt. example: SCXT CP,#0FC40h NOP CALLS something CMP R10, ONES...