title: How to compare a '/0' character without it converting to '0'
body: <p>I have a homework in my computer architecture class, which is basically to write a code in ASM (32 bits) that removes a specific character from a given string and also gives me the new length (excluding '/0')</p>
  
  <ul>
  <li>Example: "Hello\n\0" </li>
  <li>Character to remove: 'l'</li>
  <li>Result: "Heo\n\0"</li>
  <li>Length: 4</li>
  </ul>
  
  <p>I can remove any character from the string, however, as a test to see if the program can work in any situation, I have a condition to check if that character to remove is /0, and every time I do so it fails the comparison as it translates '/0' to '0'.
  I have read online that when you write '/' it is equal to writing (char) which returns the  in char form.</p>
  
  <ul>
  <li>Example: (char)1 = '1'</li>
  </ul>
  
  <p>Is there any way I can compare the character '/0' without it converting? I also cannot change the data section as it's part of the rules of the homework, only whats in between '' and "".</p>
  
  <p>Below I present my code</p>
  
  <p>My variable is called remove and it's declared as so:</p>
  
  <ul>
  <li>remove: .byte '/0'</li>
  </ul>
  
  <p>I then do:</p>
  
  <pre><code>mov remove, %cl
  cmp $0, %cl
  jz goToEnd
  
  </code></pre>
  
  <p>if the zero flag is set to 0 then i end my function, however it's never the case as %cl receives the value in decimal 48 correspondent to '0'.</p>