I'm writing this code, can anyone help me to find out the mistakes?
slt $t3,$s5,$zero # s5 contains k
bne $t3,$zero,Exit
bne $t3,$zero,Exit
add $t1,$t1,$t4 # t4 - jump table base address
slt $t3,$s5,$t2 # t2 contains 4
beq $t3,$zero,Exit
add $t1,$s5,$s5
add $t1,$t1,$t1 # PC address = 4*k
add $t1,$t1,$t4 # t4 - jump table base address
lw $t0,0($t1)
jr $t0 # new instruction: jump reg.
L0: . . . (R-format)|
L1: . . .
L2: . . .
L3: . . .
Exit: