I am writing code in assembler (nasm) and I want to include functions, at the moment I have
function0:
code
jmp return0
the function is called with a jump to function0 with the return linking to a label below where the function is called, however this only works if the function is called once, is there a better way to do this?