Parameter Passing: Difference between revisions
m
→Example 6502 Assembly
Puppydrum64 (talk | contribs) No edit summary |
Puppydrum64 (talk | contribs) |
||
Line 18:
The language's choices of parameter passing modes may vary greatly, as the following examples show.
===Example [[6502 Assembly]]===
As is typical of assembly languages, [[6502 Assembly]] doesn't restrict how parameters are passed to functions in any way. Read-only data is of course immutable, but this is just the nature of read-only memory and not a limitation imposed by the language.
====Opcodes====
Line 79:
sta ($20),y ; overwrite the old value stored in $0003 with the new one.
rts</lang>
===Example [[Ada]]===
|