title: Comparing two strings in assembly
body: <p>I am trying to compare two strings in a simple assembly program but for some reason it never jumps to the given destination but the jump if equal works fine if i put 5 in eax and ebx </p>
  
  <p>I am using NASM as a compiler</p>
  
  <pre><code>SECTION .bss
  SECTION .data
  EatMsg: db "Eat at Joe's",10
  EatLen: equ $-EatMsg
  Input: times 100 db 0
  ok: db "ok"
  oklen: equ $-ok
  TastyMsg: db "Its tazty",10
  TastyLen: equ $-TastyMsg
  SECTION .text 
  global _start 
  
     _start:
     nop
     mov eax,4
     mov ebx,1
     mov ecx,EatMsg
     mov edx,EatLen
     int 80H
  
     mov eax,3
     mov ebx,0
     mov ecx,Input
     mov edx,100
     int 80H
  
     mov eax,Input
     mov ebx,ok
     cmp eax,ebx
     je tasty
     mov eax,1
     mov ebx,0
     int 80H
  
     tasty:
     mov eax,4
     mov ebx,1
     mov ecx,TastyMsg
     mov edx,TastyLen
  
  
     int 80H
     mov eax,1
     mov ebx,0
     int 80H
  </code></pre>