I am looking for a detailed manual explaining the headers inside of assembly so I can build a function in assembly and call it from C. I saw following link (http://www.keil.com/support/docs/50.htm) but I want to understand what the headers are and choose them on purpose. Any help would be appreciated.
Did you read the Interfacing C to Assembler section in the Manual - as cited in that document?