title: How to replace a specific character in MIPS?
body: <p>So, as the question asks, I am wondering how can i replace a specific character in MIPS? </p>
  
  <p>I store the character I want to replace in $s0, using </p>
  
  <pre><code>addi $s0, $v0, 0
  </code></pre>
  
  <p>I store character I want to replace it with in $s1, using</p>
  
  <pre><code>addi $s1, $v0, 0
  </code></pre>
  
  <p>Now, my loop so far loops like this: </p>
  
  <pre><code> la $t0, userInput
  
   replaceLoop:
   lbu $t2, 0($t0)    #load our input's first char is at
   addi $t0, $t0, 1   #increment address of our string.
   beq $t2, $s0, replace #check if char in input, matches
   beq $t2, $0, end      #char we want to replace.
  </code></pre>
  
  <p>So what it is supposed to do is first ask "Is the character i am currently pointing at in the userInput matching the character I want to replace?" If so, go to replace command. Question is, how would I write the replace? I am just beginning to learn MIPS, so any help would be appreciated. </p>
  
  <p>Edit: Figured out the issue; redacted for now until turned in. </p>