• Calling convention
    I have some questions. What is the calling convention? What registers are used to pass parameters? What registers are used to return a result? What registers need to be preserved during a call...
  • indirect call
    Hello I have a function like this : static int yaffs_WriteChunkToNAND(struct yaffs_DeviceStruct *dev,int chunkInNAND, const __u8 *data, yaffs_Spare *spare) { . . . return dev->writeChunkToNAN...
  • Banked calls
    Excuse my limited knowledge on this... For proprietary reasons I must split my 8051 code so I can supply one section to a vendor who will perform testing on the product. I broke the code into Banks but...
  • Call functions
    Hi, I have some assembly routines located in ROM memory, for example asmfunc that is located at address 0xF700 - is absolute address of flash memory. The program memory is organized: ROM code...
  • I call sscanf, but the compiler calls scanf instead!
    The following codes show the problem. #include <stdio.h> void main() { char str[10]; sscanf(str, "hello"); } The call tree is: OVERLAY MAP OF MODULE: ssanfTst (MAIN) SEGMENT BIT_GROUP DATA_GROUP...