math.dis 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. math: file format elf32-littleriscv
  2. Disassembly of section .text:
  3. 00010094 <subtract>:
  4. 10094: fe010113 addi sp,sp,-32
  5. 10098: 00812e23 sw s0,28(sp)
  6. 1009c: 02010413 addi s0,sp,32
  7. 100a0: fea42623 sw a0,-20(s0)
  8. 100a4: feb42423 sw a1,-24(s0)
  9. 100a8: fec42703 lw a4,-20(s0)
  10. 100ac: fe842783 lw a5,-24(s0)
  11. 100b0: 40f707b3 sub a5,a4,a5
  12. 100b4: 00078513 mv a0,a5
  13. 100b8: 01c12403 lw s0,28(sp)
  14. 100bc: 02010113 addi sp,sp,32
  15. 100c0: 00008067 ret
  16. 000100c4 <main>:
  17. 100c4: fd010113 addi sp,sp,-48
  18. 100c8: 02112623 sw ra,44(sp)
  19. 100cc: 02812423 sw s0,40(sp)
  20. 100d0: 03010413 addi s0,sp,48
  21. 100d4: fca42e23 sw a0,-36(s0)
  22. 100d8: fcb42c23 sw a1,-40(s0)
  23. 100dc: 000107b7 lui a5,0x10
  24. 100e0: 16478793 addi a5,a5,356 # 10164 <_start+0x30>
  25. 100e4: fef42623 sw a5,-20(s0)
  26. 100e8: 000807b7 lui a5,0x80
  27. 100ec: 52078793 addi a5,a5,1312 # 80520 <__global_pointer$+0x6ebb7>
  28. 100f0: fef42423 sw a5,-24(s0)
  29. 100f4: 16d00793 li a5,365
  30. 100f8: fef42223 sw a5,-28(s0)
  31. 100fc: fe442583 lw a1,-28(s0)
  32. 10100: fe842503 lw a0,-24(s0)
  33. 10104: f91ff0ef jal ra,10094 <subtract>
  34. 10108: fea42023 sw a0,-32(s0)
  35. 1010c: fec42783 lw a5,-20(s0)
  36. 10110: 00178793 addi a5,a5,1
  37. 10114: 06700713 li a4,103
  38. 10118: 00e78023 sb a4,0(a5)
  39. 1011c: 00000793 li a5,0
  40. 10120: 00078513 mv a0,a5
  41. 10124: 02c12083 lw ra,44(sp)
  42. 10128: 02812403 lw s0,40(sp)
  43. 1012c: 03010113 addi sp,sp,48
  44. 10130: 00008067 ret
  45. 00010134 <_start>:
  46. 10134: ff010113 addi sp,sp,-16
  47. 10138: 00112623 sw ra,12(sp)
  48. 1013c: 00812423 sw s0,8(sp)
  49. 10140: 01010413 addi s0,sp,16
  50. 10144: 00000593 li a1,0
  51. 10148: 00000513 li a0,0
  52. 1014c: f79ff0ef jal ra,100c4 <main>
  53. 10150: 00000013 nop
  54. 10154: 00c12083 lw ra,12(sp)
  55. 10158: 00812403 lw s0,8(sp)
  56. 1015c: 01010113 addi sp,sp,16
  57. 10160: 00008067 ret