Return multiple values: Difference between revisions
→{{header|Z80 Assembly}}
(added ReScript) |
Puppydrum64 (talk | contribs) |
||
Line 2,835:
0.64350 5.00000
</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}}==
|