title: writing functions in assembler
body: <p>I am writing code in assembler (nasm) and I want to include functions, at the moment I have</p>
  
  <pre><code>function0:
  
  code
  
  jmp return0
  </code></pre>
  
  <p>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?</p>