Hi all, I want to call a C function (for example: func1() ) from my old assembly code. The problem is that if func1() calls another C function( func2() ), what will happen? How does the compiler pass parameters to the second function? If it also passes through R1-R7, does it destroy the parameters of func1()? Thanks for reading this topic.
"I also see that, in the Large Model Example, page 171, line 11: MOV R0, #?_funtion?BYTE+3 I think it must be: MOV DPTR, #_?function?BYTE+3" Hmmm... I think you're right. Looks like a cut-and-paste error - they've copied the COMPACT example, and forgotten to change R0 to DPTR? You could check this by compiling an example yourself... also here: http://www.keil.com/support/man/docs/c51/c51_ap_largemodel.htm