title: How do I reverse an integer in MIPS?
body: <p>How do I reverse an integer that a user enters in MIPS? For instance, if the user enters 4352, then it would reverse it to 2534 and output it. The other catch is that if the number is 4200, then the reverse would be 24, no leading zeros.</p>
  
  <p>I have the program loading in the integer and I know how to output it fine. What do I do to reverse it? Normally I would convert it to a string and reverse it that way, but I don't know how to do that in MIPS, and couldn't find much.</p>
  
  <p>I know that I can take the number and mod it by 10 to get the lat digit, and add 0x30 to get the ascii number. But after that I am lost.</p>