next up previous contents

[ENGN3213 Home]

Methods for Parameter Passing

In the program clab61s.s the subroutine returned a value in register D0; however, no information nor parameters were passed to it. There are a number of mechanisms and concepts concerning the passing of information to and from subroutines. Parameters can be passed by value, or by reference, using registers or the stack.



 

ANU Engineering - ENGN3213