In keil uvision51 IDE how we will set the starting stackpointer? Is it possible to set it on target settings? If so how?
No, that is wrong!
Keil C51 never passes any arguments on the stack!
See: http://www.keil.com/appnotes/docs/apnt_129.asp and: http://www.keil.com/support/man/docs/bl51/bl51_ol_fp.htm
etc, ...
Andy; You are absolutly right. My bad. I must of had my head in a dark place when I wrote that. Args are passed/returned via registers where possible and absolute memory locations if args greater than Regs 4 thru 7 can hold. It was not typing errors, just a short between the ears :-( Thanks for the correction. Bradford
I still have it wrong! Args are passed via Reg 2 thru Reg 7. Bradford