reverses characters between a given delimiter in MIPS assembly