title: Assembly find max of two value
body: <p>I'm trying to find maximum between two values</p>
  
  <pre><code>_FindMax:
      push ebp
      mov ebp, esp
  
      mov eax, dword [ebp+12]  ; get fist argument
      mov ebx, dword [ebp+8]   ; get second argument
  
  
      cmp eax, ebx
      jl LESS       ; if eax less to LESS
  
      LESS:
      mov eax, ebx ; ebx is greate and return it
  
      mov esp, ebp
      pop ebp
  
      ret
  </code></pre>
  
  <p>but problem is that LESS: label is executing always. for example if parameters are  equal then LESS: label is executing. Why??</p>