next up previous contents index
Next: 3.13.2 Assembler Routine (non-reentrant) Up: 3.13 Interfacing with Assembler Previous: 3.13 Interfacing with Assembler   Contents   Index


3.13.1 Global Registers used for Parameter Passing

The compiler always uses the global registers DPL, DPH, B and ACC to pass the first parameter to a routine. The second parameter onwards is either allocated on the stack (for reentrant routines or if --stack-auto is used) or in data / xdata memory (depending on the memory model).



2008-10-02