.data RTN: .asciz "\n" .globl main .text #------------------------------------- # a3=num,t0=NO_OF_BITS,t1=reverse_num, # t2=i,t3=temp reversebits: # t0=32 addi t0, x0, 32 add t1, x0, x0# i=0 addi t2, x0, 0 for_ini: sltu t4, t2, t0# i