I'm writing a MIPS assembly program and I'm trying to figure out a way to display a given integer in either decimal or binary using only one function with two parameters. The function takes in two parameters: an integer and a base (either '2' or '10'). I'd like to not edit anything other than just this one function. Can anyone help me create such a function? I can't wrap my head around the logic needed to do so using assembly language. Thanks in advance.