title: Creating a procedure and calling it in Flat assembler?
body: <p>I was going through these tutorials -<a href="https://www.youtube.com/watch?v=0dLkvasLSlo&amp;list=PLPedo-T7QiNsIji329HyTzbKBuCAHwNFC&amp;index=33" rel="nofollow">https://www.youtube.com/watch?v=0dLkvasLSlo&amp;list=PLPedo-T7QiNsIji329HyTzbKBuCAHwNFC&amp;index=33</a> and i wanted to create a procedure in flat assembler. This is what i tried and when i try to emulate it gives me the notification of illegal instruction "proc". Please can anyone help me to fix the code or suggest me where i am doing wrong. Thank you.</p>
  
  <h1>fasm</h1>
  
  <pre><code>org 100h
  
  
  proc blue  
  
  mov ax,3
  call green 
  
  mov ax,5
  
  ret 
  endp 
  
  proc green
  
  mov ax,2
  ret 
  endp 
  </code></pre>