title: Compare char to user input char MASM
body: <p>I'm trying to use the (y/n) user input, but I'm having trouble comparing the user input to the respective character (y or n).</p>
  
  <p>I have <code>y</code> and <code>n</code> defined, as well as my user input:</p>
  
  <pre><code>cnt        =    80
  
  .data
  tryResponse     BYTE    cnt+1   DUP(?)
  yesCmp          BYTE    "y",0
  noCmp           BYTE    "n",0
  
  
  
  tryAnother proc
      try:
          mov     edx, OFFSET prompt_3
          call    WriteString
          mov     edx, OFFSET tryResponse
          mov     ecx, cnt
          call    ReadString
          mov     eax, OFFSET tryResponse
          movzx   ebx, yesCmp
          mov     edx, ebx
          call    WriteString
          movzx   ecx, noCmp
          cmp     eax, ebx
          je      yes
          cmp     eax, ecx
          je      no
      invalid:
          mov     edx, OFFSET invalid_msg
          call    WriteString
          call    CrLf
          loop    try
      yes:
          jmp     main
      no:
          jmp     goodbye
  tryAnother endp
  </code></pre>
  
  <p>When I try to compare the user input to <code>yCmp</code> or <code>nCmp</code>, it always returns as invalid.  I'm clearly not comparing these characters properly, I just don't know what I'm doing wrong. </p>