Return multiple values: Difference between revisions

m
→‎{{header|Z80 Assembly}}: forgot to close lang
m (→‎{{header|Z80 Assembly}}: forgot to close lang)
Line 2,838:
=={{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:
foo:
ld hl,&ABCD
ld bc,&FFFF
ret</lang>
 
 
1,489

edits