Question: # PART 2 ( Swap Bit Pairs ) # # You are given an 3 2 - bits integer stored in $t 0 . You

# PART 2(Swap Bit Pairs)
#
# You are given an 32-bits integer stored in $t0. You need swap pair of bits
# at within every 4 bits. i.e. b31, b30<-> b29, b28,..., b3, b2<-> b1, b0
# The result must be stored inside $t9.
.globl swap_bits
swap_bits:
move $t0, $a0
############################## Part 2: your code begins here ############################################
############################## Part 2: your code ends here ############################################
move $v0, $t9
jr $ra

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!