Hi,
why does such a instruction as
mul $t1, $v0 , 4
evaluates as expected. But
mul $t1, 4 , $v0
results in a syntax error!
I wonder why the first one works, because mul only works with registers per default, so I expect that only a solution like this will be workin
li $t1, 4 # set $t1 = 4
mul $t1, $v0 , $t1 # set $t1 = 4 * n
I'm using the SPIM simulator.