Jump to content

Parameter Passing: Difference between revisions

m
No edit summary
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]]===
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.