I have translate this code so far and what I'm not understanding is how to figure out (calculate)the amount of 16-bit immediate address.
0x2237FFF1
To binary
0010 0010 0011 0111 1111 1111 1111 0001
Now I'm reading the opcode (001000) and know that it is I-type and
addi
instruction
Now I'm grouping the binary into I-type instruction
op rs rt imm
001000 10001 10111 1111111111110001
8 17 23 ?
Looking at the MIPS reference sheet and found out that the instruction must be
addi $s7,$s1,????
I'm stack here and don't know the method how to determine the 16-bit immediate address in genral.