mips.code 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. 00000000 <main>:
  2. 0: 0666697728 addiu sp,sp,-0 --p| push stack frame
  3. 4: 0001962017 addu fp,zero,sp --p|copy fp ← sp
  4. 8: 0201326597 jal 14 <main.preenche+0x0> .0.--jump to <main.preenche>
  5. c: 0201326630 jal 98 <main.multiplica+0x0> .1.--jump to <main.multiplica>
  6. 10: 4294967295 stop --end of programa
  7. 00000014 <main.preenche>:
  8. 14: 0666763252 addiu sp,sp,-12 --p| push stack frame
  9. 18: 0001962017 addu fp,zero,sp --p|copy fp ← sp
  10. 1c: 0605028353 addiu s0,zero,1 .0.--copy _V1 ← 1
  11. 20: 0605093888 addiu s1,zero,0 .1.--copy _V2 ← 0
  12. 24: 0134217761 j 84 <main.preenche+0x70> .2.
  13. 28: 0605159424 addiu s2,zero,0 .3.--copy _V3 ← 0
  14. 2c: 0134217757 j 74 <main.preenche+0x60> .4.
  15. 30: 0001136673 addu t3,zero,s1 .5.--copy _T4 ← _V2
  16. 34: 0000745536 sll t4,t3,1 .6.
  17. 38: 0001206305 addu t5,zero,s2 .7.--copy _T7 ← _V3
  18. 3c: 0026042401 addu t4,t4,t5 .8.
  19. 40: 0000815232 sll t6,t4,2 .9.
  20. 44: 0059666465 addu t6,gp,t6 .10.
  21. 48: 2916089856 sw s0,t6,0 .10.--store in loaded address
  22. 4c: 0001144865 addu t7,zero,s1 .11.--copy _T14 ← _V2
  23. 50: 0001032256 sll t8,t7,1 .12.
  24. 54: 0001196065 addu t0,zero,s2 .13.--copy _T17 ← _V3
  25. 58: 0050905121 addu t8,t8,t0 .14.
  26. 5c: 0001591424 sll t1,t8,2 .15.
  27. 60: 0059328545 addu t1,gp,t1 .16.
  28. 64: 2905604112 sw s0,t1,16 .16.--store in loaded address
  29. 68: 0638582785 addiu s0,s0,1 .17.
  30. 6c: 2949644288 sw s0,fp,0 .17.
  31. 70: 0642908161 addiu s2,s2,1 .18.
  32. 74: 0604831746 addiu t5,zero,2 .19.
  33. 78: 0038604835 subu v0,s2,t5 .19.
  34. 7c: 0071368685 bltz v0,30 <main.preenche+0x1c> .19.--branch if register < 0
  35. 80: 0640745473 addiu s1,s1,1 .20.
  36. 84: 0604897282 addiu t6,zero,2 .21.
  37. 88: 0036573219 subu v0,s1,t6 .21.
  38. 8c: 0071368679 bltz v0,28 <main.preenche+0x14> .21.--branch if register < 0
  39. 90: 0666697740 addiu sp,sp,12 --e|pop stack frame
  40. 94: 0065011720 jr ra --e|return
  41. 00000098 <main.multiplica>:
  42. 98: 0666763248 addiu sp,sp,-16 --p| push stack frame
  43. 9c: 0001962017 addu fp,zero,sp --p|copy fp ← sp
  44. a0: 0605028352 addiu s0,zero,0 .0.--copy _V26 ← 0
  45. a4: 0605093888 addiu s1,zero,0 .1.--copy _V27 ← 0
  46. a8: 0134217813 j 154 <main.multiplica+0xbc> .2.
  47. ac: 0605159424 addiu s2,zero,0 .3.--copy _V28 ← 0
  48. b0: 0134217809 j 144 <main.multiplica+0xac> .4.
  49. b4: 0605224960 addiu s3,zero,0 .5.--copy _V29 ← 0
  50. b8: 0134217796 j 110 <main.multiplica+0x78> .6.
  51. bc: 0001138721 addu t4,zero,s1 .7.--copy _T30 ← _V27
  52. c0: 0000813120 sll t5,t4,1 .8.
  53. c4: 0001273889 addu t6,zero,s3 .9.--copy _T33 ← _V29
  54. c8: 0028207137 addu t5,t5,t6 .10.
  55. cc: 0000882816 sll t7,t5,2 .11.
  56. d0: 0059734049 addu t7,gp,t7 .12.
  57. d4: 2381578240 lw s4,t7,0 .12.
  58. d8: 0001359905 addu t8,zero,s4 .12.--copy t8 ← s4
  59. dc: 0001261601 addu t0,zero,s3 .13.--copy _T40 ← _V29
  60. e0: 0000542784 sll t1,t0,1 .14.
  61. e4: 0001200161 addu t2,zero,s2 .15.--copy _T43 ← _V28
  62. e8: 0019548193 addu t1,t1,t2 .16.
  63. ec: 0000612480 sll t3,t1,2 .17.
  64. f0: 0059463713 addu t3,gp,t3 .18.
  65. f4: 2373255184 lw s5,t3,16 .18.
  66. f8: 0001400865 addu t4,zero,s5 .18.--copy t4 ← s5
  67. fc: 0051146776 mult t8,t4 .19.
  68. 100: 0000028690 mflo t6 .19.
  69. 104: 0034498593 addu t5,s0,t6 .20.
  70. 108: 0000884769 addu s0,zero,t5 .21.--copy _V26 ← _T51
  71. 10c: 0645070849 addiu s3,s3,1 .22.
  72. 110: 0604504066 addiu t0,zero,2 .23.
  73. 114: 0040374307 subu v0,s3,t0 .23.
  74. 118: 0071368681 bltz v0,bc <main.multiplica+0x24> .23.--branch if register < 0
  75. 11c: 0001134625 addu t2,zero,s1 .24.--copy _T53 ← _V27
  76. 120: 0000673856 sll t1,t2,1 .25.
  77. 124: 0001202209 addu t3,zero,s2 .26.--copy _T56 ← _V28
  78. 128: 0019613729 addu t1,t1,t3 .27.
  79. 12c: 0000639104 sll t8,t1,2 .28.
  80. 130: 0060342305 addu t8,gp,t8 .29.
  81. 134: 2937061408 sw s0,t8,32 .29.--store in loaded address
  82. 138: 0605028352 addiu s0,zero,0 .30.
  83. 13c: 2949644288 sw s0,fp,0 .30.--store content of s0 in _V26
  84. 140: 0642908161 addiu s2,s2,1 .31.
  85. 144: 0604831746 addiu t5,zero,2 .32.
  86. 148: 0038604835 subu v0,s2,t5 .32.
  87. 14c: 0071368666 bltz v0,b4 <main.multiplica+0x1c> .32.--branch if register < 0
  88. 150: 0640745473 addiu s1,s1,1 .33.
  89. 154: 0604504066 addiu t0,zero,2 .34.
  90. 158: 0036180003 subu v0,s1,t0 .34.
  91. 15c: 0071368660 bltz v0,ac <main.multiplica+0x14> .34.--branch if register < 0
  92. 160: 0666697744 addiu sp,sp,16 --e|pop stack frame
  93. 164: 0065011720 jr ra --e|return