daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. loop_segunda:
  2.     lw $s1 0($s0)
  3.     move $s6 $s1 #copia de la instruccion
  4.     srl $t1 $s1 26   #Hace un corrimiento para obtener el opcode
  5.     bne $s0 $s7 ver
  6.     jr $ra
  7.     ver:
  8.     bne $t1 $s3 es_beq
  9.         sll $s1 $s1 16
  10.         srl $s1 $s1 16
  11.                 mul $t3 $s1 4
  12.                 la $t2 tablaDirec
  13.                 add $t2 $t2 $t3
  14.                 lw $t4 0($t2)
  15.                 addi $t4 $t4 4         
  16.                 move $t5 $s0
  17.                 addi $t5 $t5 4
  18.                 sub $t4 $t4 $t5  #RESTa de direccion de la etiqueta menos branch
  19.                 div $t4 $t4 4              
  20.          corrimiento:
  21.             srl $s6 $s6 16
  22.             sll $s6 $s6 16
  23.             add $s6 $s6 $t4
  24.             sw $s6 0($s0)
  25.         addi $s0 $s0 4
  26.         j loop_segunda
  27. es_beq:
  28. addi $s0 $s0 4
  29.     j loop_segunda
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top