Return multiple values: Difference between revisions

m
m (→‎{{header|Z80 Assembly}}: forgot to close lang)
Line 2,837:
 
=={{header|Z80 Assembly}}==
A function can return multiple values by altering the contents of multiple registers. Code is ```<code>CALL```</code>ed as a subroutine.
<lang z80>foo:
ld hl,&ABCD
ld bc,&FFFF
ret</lang>
 
 
 
=={{header|zkl}}==
1,489

edits