• Retargeting: Return error from _sys_read()
    Dear all, The below implementation of _sys_read() returns an error code (a negative number, e.g. -7) if the underlaying file system functions indicates an error. The caller of _sys_read() (the C...
  • 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...
  • Error in returning a value
    Hello, I have a very strange behavior in the below code u32 Buffer[128]; /*Sector Buffer*/ static u32 ReadFATEntry(SD_CARD_t *Copy_PsSdcard,FS_INFO *Copy_PsFileSystemInfo,u32 Copy_u32ClusterNumber...
  • Problem with structs as return values
    I am using functions, which returns structs. This shouldn't be a problem in C. And it works mostly. But are there contexts where this is not allowed? Maybe there a conflicts because those structs...
  • 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...