MIPS shift left logical

436 views Asked by At

What would be another way to write the code below?

li $t1, 1      # load 1 in register $t1
sll $t1, $t1, 23    # shift value of 1 to the 24th bit to get 1000 0000 0000 0000 0000 0000

I am concerned that this code does not not actually shift 1 to the 24th bit. So what would be another way to write it?

Thanks in advance.

0

There are 0 answers