I am currently working on a MIPS program which takes in user input as a decimal then gives the sign, exponent, significand bits, truncated unsigned int, and truncated int. I’m having trouble with my parse_significand procedure and I’m not sure where I’m going wrong.
Procedure to parse and interpret the significand (mantissa) and add the implied 1
parse_significand:
andi $v0, $a0, 0x7FFFFF
ori $v0, $v0, 0x800000
jr $ra