Return multiple values: Difference between revisions

Content added Content deleted
(added ReScript)
Line 2,835: Line 2,835:
0.64350 5.00000
0.64350 5.00000
</pre>
</pre>

=={{header|Z80 Assembly}}==
A function can return multiple values by altering the contents of multiple registers. Code is ```CALL```ed as a subroutine.
<lang z80>
foo:
ld hl,&ABCD
ld bc,&FFFF
ret




=={{header|zkl}}==
=={{header|zkl}}==