forked from Firmware/Firmwares
2312 lines
100 KiB
Plaintext
2312 lines
100 KiB
Plaintext
|
|
hello: file format elf32-littleriscv
|
|
|
|
|
|
Disassembly of section .init:
|
|
|
|
20400000 <_start>:
|
|
20400000: 5fc01197 auipc gp,0x5fc01
|
|
20400004: c2818193 addi gp,gp,-984 # 80000c28 <_gp>
|
|
20400008: 5fc04117 auipc sp,0x5fc04
|
|
2040000c: ff810113 addi sp,sp,-8 # 80004000 <_sp>
|
|
20400010: 00002517 auipc a0,0x2
|
|
20400014: 5a850513 addi a0,a0,1448 # 204025b8 <__fini_array_end>
|
|
20400018: 5fc00597 auipc a1,0x5fc00
|
|
2040001c: fe858593 addi a1,a1,-24 # 80000000 <_data>
|
|
20400020: 5fc00617 auipc a2,0x5fc00
|
|
20400024: 41060613 addi a2,a2,1040 # 80000430 <__bss_start>
|
|
20400028: 00c5fc63 bleu a2,a1,20400040 <_start+0x40>
|
|
2040002c: 00052283 lw t0,0(a0)
|
|
20400030: 0055a023 sw t0,0(a1)
|
|
20400034: 00450513 addi a0,a0,4
|
|
20400038: 00458593 addi a1,a1,4
|
|
2040003c: fec5e8e3 bltu a1,a2,2040002c <_start+0x2c>
|
|
20400040: 5fc00517 auipc a0,0x5fc00
|
|
20400044: 3f050513 addi a0,a0,1008 # 80000430 <__bss_start>
|
|
20400048: 5fc00597 auipc a1,0x5fc00
|
|
2040004c: 3f058593 addi a1,a1,1008 # 80000438 <_end>
|
|
20400050: 00b57863 bleu a1,a0,20400060 <_start+0x60>
|
|
20400054: 00052023 sw zero,0(a0)
|
|
20400058: 00450513 addi a0,a0,4
|
|
2040005c: feb56ce3 bltu a0,a1,20400054 <_start+0x54>
|
|
20400060: 00001517 auipc a0,0x1
|
|
20400064: 6dc50513 addi a0,a0,1756 # 2040173c <__libc_fini_array>
|
|
20400068: 688010ef jal ra,204016f0 <atexit>
|
|
2040006c: 740010ef jal ra,204017ac <__libc_init_array>
|
|
20400070: 00000513 li a0,0
|
|
20400074: 00000593 li a1,0
|
|
20400078: 384000ef jal ra,204003fc <main>
|
|
2040007c: 6880106f j 20401704 <exit>
|
|
|
|
Disassembly of section .text:
|
|
|
|
20400080 <trap_entry>:
|
|
20400080: f8010113 addi sp,sp,-128
|
|
20400084: 00112223 sw ra,4(sp)
|
|
20400088: 00212423 sw sp,8(sp)
|
|
2040008c: 00312623 sw gp,12(sp)
|
|
20400090: 00412823 sw tp,16(sp)
|
|
20400094: 00512a23 sw t0,20(sp)
|
|
20400098: 00612c23 sw t1,24(sp)
|
|
2040009c: 00712e23 sw t2,28(sp)
|
|
204000a0: 02812023 sw s0,32(sp)
|
|
204000a4: 02912223 sw s1,36(sp)
|
|
204000a8: 02a12423 sw a0,40(sp)
|
|
204000ac: 02b12623 sw a1,44(sp)
|
|
204000b0: 02c12823 sw a2,48(sp)
|
|
204000b4: 02d12a23 sw a3,52(sp)
|
|
204000b8: 02e12c23 sw a4,56(sp)
|
|
204000bc: 02f12e23 sw a5,60(sp)
|
|
204000c0: 05012023 sw a6,64(sp)
|
|
204000c4: 05112223 sw a7,68(sp)
|
|
204000c8: 05212423 sw s2,72(sp)
|
|
204000cc: 05312623 sw s3,76(sp)
|
|
204000d0: 05412823 sw s4,80(sp)
|
|
204000d4: 05512a23 sw s5,84(sp)
|
|
204000d8: 05612c23 sw s6,88(sp)
|
|
204000dc: 05712e23 sw s7,92(sp)
|
|
204000e0: 07812023 sw s8,96(sp)
|
|
204000e4: 07912223 sw s9,100(sp)
|
|
204000e8: 07a12423 sw s10,104(sp)
|
|
204000ec: 07b12623 sw s11,108(sp)
|
|
204000f0: 07c12823 sw t3,112(sp)
|
|
204000f4: 07d12a23 sw t4,116(sp)
|
|
204000f8: 07e12c23 sw t5,120(sp)
|
|
204000fc: 07f12e23 sw t6,124(sp)
|
|
20400100: 34202573 csrr a0,mcause
|
|
20400104: 341025f3 csrr a1,mepc
|
|
20400108: 00010613 mv a2,sp
|
|
2040010c: 234010ef jal ra,20401340 <handle_trap>
|
|
20400110: 34151073 csrw mepc,a0
|
|
20400114: 000022b7 lui t0,0x2
|
|
20400118: 80028293 addi t0,t0,-2048 # 1800 <__stack_size+0x1000>
|
|
2040011c: 3002a073 csrs mstatus,t0
|
|
20400120: 00412083 lw ra,4(sp)
|
|
20400124: 00812103 lw sp,8(sp)
|
|
20400128: 00c12183 lw gp,12(sp)
|
|
2040012c: 01012203 lw tp,16(sp)
|
|
20400130: 01412283 lw t0,20(sp)
|
|
20400134: 01812303 lw t1,24(sp)
|
|
20400138: 01c12383 lw t2,28(sp)
|
|
2040013c: 02012403 lw s0,32(sp)
|
|
20400140: 02412483 lw s1,36(sp)
|
|
20400144: 02812503 lw a0,40(sp)
|
|
20400148: 02c12583 lw a1,44(sp)
|
|
2040014c: 03012603 lw a2,48(sp)
|
|
20400150: 03412683 lw a3,52(sp)
|
|
20400154: 03812703 lw a4,56(sp)
|
|
20400158: 03c12783 lw a5,60(sp)
|
|
2040015c: 04012803 lw a6,64(sp)
|
|
20400160: 04412883 lw a7,68(sp)
|
|
20400164: 04812903 lw s2,72(sp)
|
|
20400168: 04c12983 lw s3,76(sp)
|
|
2040016c: 05012a03 lw s4,80(sp)
|
|
20400170: 05412a83 lw s5,84(sp)
|
|
20400174: 05812b03 lw s6,88(sp)
|
|
20400178: 05c12b83 lw s7,92(sp)
|
|
2040017c: 06012c03 lw s8,96(sp)
|
|
20400180: 06412c83 lw s9,100(sp)
|
|
20400184: 06812d03 lw s10,104(sp)
|
|
20400188: 06c12d83 lw s11,108(sp)
|
|
2040018c: 07012e03 lw t3,112(sp)
|
|
20400190: 07412e83 lw t4,116(sp)
|
|
20400194: 07812f03 lw t5,120(sp)
|
|
20400198: 07c12f83 lw t6,124(sp)
|
|
2040019c: 08010113 addi sp,sp,128
|
|
204001a0: 30200073 mret
|
|
204001a4: 0000006f j 204001a4 <trap_entry+0x124>
|
|
|
|
204001a8 <factorial>:
|
|
204001a8: fd010113 addi sp,sp,-48
|
|
204001ac: 02112623 sw ra,44(sp)
|
|
204001b0: 02812423 sw s0,40(sp)
|
|
204001b4: 03010413 addi s0,sp,48
|
|
204001b8: fca42e23 sw a0,-36(s0)
|
|
204001bc: 00100793 li a5,1
|
|
204001c0: fef42423 sw a5,-24(s0)
|
|
204001c4: 00100793 li a5,1
|
|
204001c8: fef42623 sw a5,-20(s0)
|
|
204001cc: 0280006f j 204001f4 <factorial+0x4c>
|
|
204001d0: fe842783 lw a5,-24(s0)
|
|
204001d4: fec42583 lw a1,-20(s0)
|
|
204001d8: 00078513 mv a0,a5
|
|
204001dc: 791010ef jal ra,2040216c <__mulsi3>
|
|
204001e0: 00050793 mv a5,a0
|
|
204001e4: fef42423 sw a5,-24(s0)
|
|
204001e8: fec42783 lw a5,-20(s0)
|
|
204001ec: 00178793 addi a5,a5,1
|
|
204001f0: fef42623 sw a5,-20(s0)
|
|
204001f4: fec42703 lw a4,-20(s0)
|
|
204001f8: fdc42783 lw a5,-36(s0)
|
|
204001fc: fce7dae3 ble a4,a5,204001d0 <factorial+0x28>
|
|
20400200: fe842783 lw a5,-24(s0)
|
|
20400204: 00078513 mv a0,a5
|
|
20400208: 02c12083 lw ra,44(sp)
|
|
2040020c: 02812403 lw s0,40(sp)
|
|
20400210: 03010113 addi sp,sp,48
|
|
20400214: 00008067 ret
|
|
|
|
20400218 <read_adc>:
|
|
20400218: fd010113 addi sp,sp,-48
|
|
2040021c: 02812623 sw s0,44(sp)
|
|
20400220: 03010413 addi s0,sp,48
|
|
20400224: fca42e23 sw a0,-36(s0)
|
|
20400228: fe042623 sw zero,-20(s0)
|
|
2040022c: 00100793 li a5,1
|
|
20400230: fef40423 sb a5,-24(s0)
|
|
20400234: fdc42783 lw a5,-36(s0)
|
|
20400238: 0ff7f793 andi a5,a5,255
|
|
2040023c: 00479793 slli a5,a5,0x4
|
|
20400240: 0ff7f793 andi a5,a5,255
|
|
20400244: 0707f793 andi a5,a5,112
|
|
20400248: 0ff7f793 andi a5,a5,255
|
|
2040024c: f807e793 ori a5,a5,-128
|
|
20400250: 0ff7f793 andi a5,a5,255
|
|
20400254: fef404a3 sb a5,-23(s0)
|
|
20400258: fe040523 sb zero,-22(s0)
|
|
2040025c: 100127b7 lui a5,0x10012
|
|
20400260: 03c78793 addi a5,a5,60 # 1001203c <__stack_size+0x1001183c>
|
|
20400264: 0007a703 lw a4,0(a5)
|
|
20400268: 100127b7 lui a5,0x10012
|
|
2040026c: 03c78793 addi a5,a5,60 # 1001203c <__stack_size+0x1001183c>
|
|
20400270: fc377713 andi a4,a4,-61
|
|
20400274: 00e7a023 sw a4,0(a5)
|
|
20400278: 100127b7 lui a5,0x10012
|
|
2040027c: 03878793 addi a5,a5,56 # 10012038 <__stack_size+0x10011838>
|
|
20400280: 0007a703 lw a4,0(a5)
|
|
20400284: 100127b7 lui a5,0x10012
|
|
20400288: 03878793 addi a5,a5,56 # 10012038 <__stack_size+0x10011838>
|
|
2040028c: 03c76713 ori a4,a4,60
|
|
20400290: 00e7a023 sw a4,0(a5)
|
|
20400294: 100247b7 lui a5,0x10024
|
|
20400298: 04078793 addi a5,a5,64 # 10024040 <__stack_size+0x10023840>
|
|
2040029c: 00080737 lui a4,0x80
|
|
204002a0: 00e7a023 sw a4,0(a5)
|
|
204002a4: 100247b7 lui a5,0x10024
|
|
204002a8: 01078793 addi a5,a5,16 # 10024010 <__stack_size+0x10023810>
|
|
204002ac: 0007a023 sw zero,0(a5)
|
|
204002b0: 100247b7 lui a5,0x10024
|
|
204002b4: 01478793 addi a5,a5,20 # 10024014 <__stack_size+0x10023814>
|
|
204002b8: 00010737 lui a4,0x10
|
|
204002bc: fff70713 addi a4,a4,-1 # ffff <__stack_size+0xf7ff>
|
|
204002c0: 00e7a023 sw a4,0(a5)
|
|
204002c4: 100247b7 lui a5,0x10024
|
|
204002c8: 00700713 li a4,7
|
|
204002cc: 00e7a023 sw a4,0(a5) # 10024000 <__stack_size+0x10023800>
|
|
204002d0: 100247b7 lui a5,0x10024
|
|
204002d4: 00478793 addi a5,a5,4 # 10024004 <__stack_size+0x10023804>
|
|
204002d8: 00300713 li a4,3
|
|
204002dc: 00e7a023 sw a4,0(a5)
|
|
204002e0: 100247b7 lui a5,0x10024
|
|
204002e4: 01878793 addi a5,a5,24 # 10024018 <__stack_size+0x10023818>
|
|
204002e8: 00200713 li a4,2
|
|
204002ec: 00e7a023 sw a4,0(a5)
|
|
204002f0: 00000013 nop
|
|
204002f4: 100247b7 lui a5,0x10024
|
|
204002f8: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
204002fc: 0007a783 lw a5,0(a5)
|
|
20400300: fe07cae3 bltz a5,204002f4 <read_adc+0xdc>
|
|
20400304: fe844703 lbu a4,-24(s0)
|
|
20400308: 100247b7 lui a5,0x10024
|
|
2040030c: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
20400310: 00e7a023 sw a4,0(a5)
|
|
20400314: 00000013 nop
|
|
20400318: 100247b7 lui a5,0x10024
|
|
2040031c: 04c78793 addi a5,a5,76 # 1002404c <__stack_size+0x1002384c>
|
|
20400320: 0007a783 lw a5,0(a5)
|
|
20400324: fef42223 sw a5,-28(s0)
|
|
20400328: fe07c8e3 bltz a5,20400318 <read_adc+0x100>
|
|
2040032c: 00000013 nop
|
|
20400330: 100247b7 lui a5,0x10024
|
|
20400334: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
20400338: 0007a783 lw a5,0(a5)
|
|
2040033c: fe07cae3 bltz a5,20400330 <read_adc+0x118>
|
|
20400340: fe944703 lbu a4,-23(s0)
|
|
20400344: 100247b7 lui a5,0x10024
|
|
20400348: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
2040034c: 00e7a023 sw a4,0(a5)
|
|
20400350: 00000013 nop
|
|
20400354: 100247b7 lui a5,0x10024
|
|
20400358: 04c78793 addi a5,a5,76 # 1002404c <__stack_size+0x1002384c>
|
|
2040035c: 0007a783 lw a5,0(a5)
|
|
20400360: fef42223 sw a5,-28(s0)
|
|
20400364: fe07c8e3 bltz a5,20400354 <read_adc+0x13c>
|
|
20400368: fe442783 lw a5,-28(s0)
|
|
2040036c: 00879793 slli a5,a5,0x8
|
|
20400370: 00078713 mv a4,a5
|
|
20400374: 000107b7 lui a5,0x10
|
|
20400378: f0078793 addi a5,a5,-256 # ff00 <__stack_size+0xf700>
|
|
2040037c: 00f777b3 and a5,a4,a5
|
|
20400380: fef42623 sw a5,-20(s0)
|
|
20400384: 00000013 nop
|
|
20400388: 100247b7 lui a5,0x10024
|
|
2040038c: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
20400390: 0007a783 lw a5,0(a5)
|
|
20400394: fe07cae3 bltz a5,20400388 <read_adc+0x170>
|
|
20400398: fea44703 lbu a4,-22(s0)
|
|
2040039c: 100247b7 lui a5,0x10024
|
|
204003a0: 04878793 addi a5,a5,72 # 10024048 <__stack_size+0x10023848>
|
|
204003a4: 00e7a023 sw a4,0(a5)
|
|
204003a8: 00000013 nop
|
|
204003ac: 100247b7 lui a5,0x10024
|
|
204003b0: 04c78793 addi a5,a5,76 # 1002404c <__stack_size+0x1002384c>
|
|
204003b4: 0007a783 lw a5,0(a5)
|
|
204003b8: fef42223 sw a5,-28(s0)
|
|
204003bc: fe07c8e3 bltz a5,204003ac <read_adc+0x194>
|
|
204003c0: fe442783 lw a5,-28(s0)
|
|
204003c4: 0ff7f793 andi a5,a5,255
|
|
204003c8: 00078713 mv a4,a5
|
|
204003cc: fec42783 lw a5,-20(s0)
|
|
204003d0: 00e787b3 add a5,a5,a4
|
|
204003d4: fef42623 sw a5,-20(s0)
|
|
204003d8: 100247b7 lui a5,0x10024
|
|
204003dc: 01878793 addi a5,a5,24 # 10024018 <__stack_size+0x10023818>
|
|
204003e0: 0007a023 sw zero,0(a5)
|
|
204003e4: fec42783 lw a5,-20(s0)
|
|
204003e8: 3ff7f793 andi a5,a5,1023
|
|
204003ec: 00078513 mv a0,a5
|
|
204003f0: 02c12403 lw s0,44(sp)
|
|
204003f4: 03010113 addi sp,sp,48
|
|
204003f8: 00008067 ret
|
|
|
|
204003fc <main>:
|
|
204003fc: fe010113 addi sp,sp,-32
|
|
20400400: 00112e23 sw ra,28(sp)
|
|
20400404: 00812c23 sw s0,24(sp)
|
|
20400408: 02010413 addi s0,sp,32
|
|
2040040c: 000057b7 lui a5,0x5
|
|
20400410: 5aa78593 addi a1,a5,1450 # 55aa <__stack_size+0x4daa>
|
|
20400414: 00100513 li a0,1
|
|
20400418: 200010ef jal ra,20401618 <write_hex>
|
|
2040041c: 00a00513 li a0,10
|
|
20400420: d89ff0ef jal ra,204001a8 <factorial>
|
|
20400424: 00050793 mv a5,a0
|
|
20400428: fef42423 sw a5,-24(s0)
|
|
2040042c: fe842783 lw a5,-24(s0)
|
|
20400430: 00078593 mv a1,a5
|
|
20400434: 204027b7 lui a5,0x20402
|
|
20400438: 29078513 addi a0,a5,656 # 20402290 <__clzsi2+0x4c>
|
|
2040043c: 0d1000ef jal ra,20400d0c <__wrap_printf>
|
|
20400440: fe042623 sw zero,-20(s0)
|
|
20400444: 0300006f j 20400474 <main+0x78>
|
|
20400448: fec42503 lw a0,-20(s0)
|
|
2040044c: dcdff0ef jal ra,20400218 <read_adc>
|
|
20400450: 00050793 mv a5,a0
|
|
20400454: 00078613 mv a2,a5
|
|
20400458: fec42583 lw a1,-20(s0)
|
|
2040045c: 204027b7 lui a5,0x20402
|
|
20400460: 2a478513 addi a0,a5,676 # 204022a4 <__clzsi2+0x60>
|
|
20400464: 0a9000ef jal ra,20400d0c <__wrap_printf>
|
|
20400468: fec42783 lw a5,-20(s0)
|
|
2040046c: 00178793 addi a5,a5,1
|
|
20400470: fef42623 sw a5,-20(s0)
|
|
20400474: fec42703 lw a4,-20(s0)
|
|
20400478: 00700793 li a5,7
|
|
2040047c: fce7f6e3 bleu a4,a5,20400448 <main+0x4c>
|
|
20400480: 204027b7 lui a5,0x20402
|
|
20400484: 2bc78513 addi a0,a5,700 # 204022bc <__clzsi2+0x78>
|
|
20400488: 085000ef jal ra,20400d0c <__wrap_printf>
|
|
2040048c: 00000793 li a5,0
|
|
20400490: 00078513 mv a0,a5
|
|
20400494: 01c12083 lw ra,28(sp)
|
|
20400498: 01812403 lw s0,24(sp)
|
|
2040049c: 02010113 addi sp,sp,32
|
|
204004a0: 00008067 ret
|
|
|
|
204004a4 <putchar>:
|
|
204004a4: fe010113 addi sp,sp,-32
|
|
204004a8: 00112e23 sw ra,28(sp)
|
|
204004ac: 00812c23 sw s0,24(sp)
|
|
204004b0: 02010413 addi s0,sp,32
|
|
204004b4: fea42623 sw a0,-20(s0)
|
|
204004b8: fec40793 addi a5,s0,-20
|
|
204004bc: 00100613 li a2,1
|
|
204004c0: 00078593 mv a1,a5
|
|
204004c4: 00100513 li a0,1
|
|
204004c8: 785000ef jal ra,2040144c <__wrap_write>
|
|
204004cc: 00050713 mv a4,a0
|
|
204004d0: 00100793 li a5,1
|
|
204004d4: 00f71663 bne a4,a5,204004e0 <putchar+0x3c>
|
|
204004d8: fec42783 lw a5,-20(s0)
|
|
204004dc: 0080006f j 204004e4 <putchar+0x40>
|
|
204004e0: fff00793 li a5,-1
|
|
204004e4: 00078513 mv a0,a5
|
|
204004e8: 01c12083 lw ra,28(sp)
|
|
204004ec: 01812403 lw s0,24(sp)
|
|
204004f0: 02010113 addi sp,sp,32
|
|
204004f4: 00008067 ret
|
|
|
|
204004f8 <sprintf_putch>:
|
|
204004f8: fd010113 addi sp,sp,-48
|
|
204004fc: 02812623 sw s0,44(sp)
|
|
20400500: 03010413 addi s0,sp,48
|
|
20400504: fca42e23 sw a0,-36(s0)
|
|
20400508: fcb42c23 sw a1,-40(s0)
|
|
2040050c: fd842783 lw a5,-40(s0)
|
|
20400510: fef42623 sw a5,-20(s0)
|
|
20400514: fec42783 lw a5,-20(s0)
|
|
20400518: 0007a783 lw a5,0(a5)
|
|
2040051c: fdc42703 lw a4,-36(s0)
|
|
20400520: 0ff77713 andi a4,a4,255
|
|
20400524: 00e78023 sb a4,0(a5)
|
|
20400528: fec42783 lw a5,-20(s0)
|
|
2040052c: 0007a783 lw a5,0(a5)
|
|
20400530: 00178713 addi a4,a5,1
|
|
20400534: fec42783 lw a5,-20(s0)
|
|
20400538: 00e7a023 sw a4,0(a5)
|
|
2040053c: 00000013 nop
|
|
20400540: 02c12403 lw s0,44(sp)
|
|
20400544: 03010113 addi sp,sp,48
|
|
20400548: 00008067 ret
|
|
|
|
2040054c <getuint>:
|
|
2040054c: fe010113 addi sp,sp,-32
|
|
20400550: 00812e23 sw s0,28(sp)
|
|
20400554: 02010413 addi s0,sp,32
|
|
20400558: fea42623 sw a0,-20(s0)
|
|
2040055c: feb42423 sw a1,-24(s0)
|
|
20400560: fe842783 lw a5,-24(s0)
|
|
20400564: 02078063 beqz a5,20400584 <getuint+0x38>
|
|
20400568: fec42783 lw a5,-20(s0)
|
|
2040056c: 0007a783 lw a5,0(a5)
|
|
20400570: 00478693 addi a3,a5,4
|
|
20400574: fec42703 lw a4,-20(s0)
|
|
20400578: 00d72023 sw a3,0(a4)
|
|
2040057c: 0007a783 lw a5,0(a5)
|
|
20400580: 01c0006f j 2040059c <getuint+0x50>
|
|
20400584: fec42783 lw a5,-20(s0)
|
|
20400588: 0007a783 lw a5,0(a5)
|
|
2040058c: 00478693 addi a3,a5,4
|
|
20400590: fec42703 lw a4,-20(s0)
|
|
20400594: 00d72023 sw a3,0(a4)
|
|
20400598: 0007a783 lw a5,0(a5)
|
|
2040059c: 00078513 mv a0,a5
|
|
204005a0: 01c12403 lw s0,28(sp)
|
|
204005a4: 02010113 addi sp,sp,32
|
|
204005a8: 00008067 ret
|
|
|
|
204005ac <getint>:
|
|
204005ac: fe010113 addi sp,sp,-32
|
|
204005b0: 00812e23 sw s0,28(sp)
|
|
204005b4: 02010413 addi s0,sp,32
|
|
204005b8: fea42623 sw a0,-20(s0)
|
|
204005bc: feb42423 sw a1,-24(s0)
|
|
204005c0: fe842783 lw a5,-24(s0)
|
|
204005c4: 02078063 beqz a5,204005e4 <getint+0x38>
|
|
204005c8: fec42783 lw a5,-20(s0)
|
|
204005cc: 0007a783 lw a5,0(a5)
|
|
204005d0: 00478693 addi a3,a5,4
|
|
204005d4: fec42703 lw a4,-20(s0)
|
|
204005d8: 00d72023 sw a3,0(a4)
|
|
204005dc: 0007a783 lw a5,0(a5)
|
|
204005e0: 01c0006f j 204005fc <getint+0x50>
|
|
204005e4: fec42783 lw a5,-20(s0)
|
|
204005e8: 0007a783 lw a5,0(a5)
|
|
204005ec: 00478693 addi a3,a5,4
|
|
204005f0: fec42703 lw a4,-20(s0)
|
|
204005f4: 00d72023 sw a3,0(a4)
|
|
204005f8: 0007a783 lw a5,0(a5)
|
|
204005fc: 00078513 mv a0,a5
|
|
20400600: 01c12403 lw s0,28(sp)
|
|
20400604: 02010113 addi sp,sp,32
|
|
20400608: 00008067 ret
|
|
|
|
2040060c <printnum>:
|
|
2040060c: f4010113 addi sp,sp,-192
|
|
20400610: 0a112e23 sw ra,188(sp)
|
|
20400614: 0a812c23 sw s0,184(sp)
|
|
20400618: 0a912a23 sw s1,180(sp)
|
|
2040061c: 0c010413 addi s0,sp,192
|
|
20400620: f4a42e23 sw a0,-164(s0)
|
|
20400624: f4b42c23 sw a1,-168(s0)
|
|
20400628: f4c42a23 sw a2,-172(s0)
|
|
2040062c: f4d42823 sw a3,-176(s0)
|
|
20400630: f4e42623 sw a4,-180(s0)
|
|
20400634: f4f42423 sw a5,-184(s0)
|
|
20400638: fe042623 sw zero,-20(s0)
|
|
2040063c: fec42483 lw s1,-20(s0)
|
|
20400640: 00148793 addi a5,s1,1
|
|
20400644: fef42623 sw a5,-20(s0)
|
|
20400648: f5442783 lw a5,-172(s0)
|
|
2040064c: f5042583 lw a1,-176(s0)
|
|
20400650: 00078513 mv a0,a5
|
|
20400654: 38d010ef jal ra,204021e0 <__umodsi3>
|
|
20400658: 00050793 mv a5,a0
|
|
2040065c: 00078713 mv a4,a5
|
|
20400660: 00249793 slli a5,s1,0x2
|
|
20400664: ff040693 addi a3,s0,-16
|
|
20400668: 00f687b3 add a5,a3,a5
|
|
2040066c: f6e7ae23 sw a4,-132(a5)
|
|
20400670: f5442703 lw a4,-172(s0)
|
|
20400674: f5042783 lw a5,-176(s0)
|
|
20400678: 00f76e63 bltu a4,a5,20400694 <printnum+0x88>
|
|
2040067c: f5042583 lw a1,-176(s0)
|
|
20400680: f5442503 lw a0,-172(s0)
|
|
20400684: 315010ef jal ra,20402198 <__udivsi3>
|
|
20400688: 00050793 mv a5,a0
|
|
2040068c: f4f42a23 sw a5,-172(s0)
|
|
20400690: fadff06f j 2040063c <printnum+0x30>
|
|
20400694: 00000013 nop
|
|
20400698: 0140006f j 204006ac <printnum+0xa0>
|
|
2040069c: f5c42783 lw a5,-164(s0)
|
|
204006a0: f5842583 lw a1,-168(s0)
|
|
204006a4: f4842503 lw a0,-184(s0)
|
|
204006a8: 000780e7 jalr a5
|
|
204006ac: f4c42783 lw a5,-180(s0)
|
|
204006b0: fff78713 addi a4,a5,-1
|
|
204006b4: f4e42623 sw a4,-180(s0)
|
|
204006b8: fec42703 lw a4,-20(s0)
|
|
204006bc: fef740e3 blt a4,a5,2040069c <printnum+0x90>
|
|
204006c0: 0540006f j 20400714 <printnum+0x108>
|
|
204006c4: fec42783 lw a5,-20(s0)
|
|
204006c8: 00279793 slli a5,a5,0x2
|
|
204006cc: ff040713 addi a4,s0,-16
|
|
204006d0: 00f707b3 add a5,a4,a5
|
|
204006d4: f7c7a703 lw a4,-132(a5)
|
|
204006d8: fec42783 lw a5,-20(s0)
|
|
204006dc: 00279793 slli a5,a5,0x2
|
|
204006e0: ff040693 addi a3,s0,-16
|
|
204006e4: 00f687b3 add a5,a3,a5
|
|
204006e8: f7c7a683 lw a3,-132(a5)
|
|
204006ec: 00900793 li a5,9
|
|
204006f0: 00d7f663 bleu a3,a5,204006fc <printnum+0xf0>
|
|
204006f4: 05700793 li a5,87
|
|
204006f8: 0080006f j 20400700 <printnum+0xf4>
|
|
204006fc: 03000793 li a5,48
|
|
20400700: 00e787b3 add a5,a5,a4
|
|
20400704: f5c42703 lw a4,-164(s0)
|
|
20400708: f5842583 lw a1,-168(s0)
|
|
2040070c: 00078513 mv a0,a5
|
|
20400710: 000700e7 jalr a4
|
|
20400714: fec42783 lw a5,-20(s0)
|
|
20400718: fff78713 addi a4,a5,-1
|
|
2040071c: fee42623 sw a4,-20(s0)
|
|
20400720: faf042e3 bgtz a5,204006c4 <printnum+0xb8>
|
|
20400724: 00000013 nop
|
|
20400728: 0bc12083 lw ra,188(sp)
|
|
2040072c: 0b812403 lw s0,184(sp)
|
|
20400730: 0b412483 lw s1,180(sp)
|
|
20400734: 0c010113 addi sp,sp,192
|
|
20400738: 00008067 ret
|
|
|
|
2040073c <print_double>:
|
|
2040073c: f9010113 addi sp,sp,-112
|
|
20400740: 06112623 sw ra,108(sp)
|
|
20400744: 06812423 sw s0,104(sp)
|
|
20400748: 07212223 sw s2,100(sp)
|
|
2040074c: 07312023 sw s3,96(sp)
|
|
20400750: 07010413 addi s0,sp,112
|
|
20400754: faa42623 sw a0,-84(s0)
|
|
20400758: fab42423 sw a1,-88(s0)
|
|
2040075c: fac42023 sw a2,-96(s0)
|
|
20400760: fad42223 sw a3,-92(s0)
|
|
20400764: f8e42e23 sw a4,-100(s0)
|
|
20400768: f8f42c23 sw a5,-104(s0)
|
|
2040076c: fa042783 lw a5,-96(s0)
|
|
20400770: fa442803 lw a6,-92(s0)
|
|
20400774: fcf42c23 sw a5,-40(s0)
|
|
20400778: fd042e23 sw a6,-36(s0)
|
|
2040077c: fd842783 lw a5,-40(s0)
|
|
20400780: fdc42803 lw a6,-36(s0)
|
|
20400784: 00080793 mv a5,a6
|
|
20400788: 0207da63 bgez a5,204007bc <print_double+0x80>
|
|
2040078c: fac42783 lw a5,-84(s0)
|
|
20400790: fa842583 lw a1,-88(s0)
|
|
20400794: 02d00513 li a0,45
|
|
20400798: 000780e7 jalr a5
|
|
2040079c: fd842783 lw a5,-40(s0)
|
|
204007a0: fdc42803 lw a6,-36(s0)
|
|
204007a4: fff7f913 andi s2,a5,-1
|
|
204007a8: 80000737 lui a4,0x80000
|
|
204007ac: fff74713 not a4,a4
|
|
204007b0: 00e879b3 and s3,a6,a4
|
|
204007b4: fd242c23 sw s2,-40(s0)
|
|
204007b8: fd342e23 sw s3,-36(s0)
|
|
204007bc: fe042623 sw zero,-20(s0)
|
|
204007c0: 0400006f j 20400800 <print_double+0xc4>
|
|
204007c4: fd842783 lw a5,-40(s0)
|
|
204007c8: fdc42803 lw a6,-36(s0)
|
|
204007cc: 20402737 lui a4,0x20402
|
|
204007d0: 43072603 lw a2,1072(a4) # 20402430 <__clzsi2+0x1ec>
|
|
204007d4: 43472683 lw a3,1076(a4)
|
|
204007d8: 00078513 mv a0,a5
|
|
204007dc: 00080593 mv a1,a6
|
|
204007e0: 220010ef jal ra,20401a00 <__muldf3>
|
|
204007e4: 00050793 mv a5,a0
|
|
204007e8: 00058813 mv a6,a1
|
|
204007ec: fcf42c23 sw a5,-40(s0)
|
|
204007f0: fd042e23 sw a6,-36(s0)
|
|
204007f4: fec42783 lw a5,-20(s0)
|
|
204007f8: 00178793 addi a5,a5,1
|
|
204007fc: fef42623 sw a5,-20(s0)
|
|
20400800: fec42703 lw a4,-20(s0)
|
|
20400804: f9842783 lw a5,-104(s0)
|
|
20400808: faf74ee3 blt a4,a5,204007c4 <print_double+0x88>
|
|
2040080c: fb840793 addi a5,s0,-72
|
|
20400810: faf42a23 sw a5,-76(s0)
|
|
20400814: fd842783 lw a5,-40(s0)
|
|
20400818: fdc42803 lw a6,-36(s0)
|
|
2040081c: 00078513 mv a0,a5
|
|
20400820: 00080593 mv a1,a6
|
|
20400824: 0cd010ef jal ra,204020f0 <__fixunsdfsi>
|
|
20400828: 00050613 mv a2,a0
|
|
2040082c: fb440593 addi a1,s0,-76
|
|
20400830: 00000793 li a5,0
|
|
20400834: 00000713 li a4,0
|
|
20400838: 00a00693 li a3,10
|
|
2040083c: 20400537 lui a0,0x20400
|
|
20400840: 4f850513 addi a0,a0,1272 # 204004f8 <sprintf_putch>
|
|
20400844: dc9ff0ef jal ra,2040060c <printnum>
|
|
20400848: f9842783 lw a5,-104(s0)
|
|
2040084c: 06f05863 blez a5,204008bc <print_double+0x180>
|
|
20400850: fe042423 sw zero,-24(s0)
|
|
20400854: 0380006f j 2040088c <print_double+0x150>
|
|
20400858: fb442703 lw a4,-76(s0)
|
|
2040085c: fe842783 lw a5,-24(s0)
|
|
20400860: fff7c793 not a5,a5
|
|
20400864: 00f70733 add a4,a4,a5
|
|
20400868: fb442783 lw a5,-76(s0)
|
|
2040086c: fe842683 lw a3,-24(s0)
|
|
20400870: 40d006b3 neg a3,a3
|
|
20400874: 00d787b3 add a5,a5,a3
|
|
20400878: 00074703 lbu a4,0(a4)
|
|
2040087c: 00e78023 sb a4,0(a5)
|
|
20400880: fe842783 lw a5,-24(s0)
|
|
20400884: 00178793 addi a5,a5,1
|
|
20400888: fef42423 sw a5,-24(s0)
|
|
2040088c: fe842703 lw a4,-24(s0)
|
|
20400890: f9842783 lw a5,-104(s0)
|
|
20400894: fcf742e3 blt a4,a5,20400858 <print_double+0x11c>
|
|
20400898: fb442783 lw a5,-76(s0)
|
|
2040089c: f9842703 lw a4,-104(s0)
|
|
204008a0: 40e00733 neg a4,a4
|
|
204008a4: 00e787b3 add a5,a5,a4
|
|
204008a8: 02e00713 li a4,46
|
|
204008ac: 00e78023 sb a4,0(a5)
|
|
204008b0: fb442783 lw a5,-76(s0)
|
|
204008b4: 00178793 addi a5,a5,1
|
|
204008b8: faf42a23 sw a5,-76(s0)
|
|
204008bc: fb840793 addi a5,s0,-72
|
|
204008c0: fef42223 sw a5,-28(s0)
|
|
204008c4: 0280006f j 204008ec <print_double+0x1b0>
|
|
204008c8: fe442783 lw a5,-28(s0)
|
|
204008cc: 0007c783 lbu a5,0(a5)
|
|
204008d0: fac42703 lw a4,-84(s0)
|
|
204008d4: fa842583 lw a1,-88(s0)
|
|
204008d8: 00078513 mv a0,a5
|
|
204008dc: 000700e7 jalr a4
|
|
204008e0: fe442783 lw a5,-28(s0)
|
|
204008e4: 00178793 addi a5,a5,1
|
|
204008e8: fef42223 sw a5,-28(s0)
|
|
204008ec: fb442783 lw a5,-76(s0)
|
|
204008f0: fe442703 lw a4,-28(s0)
|
|
204008f4: fcf76ae3 bltu a4,a5,204008c8 <print_double+0x18c>
|
|
204008f8: 00000013 nop
|
|
204008fc: 06c12083 lw ra,108(sp)
|
|
20400900: 06812403 lw s0,104(sp)
|
|
20400904: 06412903 lw s2,100(sp)
|
|
20400908: 06012983 lw s3,96(sp)
|
|
2040090c: 07010113 addi sp,sp,112
|
|
20400910: 00008067 ret
|
|
|
|
20400914 <vprintfmt>:
|
|
20400914: fc010113 addi sp,sp,-64
|
|
20400918: 02112e23 sw ra,60(sp)
|
|
2040091c: 02812c23 sw s0,56(sp)
|
|
20400920: 02912a23 sw s1,52(sp)
|
|
20400924: 03212823 sw s2,48(sp)
|
|
20400928: 04010413 addi s0,sp,64
|
|
2040092c: fca42623 sw a0,-52(s0)
|
|
20400930: fcb42423 sw a1,-56(s0)
|
|
20400934: fcc42223 sw a2,-60(s0)
|
|
20400938: fcd42023 sw a3,-64(s0)
|
|
2040093c: 0240006f j 20400960 <vprintfmt+0x4c>
|
|
20400940: 3a048863 beqz s1,20400cf0 <vprintfmt+0x3dc>
|
|
20400944: fc442783 lw a5,-60(s0)
|
|
20400948: 00178793 addi a5,a5,1
|
|
2040094c: fcf42223 sw a5,-60(s0)
|
|
20400950: fcc42783 lw a5,-52(s0)
|
|
20400954: fc842583 lw a1,-56(s0)
|
|
20400958: 00048513 mv a0,s1
|
|
2040095c: 000780e7 jalr a5
|
|
20400960: fc442783 lw a5,-60(s0)
|
|
20400964: 0007c783 lbu a5,0(a5)
|
|
20400968: 00078493 mv s1,a5
|
|
2040096c: 02500793 li a5,37
|
|
20400970: fcf498e3 bne s1,a5,20400940 <vprintfmt+0x2c>
|
|
20400974: fc442783 lw a5,-60(s0)
|
|
20400978: 00178793 addi a5,a5,1
|
|
2040097c: fcf42223 sw a5,-60(s0)
|
|
20400980: fc442783 lw a5,-60(s0)
|
|
20400984: fcf42a23 sw a5,-44(s0)
|
|
20400988: 02000793 li a5,32
|
|
2040098c: fcf40da3 sb a5,-37(s0)
|
|
20400990: fff00793 li a5,-1
|
|
20400994: fef42023 sw a5,-32(s0)
|
|
20400998: fff00793 li a5,-1
|
|
2040099c: fcf42e23 sw a5,-36(s0)
|
|
204009a0: fe042223 sw zero,-28(s0)
|
|
204009a4: fc042823 sw zero,-48(s0)
|
|
204009a8: fc442783 lw a5,-60(s0)
|
|
204009ac: 00178713 addi a4,a5,1
|
|
204009b0: fce42223 sw a4,-60(s0)
|
|
204009b4: 0007c783 lbu a5,0(a5)
|
|
204009b8: 00078493 mv s1,a5
|
|
204009bc: fdd48793 addi a5,s1,-35
|
|
204009c0: 05500713 li a4,85
|
|
204009c4: 30f76663 bltu a4,a5,20400cd0 <vprintfmt+0x3bc>
|
|
204009c8: 00279713 slli a4,a5,0x2
|
|
204009cc: 204027b7 lui a5,0x20402
|
|
204009d0: 2d878793 addi a5,a5,728 # 204022d8 <__clzsi2+0x94>
|
|
204009d4: 00f707b3 add a5,a4,a5
|
|
204009d8: 0007a783 lw a5,0(a5)
|
|
204009dc: 00078067 jr a5
|
|
204009e0: 02d00793 li a5,45
|
|
204009e4: fcf40da3 sb a5,-37(s0)
|
|
204009e8: fc1ff06f j 204009a8 <vprintfmt+0x94>
|
|
204009ec: 03000793 li a5,48
|
|
204009f0: fcf40da3 sb a5,-37(s0)
|
|
204009f4: fb5ff06f j 204009a8 <vprintfmt+0x94>
|
|
204009f8: fc042e23 sw zero,-36(s0)
|
|
204009fc: fdc42703 lw a4,-36(s0)
|
|
20400a00: 00070793 mv a5,a4
|
|
20400a04: 00279793 slli a5,a5,0x2
|
|
20400a08: 00e787b3 add a5,a5,a4
|
|
20400a0c: 00179793 slli a5,a5,0x1
|
|
20400a10: 00f487b3 add a5,s1,a5
|
|
20400a14: fd078793 addi a5,a5,-48
|
|
20400a18: fcf42e23 sw a5,-36(s0)
|
|
20400a1c: fc442783 lw a5,-60(s0)
|
|
20400a20: 0007c783 lbu a5,0(a5)
|
|
20400a24: 00078493 mv s1,a5
|
|
20400a28: 02f00793 li a5,47
|
|
20400a2c: 0497d863 ble s1,a5,20400a7c <vprintfmt+0x168>
|
|
20400a30: 03900793 li a5,57
|
|
20400a34: 0497c463 blt a5,s1,20400a7c <vprintfmt+0x168>
|
|
20400a38: fc442783 lw a5,-60(s0)
|
|
20400a3c: 00178793 addi a5,a5,1
|
|
20400a40: fcf42223 sw a5,-60(s0)
|
|
20400a44: fb9ff06f j 204009fc <vprintfmt+0xe8>
|
|
20400a48: fc042783 lw a5,-64(s0)
|
|
20400a4c: 00478713 addi a4,a5,4
|
|
20400a50: fce42023 sw a4,-64(s0)
|
|
20400a54: 0007a783 lw a5,0(a5)
|
|
20400a58: fcf42e23 sw a5,-36(s0)
|
|
20400a5c: 0240006f j 20400a80 <vprintfmt+0x16c>
|
|
20400a60: fe042783 lw a5,-32(s0)
|
|
20400a64: f407d2e3 bgez a5,204009a8 <vprintfmt+0x94>
|
|
20400a68: fe042023 sw zero,-32(s0)
|
|
20400a6c: f3dff06f j 204009a8 <vprintfmt+0x94>
|
|
20400a70: 00100793 li a5,1
|
|
20400a74: fcf42823 sw a5,-48(s0)
|
|
20400a78: f31ff06f j 204009a8 <vprintfmt+0x94>
|
|
20400a7c: 00000013 nop
|
|
20400a80: fe042783 lw a5,-32(s0)
|
|
20400a84: f207d2e3 bgez a5,204009a8 <vprintfmt+0x94>
|
|
20400a88: fdc42783 lw a5,-36(s0)
|
|
20400a8c: fef42023 sw a5,-32(s0)
|
|
20400a90: fff00793 li a5,-1
|
|
20400a94: fcf42e23 sw a5,-36(s0)
|
|
20400a98: f11ff06f j 204009a8 <vprintfmt+0x94>
|
|
20400a9c: fe442783 lw a5,-28(s0)
|
|
20400aa0: 22079663 bnez a5,20400ccc <vprintfmt+0x3b8>
|
|
20400aa4: f05ff06f j 204009a8 <vprintfmt+0x94>
|
|
20400aa8: fc042783 lw a5,-64(s0)
|
|
20400aac: 00478713 addi a4,a5,4
|
|
20400ab0: fce42023 sw a4,-64(s0)
|
|
20400ab4: 0007a783 lw a5,0(a5)
|
|
20400ab8: fcc42703 lw a4,-52(s0)
|
|
20400abc: fc842583 lw a1,-56(s0)
|
|
20400ac0: 00078513 mv a0,a5
|
|
20400ac4: 000700e7 jalr a4
|
|
20400ac8: 2240006f j 20400cec <vprintfmt+0x3d8>
|
|
20400acc: fc042783 lw a5,-64(s0)
|
|
20400ad0: 00778793 addi a5,a5,7
|
|
20400ad4: ff87f793 andi a5,a5,-8
|
|
20400ad8: 00878713 addi a4,a5,8
|
|
20400adc: fce42023 sw a4,-64(s0)
|
|
20400ae0: 0007a603 lw a2,0(a5)
|
|
20400ae4: 0047a683 lw a3,4(a5)
|
|
20400ae8: fdc42783 lw a5,-36(s0)
|
|
20400aec: fe042703 lw a4,-32(s0)
|
|
20400af0: fc842583 lw a1,-56(s0)
|
|
20400af4: fcc42503 lw a0,-52(s0)
|
|
20400af8: c45ff0ef jal ra,2040073c <print_double>
|
|
20400afc: 1f00006f j 20400cec <vprintfmt+0x3d8>
|
|
20400b00: fc042783 lw a5,-64(s0)
|
|
20400b04: 00478713 addi a4,a5,4
|
|
20400b08: fce42023 sw a4,-64(s0)
|
|
20400b0c: 0007a903 lw s2,0(a5)
|
|
20400b10: 00091663 bnez s2,20400b1c <vprintfmt+0x208>
|
|
20400b14: 204027b7 lui a5,0x20402
|
|
20400b18: 2d078913 addi s2,a5,720 # 204022d0 <__clzsi2+0x8c>
|
|
20400b1c: fe042783 lw a5,-32(s0)
|
|
20400b20: 08f05063 blez a5,20400ba0 <vprintfmt+0x28c>
|
|
20400b24: fdb44703 lbu a4,-37(s0)
|
|
20400b28: 02d00793 li a5,45
|
|
20400b2c: 06f70a63 beq a4,a5,20400ba0 <vprintfmt+0x28c>
|
|
20400b30: fdc42783 lw a5,-36(s0)
|
|
20400b34: 00078593 mv a1,a5
|
|
20400b38: 00090513 mv a0,s2
|
|
20400b3c: 509000ef jal ra,20401844 <strnlen>
|
|
20400b40: 00050713 mv a4,a0
|
|
20400b44: fe042783 lw a5,-32(s0)
|
|
20400b48: 40e787b3 sub a5,a5,a4
|
|
20400b4c: fef42023 sw a5,-32(s0)
|
|
20400b50: 0240006f j 20400b74 <vprintfmt+0x260>
|
|
20400b54: fdb44783 lbu a5,-37(s0)
|
|
20400b58: fcc42703 lw a4,-52(s0)
|
|
20400b5c: fc842583 lw a1,-56(s0)
|
|
20400b60: 00078513 mv a0,a5
|
|
20400b64: 000700e7 jalr a4
|
|
20400b68: fe042783 lw a5,-32(s0)
|
|
20400b6c: fff78793 addi a5,a5,-1
|
|
20400b70: fef42023 sw a5,-32(s0)
|
|
20400b74: fe042783 lw a5,-32(s0)
|
|
20400b78: fcf04ee3 bgtz a5,20400b54 <vprintfmt+0x240>
|
|
20400b7c: 0240006f j 20400ba0 <vprintfmt+0x28c>
|
|
20400b80: fcc42783 lw a5,-52(s0)
|
|
20400b84: fc842583 lw a1,-56(s0)
|
|
20400b88: 00048513 mv a0,s1
|
|
20400b8c: 000780e7 jalr a5
|
|
20400b90: 00190913 addi s2,s2,1
|
|
20400b94: fe042783 lw a5,-32(s0)
|
|
20400b98: fff78793 addi a5,a5,-1
|
|
20400b9c: fef42023 sw a5,-32(s0)
|
|
20400ba0: 00094783 lbu a5,0(s2)
|
|
20400ba4: 00078493 mv s1,a5
|
|
20400ba8: 04048063 beqz s1,20400be8 <vprintfmt+0x2d4>
|
|
20400bac: fdc42783 lw a5,-36(s0)
|
|
20400bb0: fc07c8e3 bltz a5,20400b80 <vprintfmt+0x26c>
|
|
20400bb4: fdc42783 lw a5,-36(s0)
|
|
20400bb8: fff78793 addi a5,a5,-1
|
|
20400bbc: fcf42e23 sw a5,-36(s0)
|
|
20400bc0: fdc42783 lw a5,-36(s0)
|
|
20400bc4: fa07dee3 bgez a5,20400b80 <vprintfmt+0x26c>
|
|
20400bc8: 0200006f j 20400be8 <vprintfmt+0x2d4>
|
|
20400bcc: fcc42783 lw a5,-52(s0)
|
|
20400bd0: fc842583 lw a1,-56(s0)
|
|
20400bd4: 02000513 li a0,32
|
|
20400bd8: 000780e7 jalr a5
|
|
20400bdc: fe042783 lw a5,-32(s0)
|
|
20400be0: fff78793 addi a5,a5,-1
|
|
20400be4: fef42023 sw a5,-32(s0)
|
|
20400be8: fe042783 lw a5,-32(s0)
|
|
20400bec: fef040e3 bgtz a5,20400bcc <vprintfmt+0x2b8>
|
|
20400bf0: 0fc0006f j 20400cec <vprintfmt+0x3d8>
|
|
20400bf4: fc040793 addi a5,s0,-64
|
|
20400bf8: fe442583 lw a1,-28(s0)
|
|
20400bfc: 00078513 mv a0,a5
|
|
20400c00: 9adff0ef jal ra,204005ac <getint>
|
|
20400c04: 00050793 mv a5,a0
|
|
20400c08: fef42623 sw a5,-20(s0)
|
|
20400c0c: fec42783 lw a5,-20(s0)
|
|
20400c10: 0207d063 bgez a5,20400c30 <vprintfmt+0x31c>
|
|
20400c14: fcc42783 lw a5,-52(s0)
|
|
20400c18: fc842583 lw a1,-56(s0)
|
|
20400c1c: 02d00513 li a0,45
|
|
20400c20: 000780e7 jalr a5
|
|
20400c24: fec42783 lw a5,-20(s0)
|
|
20400c28: 40f007b3 neg a5,a5
|
|
20400c2c: fef42623 sw a5,-20(s0)
|
|
20400c30: 00a00793 li a5,10
|
|
20400c34: fef42423 sw a5,-24(s0)
|
|
20400c38: 0600006f j 20400c98 <vprintfmt+0x384>
|
|
20400c3c: 00a00793 li a5,10
|
|
20400c40: fef42423 sw a5,-24(s0)
|
|
20400c44: 0400006f j 20400c84 <vprintfmt+0x370>
|
|
20400c48: 00800793 li a5,8
|
|
20400c4c: fef42423 sw a5,-24(s0)
|
|
20400c50: 0340006f j 20400c84 <vprintfmt+0x370>
|
|
20400c54: 00100793 li a5,1
|
|
20400c58: fef42223 sw a5,-28(s0)
|
|
20400c5c: fcc42783 lw a5,-52(s0)
|
|
20400c60: fc842583 lw a1,-56(s0)
|
|
20400c64: 03000513 li a0,48
|
|
20400c68: 000780e7 jalr a5
|
|
20400c6c: fcc42783 lw a5,-52(s0)
|
|
20400c70: fc842583 lw a1,-56(s0)
|
|
20400c74: 07800513 li a0,120
|
|
20400c78: 000780e7 jalr a5
|
|
20400c7c: 01000793 li a5,16
|
|
20400c80: fef42423 sw a5,-24(s0)
|
|
20400c84: fc040793 addi a5,s0,-64
|
|
20400c88: fe442583 lw a1,-28(s0)
|
|
20400c8c: 00078513 mv a0,a5
|
|
20400c90: 8bdff0ef jal ra,2040054c <getuint>
|
|
20400c94: fea42623 sw a0,-20(s0)
|
|
20400c98: fe842683 lw a3,-24(s0)
|
|
20400c9c: fdb44783 lbu a5,-37(s0)
|
|
20400ca0: fe042703 lw a4,-32(s0)
|
|
20400ca4: fec42603 lw a2,-20(s0)
|
|
20400ca8: fc842583 lw a1,-56(s0)
|
|
20400cac: fcc42503 lw a0,-52(s0)
|
|
20400cb0: 95dff0ef jal ra,2040060c <printnum>
|
|
20400cb4: 0380006f j 20400cec <vprintfmt+0x3d8>
|
|
20400cb8: fcc42783 lw a5,-52(s0)
|
|
20400cbc: fc842583 lw a1,-56(s0)
|
|
20400cc0: 00048513 mv a0,s1
|
|
20400cc4: 000780e7 jalr a5
|
|
20400cc8: 0240006f j 20400cec <vprintfmt+0x3d8>
|
|
20400ccc: 00000013 nop
|
|
20400cd0: fcc42783 lw a5,-52(s0)
|
|
20400cd4: fc842583 lw a1,-56(s0)
|
|
20400cd8: 02500513 li a0,37
|
|
20400cdc: 000780e7 jalr a5
|
|
20400ce0: fd442783 lw a5,-44(s0)
|
|
20400ce4: fcf42223 sw a5,-60(s0)
|
|
20400ce8: 00000013 nop
|
|
20400cec: c75ff06f j 20400960 <vprintfmt+0x4c>
|
|
20400cf0: 00000013 nop
|
|
20400cf4: 03c12083 lw ra,60(sp)
|
|
20400cf8: 03812403 lw s0,56(sp)
|
|
20400cfc: 03412483 lw s1,52(sp)
|
|
20400d00: 03012903 lw s2,48(sp)
|
|
20400d04: 04010113 addi sp,sp,64
|
|
20400d08: 00008067 ret
|
|
|
|
20400d0c <__wrap_printf>:
|
|
20400d0c: fb010113 addi sp,sp,-80
|
|
20400d10: 02112623 sw ra,44(sp)
|
|
20400d14: 02812423 sw s0,40(sp)
|
|
20400d18: 03010413 addi s0,sp,48
|
|
20400d1c: fca42e23 sw a0,-36(s0)
|
|
20400d20: 00b42223 sw a1,4(s0)
|
|
20400d24: 00c42423 sw a2,8(s0)
|
|
20400d28: 00d42623 sw a3,12(s0)
|
|
20400d2c: 00e42823 sw a4,16(s0)
|
|
20400d30: 00f42a23 sw a5,20(s0)
|
|
20400d34: 01042c23 sw a6,24(s0)
|
|
20400d38: 01142e23 sw a7,28(s0)
|
|
20400d3c: 02040793 addi a5,s0,32
|
|
20400d40: fe478793 addi a5,a5,-28
|
|
20400d44: fef42623 sw a5,-20(s0)
|
|
20400d48: fec42783 lw a5,-20(s0)
|
|
20400d4c: 00078693 mv a3,a5
|
|
20400d50: fdc42603 lw a2,-36(s0)
|
|
20400d54: 00000593 li a1,0
|
|
20400d58: 204007b7 lui a5,0x20400
|
|
20400d5c: 4a478513 addi a0,a5,1188 # 204004a4 <putchar>
|
|
20400d60: bb5ff0ef jal ra,20400914 <vprintfmt>
|
|
20400d64: 00000793 li a5,0
|
|
20400d68: 00078513 mv a0,a5
|
|
20400d6c: 02c12083 lw ra,44(sp)
|
|
20400d70: 02812403 lw s0,40(sp)
|
|
20400d74: 05010113 addi sp,sp,80
|
|
20400d78: 00008067 ret
|
|
|
|
20400d7c <__wrap_sprintf>:
|
|
20400d7c: fb010113 addi sp,sp,-80
|
|
20400d80: 02112623 sw ra,44(sp)
|
|
20400d84: 02812423 sw s0,40(sp)
|
|
20400d88: 03010413 addi s0,sp,48
|
|
20400d8c: fca42e23 sw a0,-36(s0)
|
|
20400d90: fcb42c23 sw a1,-40(s0)
|
|
20400d94: 00c42423 sw a2,8(s0)
|
|
20400d98: 00d42623 sw a3,12(s0)
|
|
20400d9c: 00e42823 sw a4,16(s0)
|
|
20400da0: 00f42a23 sw a5,20(s0)
|
|
20400da4: 01042c23 sw a6,24(s0)
|
|
20400da8: 01142e23 sw a7,28(s0)
|
|
20400dac: fdc42783 lw a5,-36(s0)
|
|
20400db0: fef42623 sw a5,-20(s0)
|
|
20400db4: 02040793 addi a5,s0,32
|
|
20400db8: fe878793 addi a5,a5,-24
|
|
20400dbc: fef42423 sw a5,-24(s0)
|
|
20400dc0: fe842703 lw a4,-24(s0)
|
|
20400dc4: fdc40793 addi a5,s0,-36
|
|
20400dc8: 00070693 mv a3,a4
|
|
20400dcc: fd842603 lw a2,-40(s0)
|
|
20400dd0: 00078593 mv a1,a5
|
|
20400dd4: 204007b7 lui a5,0x20400
|
|
20400dd8: 4f878513 addi a0,a5,1272 # 204004f8 <sprintf_putch>
|
|
20400ddc: b39ff0ef jal ra,20400914 <vprintfmt>
|
|
20400de0: fdc42783 lw a5,-36(s0)
|
|
20400de4: 00078023 sb zero,0(a5)
|
|
20400de8: fdc42783 lw a5,-36(s0)
|
|
20400dec: 00078713 mv a4,a5
|
|
20400df0: fec42783 lw a5,-20(s0)
|
|
20400df4: 40f707b3 sub a5,a4,a5
|
|
20400df8: 00078513 mv a0,a5
|
|
20400dfc: 02c12083 lw ra,44(sp)
|
|
20400e00: 02812403 lw s0,40(sp)
|
|
20400e04: 05010113 addi sp,sp,80
|
|
20400e08: 00008067 ret
|
|
|
|
20400e0c <mtime_lo>:
|
|
20400e0c: ff010113 addi sp,sp,-16
|
|
20400e10: 00812623 sw s0,12(sp)
|
|
20400e14: 01010413 addi s0,sp,16
|
|
20400e18: 0200c7b7 lui a5,0x200c
|
|
20400e1c: ff878793 addi a5,a5,-8 # 200bff8 <__stack_size+0x200b7f8>
|
|
20400e20: 0007a783 lw a5,0(a5)
|
|
20400e24: 00078513 mv a0,a5
|
|
20400e28: 00c12403 lw s0,12(sp)
|
|
20400e2c: 01010113 addi sp,sp,16
|
|
20400e30: 00008067 ret
|
|
|
|
20400e34 <get_timer_value>:
|
|
20400e34: ff010113 addi sp,sp,-16
|
|
20400e38: 00112623 sw ra,12(sp)
|
|
20400e3c: 00812423 sw s0,8(sp)
|
|
20400e40: 01212223 sw s2,4(sp)
|
|
20400e44: 01312023 sw s3,0(sp)
|
|
20400e48: 01010413 addi s0,sp,16
|
|
20400e4c: fc1ff0ef jal ra,20400e0c <mtime_lo>
|
|
20400e50: 00050793 mv a5,a0
|
|
20400e54: 00078913 mv s2,a5
|
|
20400e58: 00000993 li s3,0
|
|
20400e5c: 00090793 mv a5,s2
|
|
20400e60: 00098813 mv a6,s3
|
|
20400e64: 00078513 mv a0,a5
|
|
20400e68: 00080593 mv a1,a6
|
|
20400e6c: 00c12083 lw ra,12(sp)
|
|
20400e70: 00812403 lw s0,8(sp)
|
|
20400e74: 00412903 lw s2,4(sp)
|
|
20400e78: 00012983 lw s3,0(sp)
|
|
20400e7c: 01010113 addi sp,sp,16
|
|
20400e80: 00008067 ret
|
|
|
|
20400e84 <get_timer_freq>:
|
|
20400e84: ff010113 addi sp,sp,-16
|
|
20400e88: 00812623 sw s0,12(sp)
|
|
20400e8c: 01010413 addi s0,sp,16
|
|
20400e90: 000087b7 lui a5,0x8
|
|
20400e94: 00078513 mv a0,a5
|
|
20400e98: 00c12403 lw s0,12(sp)
|
|
20400e9c: 01010113 addi sp,sp,16
|
|
20400ea0: 00008067 ret
|
|
|
|
20400ea4 <use_hfrosc>:
|
|
20400ea4: fe010113 addi sp,sp,-32
|
|
20400ea8: 00812e23 sw s0,28(sp)
|
|
20400eac: 02010413 addi s0,sp,32
|
|
20400eb0: fea42623 sw a0,-20(s0)
|
|
20400eb4: feb42423 sw a1,-24(s0)
|
|
20400eb8: fec42783 lw a5,-20(s0)
|
|
20400ebc: 02f7f713 andi a4,a5,47
|
|
20400ec0: fe842783 lw a5,-24(s0)
|
|
20400ec4: 01079693 slli a3,a5,0x10
|
|
20400ec8: 001f07b7 lui a5,0x1f0
|
|
20400ecc: 00f6f7b3 and a5,a3,a5
|
|
20400ed0: 00f76733 or a4,a4,a5
|
|
20400ed4: 400007b7 lui a5,0x40000
|
|
20400ed8: 00f76733 or a4,a4,a5
|
|
20400edc: 100087b7 lui a5,0x10008
|
|
20400ee0: 00e7a023 sw a4,0(a5) # 10008000 <__stack_size+0x10007800>
|
|
20400ee4: 00000013 nop
|
|
20400ee8: 100087b7 lui a5,0x10008
|
|
20400eec: 0007a783 lw a5,0(a5) # 10008000 <__stack_size+0x10007800>
|
|
20400ef0: fe07dce3 bgez a5,20400ee8 <use_hfrosc+0x44>
|
|
20400ef4: 100087b7 lui a5,0x10008
|
|
20400ef8: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20400efc: 0007a683 lw a3,0(a5)
|
|
20400f00: 100087b7 lui a5,0x10008
|
|
20400f04: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20400f08: ffff0737 lui a4,0xffff0
|
|
20400f0c: fff70713 addi a4,a4,-1 # fffeffff <_sp+0x7ffebfff>
|
|
20400f10: 00e6f733 and a4,a3,a4
|
|
20400f14: 00e7a023 sw a4,0(a5)
|
|
20400f18: 00000013 nop
|
|
20400f1c: 01c12403 lw s0,28(sp)
|
|
20400f20: 02010113 addi sp,sp,32
|
|
20400f24: 00008067 ret
|
|
|
|
20400f28 <use_pll>:
|
|
20400f28: fc010113 addi sp,sp,-64
|
|
20400f2c: 02112e23 sw ra,60(sp)
|
|
20400f30: 02812c23 sw s0,56(sp)
|
|
20400f34: 04010413 addi s0,sp,64
|
|
20400f38: fca42e23 sw a0,-36(s0)
|
|
20400f3c: fcb42c23 sw a1,-40(s0)
|
|
20400f40: fcc42a23 sw a2,-44(s0)
|
|
20400f44: fcd42823 sw a3,-48(s0)
|
|
20400f48: fce42623 sw a4,-52(s0)
|
|
20400f4c: 100087b7 lui a5,0x10008
|
|
20400f50: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20400f54: 0007a703 lw a4,0(a5)
|
|
20400f58: 000107b7 lui a5,0x10
|
|
20400f5c: 00f777b3 and a5,a4,a5
|
|
20400f60: 00078863 beqz a5,20400f70 <use_pll+0x48>
|
|
20400f64: 01000593 li a1,16
|
|
20400f68: 00400513 li a0,4
|
|
20400f6c: f39ff0ef jal ra,20400ea4 <use_hfrosc>
|
|
20400f70: fe042623 sw zero,-20(s0)
|
|
20400f74: fdc42783 lw a5,-36(s0)
|
|
20400f78: 01179793 slli a5,a5,0x11
|
|
20400f7c: 00078713 mv a4,a5
|
|
20400f80: 000207b7 lui a5,0x20
|
|
20400f84: 00f777b3 and a5,a4,a5
|
|
20400f88: fec42703 lw a4,-20(s0)
|
|
20400f8c: 00f767b3 or a5,a4,a5
|
|
20400f90: fef42623 sw a5,-20(s0)
|
|
20400f94: fd842783 lw a5,-40(s0)
|
|
20400f98: 02078c63 beqz a5,20400fd0 <use_pll+0xa8>
|
|
20400f9c: fec42703 lw a4,-20(s0)
|
|
20400fa0: 000407b7 lui a5,0x40
|
|
20400fa4: 00f767b3 or a5,a4,a5
|
|
20400fa8: fef42623 sw a5,-20(s0)
|
|
20400fac: 100087b7 lui a5,0x10008
|
|
20400fb0: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20400fb4: fec42703 lw a4,-20(s0)
|
|
20400fb8: 00e7a023 sw a4,0(a5)
|
|
20400fbc: 100087b7 lui a5,0x10008
|
|
20400fc0: 00c78793 addi a5,a5,12 # 1000800c <__stack_size+0x1000780c>
|
|
20400fc4: 10000713 li a4,256
|
|
20400fc8: 00e7a023 sw a4,0(a5)
|
|
20400fcc: 0ec0006f j 204010b8 <use_pll+0x190>
|
|
20400fd0: 100147b7 lui a5,0x10014
|
|
20400fd4: 00800713 li a4,8
|
|
20400fd8: 00e7a023 sw a4,0(a5) # 10014000 <__stack_size+0x10013800>
|
|
20400fdc: fec42703 lw a4,-20(s0)
|
|
20400fe0: 000407b7 lui a5,0x40
|
|
20400fe4: 00f767b3 or a5,a4,a5
|
|
20400fe8: fef42623 sw a5,-20(s0)
|
|
20400fec: fd442783 lw a5,-44(s0)
|
|
20400ff0: 0077f793 andi a5,a5,7
|
|
20400ff4: fec42703 lw a4,-20(s0)
|
|
20400ff8: 00f767b3 or a5,a4,a5
|
|
20400ffc: fef42623 sw a5,-20(s0)
|
|
20401000: fd042783 lw a5,-48(s0)
|
|
20401004: 00479793 slli a5,a5,0x4
|
|
20401008: 3f07f793 andi a5,a5,1008
|
|
2040100c: fec42703 lw a4,-20(s0)
|
|
20401010: 00f767b3 or a5,a4,a5
|
|
20401014: fef42623 sw a5,-20(s0)
|
|
20401018: fcc42783 lw a5,-52(s0)
|
|
2040101c: 00a79793 slli a5,a5,0xa
|
|
20401020: 00078713 mv a4,a5
|
|
20401024: 000017b7 lui a5,0x1
|
|
20401028: c0078793 addi a5,a5,-1024 # c00 <__stack_size+0x400>
|
|
2040102c: 00f777b3 and a5,a4,a5
|
|
20401030: fec42703 lw a4,-20(s0)
|
|
20401034: 00f767b3 or a5,a4,a5
|
|
20401038: fef42623 sw a5,-20(s0)
|
|
2040103c: 100087b7 lui a5,0x10008
|
|
20401040: 00c78793 addi a5,a5,12 # 1000800c <__stack_size+0x1000780c>
|
|
20401044: 10000713 li a4,256
|
|
20401048: 00e7a023 sw a4,0(a5)
|
|
2040104c: 100087b7 lui a5,0x10008
|
|
20401050: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20401054: fec42703 lw a4,-20(s0)
|
|
20401058: 00e7a023 sw a4,0(a5)
|
|
2040105c: 100087b7 lui a5,0x10008
|
|
20401060: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20401064: 0007a683 lw a3,0(a5)
|
|
20401068: 100087b7 lui a5,0x10008
|
|
2040106c: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
20401070: fffc0737 lui a4,0xfffc0
|
|
20401074: fff70713 addi a4,a4,-1 # fffbffff <_sp+0x7ffbbfff>
|
|
20401078: 00e6f733 and a4,a3,a4
|
|
2040107c: 00e7a023 sw a4,0(a5)
|
|
20401080: d8dff0ef jal ra,20400e0c <mtime_lo>
|
|
20401084: fea42423 sw a0,-24(s0)
|
|
20401088: 00000013 nop
|
|
2040108c: d81ff0ef jal ra,20400e0c <mtime_lo>
|
|
20401090: 00050713 mv a4,a0
|
|
20401094: fe842783 lw a5,-24(s0)
|
|
20401098: 40f70733 sub a4,a4,a5
|
|
2040109c: 00300793 li a5,3
|
|
204010a0: fee7f6e3 bleu a4,a5,2040108c <use_pll+0x164>
|
|
204010a4: 00000013 nop
|
|
204010a8: 100087b7 lui a5,0x10008
|
|
204010ac: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
204010b0: 0007a783 lw a5,0(a5)
|
|
204010b4: fe07dae3 bgez a5,204010a8 <use_pll+0x180>
|
|
204010b8: 100087b7 lui a5,0x10008
|
|
204010bc: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
204010c0: 0007a683 lw a3,0(a5)
|
|
204010c4: 100087b7 lui a5,0x10008
|
|
204010c8: 00878793 addi a5,a5,8 # 10008008 <__stack_size+0x10007808>
|
|
204010cc: 00010737 lui a4,0x10
|
|
204010d0: 00e6e733 or a4,a3,a4
|
|
204010d4: 00e7a023 sw a4,0(a5)
|
|
204010d8: 00000013 nop
|
|
204010dc: 03c12083 lw ra,60(sp)
|
|
204010e0: 03812403 lw s0,56(sp)
|
|
204010e4: 04010113 addi sp,sp,64
|
|
204010e8: 00008067 ret
|
|
|
|
204010ec <use_default_clocks>:
|
|
204010ec: ff010113 addi sp,sp,-16
|
|
204010f0: 00112623 sw ra,12(sp)
|
|
204010f4: 00812423 sw s0,8(sp)
|
|
204010f8: 01010413 addi s0,sp,16
|
|
204010fc: 100007b7 lui a5,0x10000
|
|
20401100: 07078793 addi a5,a5,112 # 10000070 <__stack_size+0xffff870>
|
|
20401104: 0007a683 lw a3,0(a5)
|
|
20401108: 100007b7 lui a5,0x10000
|
|
2040110c: 07078793 addi a5,a5,112 # 10000070 <__stack_size+0xffff870>
|
|
20401110: c0000737 lui a4,0xc0000
|
|
20401114: fff70713 addi a4,a4,-1 # bfffffff <_sp+0x3fffbfff>
|
|
20401118: 00e6f733 and a4,a3,a4
|
|
2040111c: 00e7a023 sw a4,0(a5)
|
|
20401120: 01000593 li a1,16
|
|
20401124: 00400513 li a0,4
|
|
20401128: d7dff0ef jal ra,20400ea4 <use_hfrosc>
|
|
2040112c: 00000013 nop
|
|
20401130: 00c12083 lw ra,12(sp)
|
|
20401134: 00812403 lw s0,8(sp)
|
|
20401138: 01010113 addi sp,sp,16
|
|
2040113c: 00008067 ret
|
|
|
|
20401140 <measure_cpu_freq>:
|
|
20401140: fc010113 addi sp,sp,-64
|
|
20401144: 02112e23 sw ra,60(sp)
|
|
20401148: 02812c23 sw s0,56(sp)
|
|
2040114c: 02912a23 sw s1,52(sp)
|
|
20401150: 04010413 addi s0,sp,64
|
|
20401154: fca42623 sw a0,-52(s0)
|
|
20401158: d2dff0ef jal ra,20400e84 <get_timer_freq>
|
|
2040115c: fea42623 sw a0,-20(s0)
|
|
20401160: cadff0ef jal ra,20400e0c <mtime_lo>
|
|
20401164: fea42423 sw a0,-24(s0)
|
|
20401168: ca5ff0ef jal ra,20400e0c <mtime_lo>
|
|
2040116c: fea42223 sw a0,-28(s0)
|
|
20401170: fe442703 lw a4,-28(s0)
|
|
20401174: fe842783 lw a5,-24(s0)
|
|
20401178: fef708e3 beq a4,a5,20401168 <measure_cpu_freq+0x28>
|
|
2040117c: b00027f3 csrr a5,mcycle
|
|
20401180: fef42023 sw a5,-32(s0)
|
|
20401184: fe042783 lw a5,-32(s0)
|
|
20401188: fcf42e23 sw a5,-36(s0)
|
|
2040118c: c81ff0ef jal ra,20400e0c <mtime_lo>
|
|
20401190: 00050713 mv a4,a0
|
|
20401194: fe442783 lw a5,-28(s0)
|
|
20401198: 40f707b3 sub a5,a4,a5
|
|
2040119c: fcf42c23 sw a5,-40(s0)
|
|
204011a0: fd842703 lw a4,-40(s0)
|
|
204011a4: fcc42783 lw a5,-52(s0)
|
|
204011a8: fef762e3 bltu a4,a5,2040118c <measure_cpu_freq+0x4c>
|
|
204011ac: b00027f3 csrr a5,mcycle
|
|
204011b0: fcf42a23 sw a5,-44(s0)
|
|
204011b4: fd442703 lw a4,-44(s0)
|
|
204011b8: fdc42783 lw a5,-36(s0)
|
|
204011bc: 40f707b3 sub a5,a4,a5
|
|
204011c0: fcf42823 sw a5,-48(s0)
|
|
204011c4: fd842583 lw a1,-40(s0)
|
|
204011c8: fd042503 lw a0,-48(s0)
|
|
204011cc: 7cd000ef jal ra,20402198 <__udivsi3>
|
|
204011d0: 00050793 mv a5,a0
|
|
204011d4: fec42583 lw a1,-20(s0)
|
|
204011d8: 00078513 mv a0,a5
|
|
204011dc: 791000ef jal ra,2040216c <__mulsi3>
|
|
204011e0: 00050793 mv a5,a0
|
|
204011e4: 00078493 mv s1,a5
|
|
204011e8: fd042783 lw a5,-48(s0)
|
|
204011ec: fd842583 lw a1,-40(s0)
|
|
204011f0: 00078513 mv a0,a5
|
|
204011f4: 7ed000ef jal ra,204021e0 <__umodsi3>
|
|
204011f8: 00050793 mv a5,a0
|
|
204011fc: fec42583 lw a1,-20(s0)
|
|
20401200: 00078513 mv a0,a5
|
|
20401204: 769000ef jal ra,2040216c <__mulsi3>
|
|
20401208: 00050793 mv a5,a0
|
|
2040120c: fd842583 lw a1,-40(s0)
|
|
20401210: 00078513 mv a0,a5
|
|
20401214: 785000ef jal ra,20402198 <__udivsi3>
|
|
20401218: 00050793 mv a5,a0
|
|
2040121c: 00f487b3 add a5,s1,a5
|
|
20401220: 00078513 mv a0,a5
|
|
20401224: 03c12083 lw ra,60(sp)
|
|
20401228: 03812403 lw s0,56(sp)
|
|
2040122c: 03412483 lw s1,52(sp)
|
|
20401230: 04010113 addi sp,sp,64
|
|
20401234: 00008067 ret
|
|
|
|
20401238 <get_cpu_freq>:
|
|
20401238: ff010113 addi sp,sp,-16
|
|
2040123c: 00112623 sw ra,12(sp)
|
|
20401240: 00812423 sw s0,8(sp)
|
|
20401244: 01010413 addi s0,sp,16
|
|
20401248: 800007b7 lui a5,0x80000
|
|
2040124c: 4307a783 lw a5,1072(a5) # 80000430 <_sp+0xffffc430>
|
|
20401250: 02079063 bnez a5,20401270 <get_cpu_freq+0x38>
|
|
20401254: 00100513 li a0,1
|
|
20401258: ee9ff0ef jal ra,20401140 <measure_cpu_freq>
|
|
2040125c: 00a00513 li a0,10
|
|
20401260: ee1ff0ef jal ra,20401140 <measure_cpu_freq>
|
|
20401264: 00050713 mv a4,a0
|
|
20401268: 800007b7 lui a5,0x80000
|
|
2040126c: 42e7a823 sw a4,1072(a5) # 80000430 <_sp+0xffffc430>
|
|
20401270: 800007b7 lui a5,0x80000
|
|
20401274: 4307a783 lw a5,1072(a5) # 80000430 <_sp+0xffffc430>
|
|
20401278: 00078513 mv a0,a5
|
|
2040127c: 00c12083 lw ra,12(sp)
|
|
20401280: 00812403 lw s0,8(sp)
|
|
20401284: 01010113 addi sp,sp,16
|
|
20401288: 00008067 ret
|
|
|
|
2040128c <uart_init>:
|
|
2040128c: fe010113 addi sp,sp,-32
|
|
20401290: 00112e23 sw ra,28(sp)
|
|
20401294: 00812c23 sw s0,24(sp)
|
|
20401298: 02010413 addi s0,sp,32
|
|
2040129c: fea42623 sw a0,-20(s0)
|
|
204012a0: 100127b7 lui a5,0x10012
|
|
204012a4: 03c78793 addi a5,a5,60 # 1001203c <__stack_size+0x1001183c>
|
|
204012a8: 0007a683 lw a3,0(a5)
|
|
204012ac: 100127b7 lui a5,0x10012
|
|
204012b0: 03c78793 addi a5,a5,60 # 1001203c <__stack_size+0x1001183c>
|
|
204012b4: fffd0737 lui a4,0xfffd0
|
|
204012b8: fff70713 addi a4,a4,-1 # fffcffff <_sp+0x7ffcbfff>
|
|
204012bc: 00e6f733 and a4,a3,a4
|
|
204012c0: 00e7a023 sw a4,0(a5)
|
|
204012c4: 100127b7 lui a5,0x10012
|
|
204012c8: 03878793 addi a5,a5,56 # 10012038 <__stack_size+0x10011838>
|
|
204012cc: 0007a683 lw a3,0(a5)
|
|
204012d0: 100127b7 lui a5,0x10012
|
|
204012d4: 03878793 addi a5,a5,56 # 10012038 <__stack_size+0x10011838>
|
|
204012d8: 00030737 lui a4,0x30
|
|
204012dc: 00e6e733 or a4,a3,a4
|
|
204012e0: 00e7a023 sw a4,0(a5)
|
|
204012e4: f55ff0ef jal ra,20401238 <get_cpu_freq>
|
|
204012e8: 00050793 mv a5,a0
|
|
204012ec: fec42583 lw a1,-20(s0)
|
|
204012f0: 00078513 mv a0,a5
|
|
204012f4: 6a5000ef jal ra,20402198 <__udivsi3>
|
|
204012f8: 00050793 mv a5,a0
|
|
204012fc: 00078713 mv a4,a5
|
|
20401300: 100137b7 lui a5,0x10013
|
|
20401304: 01878793 addi a5,a5,24 # 10013018 <__stack_size+0x10012818>
|
|
20401308: fff70713 addi a4,a4,-1 # 2ffff <__stack_size+0x2f7ff>
|
|
2040130c: 00e7a023 sw a4,0(a5)
|
|
20401310: 100137b7 lui a5,0x10013
|
|
20401314: 00878793 addi a5,a5,8 # 10013008 <__stack_size+0x10012808>
|
|
20401318: 0007a703 lw a4,0(a5)
|
|
2040131c: 100137b7 lui a5,0x10013
|
|
20401320: 00878793 addi a5,a5,8 # 10013008 <__stack_size+0x10012808>
|
|
20401324: 00176713 ori a4,a4,1
|
|
20401328: 00e7a023 sw a4,0(a5)
|
|
2040132c: 00000013 nop
|
|
20401330: 01c12083 lw ra,28(sp)
|
|
20401334: 01812403 lw s0,24(sp)
|
|
20401338: 02010113 addi sp,sp,32
|
|
2040133c: 00008067 ret
|
|
|
|
20401340 <handle_trap>:
|
|
20401340: fe010113 addi sp,sp,-32
|
|
20401344: 00112e23 sw ra,28(sp)
|
|
20401348: 00812c23 sw s0,24(sp)
|
|
2040134c: 02010413 addi s0,sp,32
|
|
20401350: fea42623 sw a0,-20(s0)
|
|
20401354: feb42423 sw a1,-24(s0)
|
|
20401358: 00500613 li a2,5
|
|
2040135c: 204027b7 lui a5,0x20402
|
|
20401360: 43878593 addi a1,a5,1080 # 20402438 <__clzsi2+0x1f4>
|
|
20401364: 00100513 li a0,1
|
|
20401368: 0e4000ef jal ra,2040144c <__wrap_write>
|
|
2040136c: fec42783 lw a5,-20(s0)
|
|
20401370: 00178793 addi a5,a5,1
|
|
20401374: 00078513 mv a0,a5
|
|
20401378: 1f0000ef jal ra,20401568 <__wrap__exit>
|
|
|
|
2040137c <_init>:
|
|
2040137c: fe010113 addi sp,sp,-32
|
|
20401380: 00112e23 sw ra,28(sp)
|
|
20401384: 00812c23 sw s0,24(sp)
|
|
20401388: 02010413 addi s0,sp,32
|
|
2040138c: d61ff0ef jal ra,204010ec <use_default_clocks>
|
|
20401390: 00100713 li a4,1
|
|
20401394: 01f00693 li a3,31
|
|
20401398: 00100613 li a2,1
|
|
2040139c: 00000593 li a1,0
|
|
204013a0: 00000513 li a0,0
|
|
204013a4: b85ff0ef jal ra,20400f28 <use_pll>
|
|
204013a8: 0001c7b7 lui a5,0x1c
|
|
204013ac: 20078513 addi a0,a5,512 # 1c200 <__stack_size+0x1ba00>
|
|
204013b0: eddff0ef jal ra,2040128c <uart_init>
|
|
204013b4: e85ff0ef jal ra,20401238 <get_cpu_freq>
|
|
204013b8: 00050793 mv a5,a0
|
|
204013bc: 00078593 mv a1,a5
|
|
204013c0: 204027b7 lui a5,0x20402
|
|
204013c4: 44078513 addi a0,a5,1088 # 20402440 <__clzsi2+0x1fc>
|
|
204013c8: 945ff0ef jal ra,20400d0c <__wrap_printf>
|
|
204013cc: 204007b7 lui a5,0x20400
|
|
204013d0: 08078793 addi a5,a5,128 # 20400080 <trap_entry>
|
|
204013d4: 30579073 csrw mtvec,a5
|
|
204013d8: 301027f3 csrr a5,misa
|
|
204013dc: fef42623 sw a5,-20(s0)
|
|
204013e0: fec42783 lw a5,-20(s0)
|
|
204013e4: 0207f793 andi a5,a5,32
|
|
204013e8: 00078863 beqz a5,204013f8 <_init+0x7c>
|
|
204013ec: 000067b7 lui a5,0x6
|
|
204013f0: 30079073 csrw mstatus,a5
|
|
204013f4: 00305073 csrwi fcsr,0
|
|
204013f8: 00000013 nop
|
|
204013fc: 01c12083 lw ra,28(sp)
|
|
20401400: 01812403 lw s0,24(sp)
|
|
20401404: 02010113 addi sp,sp,32
|
|
20401408: 00008067 ret
|
|
|
|
2040140c <_fini>:
|
|
2040140c: ff010113 addi sp,sp,-16
|
|
20401410: 00812623 sw s0,12(sp)
|
|
20401414: 01010413 addi s0,sp,16
|
|
20401418: 00000013 nop
|
|
2040141c: 00c12403 lw s0,12(sp)
|
|
20401420: 01010113 addi sp,sp,16
|
|
20401424: 00008067 ret
|
|
|
|
20401428 <_stub>:
|
|
20401428: fe010113 addi sp,sp,-32
|
|
2040142c: 00812e23 sw s0,28(sp)
|
|
20401430: 02010413 addi s0,sp,32
|
|
20401434: fea42623 sw a0,-20(s0)
|
|
20401438: fff00793 li a5,-1
|
|
2040143c: 00078513 mv a0,a5
|
|
20401440: 01c12403 lw s0,28(sp)
|
|
20401444: 02010113 addi sp,sp,32
|
|
20401448: 00008067 ret
|
|
|
|
2040144c <__wrap_write>:
|
|
2040144c: fd010113 addi sp,sp,-48
|
|
20401450: 02112623 sw ra,44(sp)
|
|
20401454: 02812423 sw s0,40(sp)
|
|
20401458: 03010413 addi s0,sp,48
|
|
2040145c: fca42e23 sw a0,-36(s0)
|
|
20401460: fcb42c23 sw a1,-40(s0)
|
|
20401464: fcc42a23 sw a2,-44(s0)
|
|
20401468: fd842783 lw a5,-40(s0)
|
|
2040146c: fef42423 sw a5,-24(s0)
|
|
20401470: fdc42503 lw a0,-36(s0)
|
|
20401474: 0b0000ef jal ra,20401524 <__wrap_isatty>
|
|
20401478: 00050793 mv a5,a0
|
|
2040147c: 08078463 beqz a5,20401504 <__wrap_write+0xb8>
|
|
20401480: fe042623 sw zero,-20(s0)
|
|
20401484: 06c0006f j 204014f0 <__wrap_write+0xa4>
|
|
20401488: 00000013 nop
|
|
2040148c: 100137b7 lui a5,0x10013
|
|
20401490: 0007a783 lw a5,0(a5) # 10013000 <__stack_size+0x10012800>
|
|
20401494: fe07cce3 bltz a5,2040148c <__wrap_write+0x40>
|
|
20401498: fe842703 lw a4,-24(s0)
|
|
2040149c: fec42783 lw a5,-20(s0)
|
|
204014a0: 00f707b3 add a5,a4,a5
|
|
204014a4: 0007c703 lbu a4,0(a5)
|
|
204014a8: 100137b7 lui a5,0x10013
|
|
204014ac: 00e7a023 sw a4,0(a5) # 10013000 <__stack_size+0x10012800>
|
|
204014b0: fe842703 lw a4,-24(s0)
|
|
204014b4: fec42783 lw a5,-20(s0)
|
|
204014b8: 00f707b3 add a5,a4,a5
|
|
204014bc: 0007c703 lbu a4,0(a5)
|
|
204014c0: 00a00793 li a5,10
|
|
204014c4: 02f71063 bne a4,a5,204014e4 <__wrap_write+0x98>
|
|
204014c8: 00000013 nop
|
|
204014cc: 100137b7 lui a5,0x10013
|
|
204014d0: 0007a783 lw a5,0(a5) # 10013000 <__stack_size+0x10012800>
|
|
204014d4: fe07cce3 bltz a5,204014cc <__wrap_write+0x80>
|
|
204014d8: 100137b7 lui a5,0x10013
|
|
204014dc: 00d00713 li a4,13
|
|
204014e0: 00e7a023 sw a4,0(a5) # 10013000 <__stack_size+0x10012800>
|
|
204014e4: fec42783 lw a5,-20(s0)
|
|
204014e8: 00178793 addi a5,a5,1
|
|
204014ec: fef42623 sw a5,-20(s0)
|
|
204014f0: fec42703 lw a4,-20(s0)
|
|
204014f4: fd442783 lw a5,-44(s0)
|
|
204014f8: f8f768e3 bltu a4,a5,20401488 <__wrap_write+0x3c>
|
|
204014fc: fd442783 lw a5,-44(s0)
|
|
20401500: 0100006f j 20401510 <__wrap_write+0xc4>
|
|
20401504: 00900513 li a0,9
|
|
20401508: f21ff0ef jal ra,20401428 <_stub>
|
|
2040150c: 00050793 mv a5,a0
|
|
20401510: 00078513 mv a0,a5
|
|
20401514: 02c12083 lw ra,44(sp)
|
|
20401518: 02812403 lw s0,40(sp)
|
|
2040151c: 03010113 addi sp,sp,48
|
|
20401520: 00008067 ret
|
|
|
|
20401524 <__wrap_isatty>:
|
|
20401524: fe010113 addi sp,sp,-32
|
|
20401528: 00812e23 sw s0,28(sp)
|
|
2040152c: 02010413 addi s0,sp,32
|
|
20401530: fea42623 sw a0,-20(s0)
|
|
20401534: fec42703 lw a4,-20(s0)
|
|
20401538: 00100793 li a5,1
|
|
2040153c: 00f70863 beq a4,a5,2040154c <__wrap_isatty+0x28>
|
|
20401540: fec42703 lw a4,-20(s0)
|
|
20401544: 00200793 li a5,2
|
|
20401548: 00f71663 bne a4,a5,20401554 <__wrap_isatty+0x30>
|
|
2040154c: 00100793 li a5,1
|
|
20401550: 0080006f j 20401558 <__wrap_isatty+0x34>
|
|
20401554: 00000793 li a5,0
|
|
20401558: 00078513 mv a0,a5
|
|
2040155c: 01c12403 lw s0,28(sp)
|
|
20401560: 02010113 addi sp,sp,32
|
|
20401564: 00008067 ret
|
|
|
|
20401568 <__wrap__exit>:
|
|
20401568: fc010113 addi sp,sp,-64
|
|
2040156c: 02112e23 sw ra,60(sp)
|
|
20401570: 02812c23 sw s0,56(sp)
|
|
20401574: 04010413 addi s0,sp,64
|
|
20401578: fca42623 sw a0,-52(s0)
|
|
2040157c: 204027b7 lui a5,0x20402
|
|
20401580: 4587a883 lw a7,1112(a5) # 20402458 <__clzsi2+0x214>
|
|
20401584: 45878713 addi a4,a5,1112
|
|
20401588: 00472803 lw a6,4(a4)
|
|
2040158c: 45878713 addi a4,a5,1112
|
|
20401590: 00872503 lw a0,8(a4)
|
|
20401594: 45878713 addi a4,a5,1112
|
|
20401598: 00c72583 lw a1,12(a4)
|
|
2040159c: 45878713 addi a4,a5,1112
|
|
204015a0: 01072603 lw a2,16(a4)
|
|
204015a4: 45878713 addi a4,a5,1112
|
|
204015a8: 01472683 lw a3,20(a4)
|
|
204015ac: 45878713 addi a4,a5,1112
|
|
204015b0: 01872703 lw a4,24(a4)
|
|
204015b4: fd142823 sw a7,-48(s0)
|
|
204015b8: fd042a23 sw a6,-44(s0)
|
|
204015bc: fca42c23 sw a0,-40(s0)
|
|
204015c0: fcb42e23 sw a1,-36(s0)
|
|
204015c4: fec42023 sw a2,-32(s0)
|
|
204015c8: fed42223 sw a3,-28(s0)
|
|
204015cc: fee42423 sw a4,-24(s0)
|
|
204015d0: 45878793 addi a5,a5,1112
|
|
204015d4: 01c7d783 lhu a5,28(a5)
|
|
204015d8: fef41623 sh a5,-20(s0)
|
|
204015dc: fd040793 addi a5,s0,-48
|
|
204015e0: 01d00613 li a2,29
|
|
204015e4: 00078593 mv a1,a5
|
|
204015e8: 00200513 li a0,2
|
|
204015ec: e61ff0ef jal ra,2040144c <__wrap_write>
|
|
204015f0: fcc42783 lw a5,-52(s0)
|
|
204015f4: 00078593 mv a1,a5
|
|
204015f8: 00200513 li a0,2
|
|
204015fc: 01c000ef jal ra,20401618 <write_hex>
|
|
20401600: 00100613 li a2,1
|
|
20401604: 204027b7 lui a5,0x20402
|
|
20401608: 45478593 addi a1,a5,1108 # 20402454 <__clzsi2+0x210>
|
|
2040160c: 00200513 li a0,2
|
|
20401610: e3dff0ef jal ra,2040144c <__wrap_write>
|
|
20401614: 0000006f j 20401614 <__wrap__exit+0xac>
|
|
|
|
20401618 <write_hex>:
|
|
20401618: fd010113 addi sp,sp,-48
|
|
2040161c: 02112623 sw ra,44(sp)
|
|
20401620: 02812423 sw s0,40(sp)
|
|
20401624: 03010413 addi s0,sp,48
|
|
20401628: fca42e23 sw a0,-36(s0)
|
|
2040162c: fcb42c23 sw a1,-40(s0)
|
|
20401630: 00200613 li a2,2
|
|
20401634: 204027b7 lui a5,0x20402
|
|
20401638: 47878593 addi a1,a5,1144 # 20402478 <__clzsi2+0x234>
|
|
2040163c: fdc42503 lw a0,-36(s0)
|
|
20401640: e0dff0ef jal ra,2040144c <__wrap_write>
|
|
20401644: 00800793 li a5,8
|
|
20401648: fef407a3 sb a5,-17(s0)
|
|
2040164c: 0880006f j 204016d4 <write_hex+0xbc>
|
|
20401650: fef44783 lbu a5,-17(s0)
|
|
20401654: fff78793 addi a5,a5,-1
|
|
20401658: fef40723 sb a5,-18(s0)
|
|
2040165c: fee44783 lbu a5,-18(s0)
|
|
20401660: 00279793 slli a5,a5,0x2
|
|
20401664: 00f00713 li a4,15
|
|
20401668: 00f717b3 sll a5,a4,a5
|
|
2040166c: 00078713 mv a4,a5
|
|
20401670: fd842783 lw a5,-40(s0)
|
|
20401674: 00f77733 and a4,a4,a5
|
|
20401678: fee44783 lbu a5,-18(s0)
|
|
2040167c: 00279793 slli a5,a5,0x2
|
|
20401680: 00f757b3 srl a5,a4,a5
|
|
20401684: fef406a3 sb a5,-19(s0)
|
|
20401688: fed44703 lbu a4,-19(s0)
|
|
2040168c: 00900793 li a5,9
|
|
20401690: 00e7ea63 bltu a5,a4,204016a4 <write_hex+0x8c>
|
|
20401694: fed44783 lbu a5,-19(s0)
|
|
20401698: 03078793 addi a5,a5,48
|
|
2040169c: 0ff7f793 andi a5,a5,255
|
|
204016a0: 0100006f j 204016b0 <write_hex+0x98>
|
|
204016a4: fed44783 lbu a5,-19(s0)
|
|
204016a8: 03778793 addi a5,a5,55
|
|
204016ac: 0ff7f793 andi a5,a5,255
|
|
204016b0: fef40623 sb a5,-20(s0)
|
|
204016b4: fec40793 addi a5,s0,-20
|
|
204016b8: 00100613 li a2,1
|
|
204016bc: 00078593 mv a1,a5
|
|
204016c0: fdc42503 lw a0,-36(s0)
|
|
204016c4: d89ff0ef jal ra,2040144c <__wrap_write>
|
|
204016c8: fef44783 lbu a5,-17(s0)
|
|
204016cc: fff78793 addi a5,a5,-1
|
|
204016d0: fef407a3 sb a5,-17(s0)
|
|
204016d4: fef44783 lbu a5,-17(s0)
|
|
204016d8: f6079ce3 bnez a5,20401650 <write_hex+0x38>
|
|
204016dc: 00000013 nop
|
|
204016e0: 02c12083 lw ra,44(sp)
|
|
204016e4: 02812403 lw s0,40(sp)
|
|
204016e8: 03010113 addi sp,sp,48
|
|
204016ec: 00008067 ret
|
|
|
|
204016f0 <atexit>:
|
|
204016f0: 00050593 mv a1,a0
|
|
204016f4: 00000693 li a3,0
|
|
204016f8: 00000613 li a2,0
|
|
204016fc: 00000513 li a0,0
|
|
20401700: 1680006f j 20401868 <__register_exitproc>
|
|
|
|
20401704 <exit>:
|
|
20401704: ff010113 addi sp,sp,-16
|
|
20401708: 00000593 li a1,0
|
|
2040170c: 00812423 sw s0,8(sp)
|
|
20401710: 00112623 sw ra,12(sp)
|
|
20401714: 00050413 mv s0,a0
|
|
20401718: 1d4000ef jal ra,204018ec <__call_exitprocs>
|
|
2040171c: 5fbff797 auipc a5,0x5fbff
|
|
20401720: d0c78793 addi a5,a5,-756 # 80000428 <_global_impure_ptr>
|
|
20401724: 0007a503 lw a0,0(a5)
|
|
20401728: 03c52783 lw a5,60(a0)
|
|
2040172c: 00078463 beqz a5,20401734 <exit+0x30>
|
|
20401730: 000780e7 jalr a5
|
|
20401734: 00040513 mv a0,s0
|
|
20401738: e31ff0ef jal ra,20401568 <__wrap__exit>
|
|
|
|
2040173c <__libc_fini_array>:
|
|
2040173c: ff010113 addi sp,sp,-16
|
|
20401740: 00001797 auipc a5,0x1
|
|
20401744: e7878793 addi a5,a5,-392 # 204025b8 <__fini_array_end>
|
|
20401748: 00812423 sw s0,8(sp)
|
|
2040174c: 00001417 auipc s0,0x1
|
|
20401750: e6c40413 addi s0,s0,-404 # 204025b8 <__fini_array_end>
|
|
20401754: 40878433 sub s0,a5,s0
|
|
20401758: 00912223 sw s1,4(sp)
|
|
2040175c: 01212023 sw s2,0(sp)
|
|
20401760: 00112623 sw ra,12(sp)
|
|
20401764: 40245413 srai s0,s0,0x2
|
|
20401768: 00000493 li s1,0
|
|
2040176c: 00078913 mv s2,a5
|
|
20401770: 00941e63 bne s0,s1,2040178c <__libc_fini_array+0x50>
|
|
20401774: 00812403 lw s0,8(sp)
|
|
20401778: 00c12083 lw ra,12(sp)
|
|
2040177c: 00412483 lw s1,4(sp)
|
|
20401780: 00012903 lw s2,0(sp)
|
|
20401784: 01010113 addi sp,sp,16
|
|
20401788: c85ff06f j 2040140c <_fini>
|
|
2040178c: ffc00593 li a1,-4
|
|
20401790: 00048513 mv a0,s1
|
|
20401794: 1d9000ef jal ra,2040216c <__mulsi3>
|
|
20401798: 00a90533 add a0,s2,a0
|
|
2040179c: ffc52783 lw a5,-4(a0)
|
|
204017a0: 00148493 addi s1,s1,1
|
|
204017a4: 000780e7 jalr a5
|
|
204017a8: fc9ff06f j 20401770 <__libc_fini_array+0x34>
|
|
|
|
204017ac <__libc_init_array>:
|
|
204017ac: ff010113 addi sp,sp,-16
|
|
204017b0: 00812423 sw s0,8(sp)
|
|
204017b4: 00912223 sw s1,4(sp)
|
|
204017b8: 00001417 auipc s0,0x1
|
|
204017bc: e0040413 addi s0,s0,-512 # 204025b8 <__fini_array_end>
|
|
204017c0: 00001497 auipc s1,0x1
|
|
204017c4: df848493 addi s1,s1,-520 # 204025b8 <__fini_array_end>
|
|
204017c8: 408484b3 sub s1,s1,s0
|
|
204017cc: 01212023 sw s2,0(sp)
|
|
204017d0: 00112623 sw ra,12(sp)
|
|
204017d4: 4024d493 srai s1,s1,0x2
|
|
204017d8: 00000913 li s2,0
|
|
204017dc: 04991063 bne s2,s1,2040181c <__libc_init_array+0x70>
|
|
204017e0: 00001417 auipc s0,0x1
|
|
204017e4: dd840413 addi s0,s0,-552 # 204025b8 <__fini_array_end>
|
|
204017e8: 00001497 auipc s1,0x1
|
|
204017ec: dd048493 addi s1,s1,-560 # 204025b8 <__fini_array_end>
|
|
204017f0: 408484b3 sub s1,s1,s0
|
|
204017f4: b89ff0ef jal ra,2040137c <_init>
|
|
204017f8: 4024d493 srai s1,s1,0x2
|
|
204017fc: 00000913 li s2,0
|
|
20401800: 02991863 bne s2,s1,20401830 <__libc_init_array+0x84>
|
|
20401804: 00c12083 lw ra,12(sp)
|
|
20401808: 00812403 lw s0,8(sp)
|
|
2040180c: 00412483 lw s1,4(sp)
|
|
20401810: 00012903 lw s2,0(sp)
|
|
20401814: 01010113 addi sp,sp,16
|
|
20401818: 00008067 ret
|
|
2040181c: 00042783 lw a5,0(s0)
|
|
20401820: 00190913 addi s2,s2,1
|
|
20401824: 00440413 addi s0,s0,4
|
|
20401828: 000780e7 jalr a5
|
|
2040182c: fb1ff06f j 204017dc <__libc_init_array+0x30>
|
|
20401830: 00042783 lw a5,0(s0)
|
|
20401834: 00190913 addi s2,s2,1
|
|
20401838: 00440413 addi s0,s0,4
|
|
2040183c: 000780e7 jalr a5
|
|
20401840: fc1ff06f j 20401800 <__libc_init_array+0x54>
|
|
|
|
20401844 <strnlen>:
|
|
20401844: 00b505b3 add a1,a0,a1
|
|
20401848: 00050793 mv a5,a0
|
|
2040184c: 00b78663 beq a5,a1,20401858 <strnlen+0x14>
|
|
20401850: 0007c703 lbu a4,0(a5)
|
|
20401854: 00071663 bnez a4,20401860 <strnlen+0x1c>
|
|
20401858: 40a78533 sub a0,a5,a0
|
|
2040185c: 00008067 ret
|
|
20401860: 00178793 addi a5,a5,1
|
|
20401864: fe9ff06f j 2040184c <strnlen+0x8>
|
|
|
|
20401868 <__register_exitproc>:
|
|
20401868: 5fbff797 auipc a5,0x5fbff
|
|
2040186c: bc078793 addi a5,a5,-1088 # 80000428 <_global_impure_ptr>
|
|
20401870: 0007a703 lw a4,0(a5)
|
|
20401874: 00050313 mv t1,a0
|
|
20401878: 14872783 lw a5,328(a4)
|
|
2040187c: 00079663 bnez a5,20401888 <__register_exitproc+0x20>
|
|
20401880: 14c70793 addi a5,a4,332
|
|
20401884: 14f72423 sw a5,328(a4)
|
|
20401888: 0047a703 lw a4,4(a5)
|
|
2040188c: 01f00813 li a6,31
|
|
20401890: fff00513 li a0,-1
|
|
20401894: 04e84a63 blt a6,a4,204018e8 <__register_exitproc+0x80>
|
|
20401898: 00271893 slli a7,a4,0x2
|
|
2040189c: 02030c63 beqz t1,204018d4 <__register_exitproc+0x6c>
|
|
204018a0: 01178533 add a0,a5,a7
|
|
204018a4: 08c52423 sw a2,136(a0)
|
|
204018a8: 1887a803 lw a6,392(a5)
|
|
204018ac: 00100613 li a2,1
|
|
204018b0: 00e61633 sll a2,a2,a4
|
|
204018b4: 00c86833 or a6,a6,a2
|
|
204018b8: 1907a423 sw a6,392(a5)
|
|
204018bc: 10d52423 sw a3,264(a0)
|
|
204018c0: 00200693 li a3,2
|
|
204018c4: 00d31863 bne t1,a3,204018d4 <__register_exitproc+0x6c>
|
|
204018c8: 18c7a683 lw a3,396(a5)
|
|
204018cc: 00c6e633 or a2,a3,a2
|
|
204018d0: 18c7a623 sw a2,396(a5)
|
|
204018d4: 00170713 addi a4,a4,1
|
|
204018d8: 00e7a223 sw a4,4(a5)
|
|
204018dc: 011787b3 add a5,a5,a7
|
|
204018e0: 00b7a423 sw a1,8(a5)
|
|
204018e4: 00000513 li a0,0
|
|
204018e8: 00008067 ret
|
|
|
|
204018ec <__call_exitprocs>:
|
|
204018ec: fd010113 addi sp,sp,-48
|
|
204018f0: 5fbff797 auipc a5,0x5fbff
|
|
204018f4: b3878793 addi a5,a5,-1224 # 80000428 <_global_impure_ptr>
|
|
204018f8: 01312e23 sw s3,28(sp)
|
|
204018fc: 0007a983 lw s3,0(a5)
|
|
20401900: 01412c23 sw s4,24(sp)
|
|
20401904: 01512a23 sw s5,20(sp)
|
|
20401908: 01612823 sw s6,16(sp)
|
|
2040190c: 02112623 sw ra,44(sp)
|
|
20401910: 02812423 sw s0,40(sp)
|
|
20401914: 02912223 sw s1,36(sp)
|
|
20401918: 03212023 sw s2,32(sp)
|
|
2040191c: 01712623 sw s7,12(sp)
|
|
20401920: 00050a93 mv s5,a0
|
|
20401924: 00058a13 mv s4,a1
|
|
20401928: 00100b13 li s6,1
|
|
2040192c: 1489a483 lw s1,328(s3)
|
|
20401930: 00048c63 beqz s1,20401948 <__call_exitprocs+0x5c>
|
|
20401934: 0044a403 lw s0,4(s1)
|
|
20401938: fff40913 addi s2,s0,-1
|
|
2040193c: 00241413 slli s0,s0,0x2
|
|
20401940: 00848433 add s0,s1,s0
|
|
20401944: 02095863 bgez s2,20401974 <__call_exitprocs+0x88>
|
|
20401948: 02c12083 lw ra,44(sp)
|
|
2040194c: 02812403 lw s0,40(sp)
|
|
20401950: 02412483 lw s1,36(sp)
|
|
20401954: 02012903 lw s2,32(sp)
|
|
20401958: 01c12983 lw s3,28(sp)
|
|
2040195c: 01812a03 lw s4,24(sp)
|
|
20401960: 01412a83 lw s5,20(sp)
|
|
20401964: 01012b03 lw s6,16(sp)
|
|
20401968: 00c12b83 lw s7,12(sp)
|
|
2040196c: 03010113 addi sp,sp,48
|
|
20401970: 00008067 ret
|
|
20401974: 000a0c63 beqz s4,2040198c <__call_exitprocs+0xa0>
|
|
20401978: 10442783 lw a5,260(s0)
|
|
2040197c: 01478863 beq a5,s4,2040198c <__call_exitprocs+0xa0>
|
|
20401980: fff90913 addi s2,s2,-1
|
|
20401984: ffc40413 addi s0,s0,-4
|
|
20401988: fbdff06f j 20401944 <__call_exitprocs+0x58>
|
|
2040198c: 0044a703 lw a4,4(s1)
|
|
20401990: 00442783 lw a5,4(s0)
|
|
20401994: fff70713 addi a4,a4,-1
|
|
20401998: 03271c63 bne a4,s2,204019d0 <__call_exitprocs+0xe4>
|
|
2040199c: 0124a223 sw s2,4(s1)
|
|
204019a0: fe0780e3 beqz a5,20401980 <__call_exitprocs+0x94>
|
|
204019a4: 1884a683 lw a3,392(s1)
|
|
204019a8: 012b1733 sll a4,s6,s2
|
|
204019ac: 0044ab83 lw s7,4(s1)
|
|
204019b0: 00d776b3 and a3,a4,a3
|
|
204019b4: 02069263 bnez a3,204019d8 <__call_exitprocs+0xec>
|
|
204019b8: 000780e7 jalr a5
|
|
204019bc: 0044a703 lw a4,4(s1)
|
|
204019c0: 1489a783 lw a5,328(s3)
|
|
204019c4: f77714e3 bne a4,s7,2040192c <__call_exitprocs+0x40>
|
|
204019c8: faf48ce3 beq s1,a5,20401980 <__call_exitprocs+0x94>
|
|
204019cc: f61ff06f j 2040192c <__call_exitprocs+0x40>
|
|
204019d0: 00042223 sw zero,4(s0)
|
|
204019d4: fcdff06f j 204019a0 <__call_exitprocs+0xb4>
|
|
204019d8: 18c4a683 lw a3,396(s1)
|
|
204019dc: 08442583 lw a1,132(s0)
|
|
204019e0: 00d77733 and a4,a4,a3
|
|
204019e4: 00071863 bnez a4,204019f4 <__call_exitprocs+0x108>
|
|
204019e8: 000a8513 mv a0,s5
|
|
204019ec: 000780e7 jalr a5
|
|
204019f0: fcdff06f j 204019bc <__call_exitprocs+0xd0>
|
|
204019f4: 00058513 mv a0,a1
|
|
204019f8: 000780e7 jalr a5
|
|
204019fc: fc1ff06f j 204019bc <__call_exitprocs+0xd0>
|
|
|
|
20401a00 <__muldf3>:
|
|
20401a00: fa010113 addi sp,sp,-96
|
|
20401a04: 04812c23 sw s0,88(sp)
|
|
20401a08: 05312623 sw s3,76(sp)
|
|
20401a0c: 00100437 lui s0,0x100
|
|
20401a10: 0145d993 srli s3,a1,0x14
|
|
20401a14: 04912a23 sw s1,84(sp)
|
|
20401a18: 05612023 sw s6,64(sp)
|
|
20401a1c: 03712e23 sw s7,60(sp)
|
|
20401a20: 03812c23 sw s8,56(sp)
|
|
20401a24: fff40413 addi s0,s0,-1 # fffff <__stack_size+0xff7ff>
|
|
20401a28: 04112e23 sw ra,92(sp)
|
|
20401a2c: 05212823 sw s2,80(sp)
|
|
20401a30: 05412423 sw s4,72(sp)
|
|
20401a34: 05512223 sw s5,68(sp)
|
|
20401a38: 03912a23 sw s9,52(sp)
|
|
20401a3c: 03a12823 sw s10,48(sp)
|
|
20401a40: 03b12623 sw s11,44(sp)
|
|
20401a44: 7ff9f993 andi s3,s3,2047
|
|
20401a48: 00050493 mv s1,a0
|
|
20401a4c: 00060b93 mv s7,a2
|
|
20401a50: 00068c13 mv s8,a3
|
|
20401a54: 00b47433 and s0,s0,a1
|
|
20401a58: 01f5db13 srli s6,a1,0x1f
|
|
20401a5c: 0a098863 beqz s3,20401b0c <__muldf3+0x10c>
|
|
20401a60: 7ff00793 li a5,2047
|
|
20401a64: 10f98663 beq s3,a5,20401b70 <__muldf3+0x170>
|
|
20401a68: 00800937 lui s2,0x800
|
|
20401a6c: 00341413 slli s0,s0,0x3
|
|
20401a70: 01246433 or s0,s0,s2
|
|
20401a74: 01d55913 srli s2,a0,0x1d
|
|
20401a78: 00896933 or s2,s2,s0
|
|
20401a7c: 00351d13 slli s10,a0,0x3
|
|
20401a80: c0198993 addi s3,s3,-1023
|
|
20401a84: 00000c93 li s9,0
|
|
20401a88: 014c5513 srli a0,s8,0x14
|
|
20401a8c: 00100a37 lui s4,0x100
|
|
20401a90: fffa0a13 addi s4,s4,-1 # fffff <__stack_size+0xff7ff>
|
|
20401a94: 7ff57513 andi a0,a0,2047
|
|
20401a98: 018a7a33 and s4,s4,s8
|
|
20401a9c: 000b8493 mv s1,s7
|
|
20401aa0: 01fc5c13 srli s8,s8,0x1f
|
|
20401aa4: 10050463 beqz a0,20401bac <__muldf3+0x1ac>
|
|
20401aa8: 7ff00793 li a5,2047
|
|
20401aac: 16f50463 beq a0,a5,20401c14 <__muldf3+0x214>
|
|
20401ab0: 00800437 lui s0,0x800
|
|
20401ab4: 003a1a13 slli s4,s4,0x3
|
|
20401ab8: 008a6a33 or s4,s4,s0
|
|
20401abc: 01dbd413 srli s0,s7,0x1d
|
|
20401ac0: 01446433 or s0,s0,s4
|
|
20401ac4: 003b9493 slli s1,s7,0x3
|
|
20401ac8: c0150513 addi a0,a0,-1023
|
|
20401acc: 00000793 li a5,0
|
|
20401ad0: 002c9713 slli a4,s9,0x2
|
|
20401ad4: 00f76733 or a4,a4,a5
|
|
20401ad8: 00a989b3 add s3,s3,a0
|
|
20401adc: fff70713 addi a4,a4,-1
|
|
20401ae0: 00e00693 li a3,14
|
|
20401ae4: 018b4bb3 xor s7,s6,s8
|
|
20401ae8: 00198a93 addi s5,s3,1
|
|
20401aec: 16e6e063 bltu a3,a4,20401c4c <__muldf3+0x24c>
|
|
20401af0: 00001697 auipc a3,0x1
|
|
20401af4: 98c68693 addi a3,a3,-1652 # 2040247c <__clzsi2+0x238>
|
|
20401af8: 00271713 slli a4,a4,0x2
|
|
20401afc: 00d70733 add a4,a4,a3
|
|
20401b00: 00072703 lw a4,0(a4)
|
|
20401b04: 00d70733 add a4,a4,a3
|
|
20401b08: 00070067 jr a4
|
|
20401b0c: 00a46933 or s2,s0,a0
|
|
20401b10: 06090e63 beqz s2,20401b8c <__muldf3+0x18c>
|
|
20401b14: 04040063 beqz s0,20401b54 <__muldf3+0x154>
|
|
20401b18: 00040513 mv a0,s0
|
|
20401b1c: 728000ef jal ra,20402244 <__clzsi2>
|
|
20401b20: ff550793 addi a5,a0,-11
|
|
20401b24: 01c00713 li a4,28
|
|
20401b28: 02f74c63 blt a4,a5,20401b60 <__muldf3+0x160>
|
|
20401b2c: 01d00913 li s2,29
|
|
20401b30: ff850d13 addi s10,a0,-8
|
|
20401b34: 40f90933 sub s2,s2,a5
|
|
20401b38: 01a41433 sll s0,s0,s10
|
|
20401b3c: 0124d933 srl s2,s1,s2
|
|
20401b40: 00896933 or s2,s2,s0
|
|
20401b44: 01a49d33 sll s10,s1,s10
|
|
20401b48: c0d00993 li s3,-1011
|
|
20401b4c: 40a989b3 sub s3,s3,a0
|
|
20401b50: f35ff06f j 20401a84 <__muldf3+0x84>
|
|
20401b54: 6f0000ef jal ra,20402244 <__clzsi2>
|
|
20401b58: 02050513 addi a0,a0,32
|
|
20401b5c: fc5ff06f j 20401b20 <__muldf3+0x120>
|
|
20401b60: fd850913 addi s2,a0,-40
|
|
20401b64: 01249933 sll s2,s1,s2
|
|
20401b68: 00000d13 li s10,0
|
|
20401b6c: fddff06f j 20401b48 <__muldf3+0x148>
|
|
20401b70: 00a46933 or s2,s0,a0
|
|
20401b74: 02090463 beqz s2,20401b9c <__muldf3+0x19c>
|
|
20401b78: 00050d13 mv s10,a0
|
|
20401b7c: 00040913 mv s2,s0
|
|
20401b80: 7ff00993 li s3,2047
|
|
20401b84: 00300c93 li s9,3
|
|
20401b88: f01ff06f j 20401a88 <__muldf3+0x88>
|
|
20401b8c: 00000d13 li s10,0
|
|
20401b90: 00000993 li s3,0
|
|
20401b94: 00100c93 li s9,1
|
|
20401b98: ef1ff06f j 20401a88 <__muldf3+0x88>
|
|
20401b9c: 00000d13 li s10,0
|
|
20401ba0: 7ff00993 li s3,2047
|
|
20401ba4: 00200c93 li s9,2
|
|
20401ba8: ee1ff06f j 20401a88 <__muldf3+0x88>
|
|
20401bac: 017a6433 or s0,s4,s7
|
|
20401bb0: 06040e63 beqz s0,20401c2c <__muldf3+0x22c>
|
|
20401bb4: 040a0063 beqz s4,20401bf4 <__muldf3+0x1f4>
|
|
20401bb8: 000a0513 mv a0,s4
|
|
20401bbc: 688000ef jal ra,20402244 <__clzsi2>
|
|
20401bc0: ff550793 addi a5,a0,-11
|
|
20401bc4: 01c00713 li a4,28
|
|
20401bc8: 02f74e63 blt a4,a5,20401c04 <__muldf3+0x204>
|
|
20401bcc: 01d00413 li s0,29
|
|
20401bd0: ff850493 addi s1,a0,-8
|
|
20401bd4: 40f40433 sub s0,s0,a5
|
|
20401bd8: 009a1a33 sll s4,s4,s1
|
|
20401bdc: 008bd433 srl s0,s7,s0
|
|
20401be0: 01446433 or s0,s0,s4
|
|
20401be4: 009b94b3 sll s1,s7,s1
|
|
20401be8: c0d00793 li a5,-1011
|
|
20401bec: 40a78533 sub a0,a5,a0
|
|
20401bf0: eddff06f j 20401acc <__muldf3+0xcc>
|
|
20401bf4: 000b8513 mv a0,s7
|
|
20401bf8: 64c000ef jal ra,20402244 <__clzsi2>
|
|
20401bfc: 02050513 addi a0,a0,32
|
|
20401c00: fc1ff06f j 20401bc0 <__muldf3+0x1c0>
|
|
20401c04: fd850413 addi s0,a0,-40
|
|
20401c08: 008b9433 sll s0,s7,s0
|
|
20401c0c: 00000493 li s1,0
|
|
20401c10: fd9ff06f j 20401be8 <__muldf3+0x1e8>
|
|
20401c14: 017a6433 or s0,s4,s7
|
|
20401c18: 02040263 beqz s0,20401c3c <__muldf3+0x23c>
|
|
20401c1c: 000a0413 mv s0,s4
|
|
20401c20: 7ff00513 li a0,2047
|
|
20401c24: 00300793 li a5,3
|
|
20401c28: ea9ff06f j 20401ad0 <__muldf3+0xd0>
|
|
20401c2c: 00000493 li s1,0
|
|
20401c30: 00000513 li a0,0
|
|
20401c34: 00100793 li a5,1
|
|
20401c38: e99ff06f j 20401ad0 <__muldf3+0xd0>
|
|
20401c3c: 00000493 li s1,0
|
|
20401c40: 7ff00513 li a0,2047
|
|
20401c44: 00200793 li a5,2
|
|
20401c48: e89ff06f j 20401ad0 <__muldf3+0xd0>
|
|
20401c4c: 00010737 lui a4,0x10
|
|
20401c50: fff70a13 addi s4,a4,-1 # ffff <__stack_size+0xf7ff>
|
|
20401c54: 010d5c13 srli s8,s10,0x10
|
|
20401c58: 0104dd93 srli s11,s1,0x10
|
|
20401c5c: 014d7d33 and s10,s10,s4
|
|
20401c60: 0144f4b3 and s1,s1,s4
|
|
20401c64: 000d0593 mv a1,s10
|
|
20401c68: 00048513 mv a0,s1
|
|
20401c6c: 00e12823 sw a4,16(sp)
|
|
20401c70: 4fc000ef jal ra,2040216c <__mulsi3>
|
|
20401c74: 00050c93 mv s9,a0
|
|
20401c78: 00048593 mv a1,s1
|
|
20401c7c: 000c0513 mv a0,s8
|
|
20401c80: 4ec000ef jal ra,2040216c <__mulsi3>
|
|
20401c84: 00a12623 sw a0,12(sp)
|
|
20401c88: 000d8593 mv a1,s11
|
|
20401c8c: 000c0513 mv a0,s8
|
|
20401c90: 4dc000ef jal ra,2040216c <__mulsi3>
|
|
20401c94: 00050b13 mv s6,a0
|
|
20401c98: 000d0593 mv a1,s10
|
|
20401c9c: 000d8513 mv a0,s11
|
|
20401ca0: 4cc000ef jal ra,2040216c <__mulsi3>
|
|
20401ca4: 00c12683 lw a3,12(sp)
|
|
20401ca8: 010cd793 srli a5,s9,0x10
|
|
20401cac: 00d50533 add a0,a0,a3
|
|
20401cb0: 00a78533 add a0,a5,a0
|
|
20401cb4: 00d57663 bleu a3,a0,20401cc0 <__muldf3+0x2c0>
|
|
20401cb8: 01012703 lw a4,16(sp)
|
|
20401cbc: 00eb0b33 add s6,s6,a4
|
|
20401cc0: 01055693 srli a3,a0,0x10
|
|
20401cc4: 01457533 and a0,a0,s4
|
|
20401cc8: 014cfcb3 and s9,s9,s4
|
|
20401ccc: 01051513 slli a0,a0,0x10
|
|
20401cd0: 019507b3 add a5,a0,s9
|
|
20401cd4: 01045c93 srli s9,s0,0x10
|
|
20401cd8: 01447433 and s0,s0,s4
|
|
20401cdc: 000d0593 mv a1,s10
|
|
20401ce0: 00040513 mv a0,s0
|
|
20401ce4: 00d12a23 sw a3,20(sp)
|
|
20401ce8: 00f12623 sw a5,12(sp)
|
|
20401cec: 480000ef jal ra,2040216c <__mulsi3>
|
|
20401cf0: 00a12823 sw a0,16(sp)
|
|
20401cf4: 00040593 mv a1,s0
|
|
20401cf8: 000c0513 mv a0,s8
|
|
20401cfc: 470000ef jal ra,2040216c <__mulsi3>
|
|
20401d00: 00050a13 mv s4,a0
|
|
20401d04: 000c8593 mv a1,s9
|
|
20401d08: 000c0513 mv a0,s8
|
|
20401d0c: 460000ef jal ra,2040216c <__mulsi3>
|
|
20401d10: 00050c13 mv s8,a0
|
|
20401d14: 000d0593 mv a1,s10
|
|
20401d18: 000c8513 mv a0,s9
|
|
20401d1c: 450000ef jal ra,2040216c <__mulsi3>
|
|
20401d20: 01012703 lw a4,16(sp)
|
|
20401d24: 01450533 add a0,a0,s4
|
|
20401d28: 01412683 lw a3,20(sp)
|
|
20401d2c: 01075793 srli a5,a4,0x10
|
|
20401d30: 00a78533 add a0,a5,a0
|
|
20401d34: 01457663 bleu s4,a0,20401d40 <__muldf3+0x340>
|
|
20401d38: 000107b7 lui a5,0x10
|
|
20401d3c: 00fc0c33 add s8,s8,a5
|
|
20401d40: 00010637 lui a2,0x10
|
|
20401d44: 01055793 srli a5,a0,0x10
|
|
20401d48: 01878c33 add s8,a5,s8
|
|
20401d4c: fff60793 addi a5,a2,-1 # ffff <__stack_size+0xf7ff>
|
|
20401d50: 00f57a33 and s4,a0,a5
|
|
20401d54: 00f77733 and a4,a4,a5
|
|
20401d58: 010a1a13 slli s4,s4,0x10
|
|
20401d5c: 01095d13 srli s10,s2,0x10
|
|
20401d60: 00ea0a33 add s4,s4,a4
|
|
20401d64: 00f97933 and s2,s2,a5
|
|
20401d68: 01468733 add a4,a3,s4
|
|
20401d6c: 00090593 mv a1,s2
|
|
20401d70: 00048513 mv a0,s1
|
|
20401d74: 00e12823 sw a4,16(sp)
|
|
20401d78: 00c12e23 sw a2,28(sp)
|
|
20401d7c: 3f0000ef jal ra,2040216c <__mulsi3>
|
|
20401d80: 00048593 mv a1,s1
|
|
20401d84: 00a12c23 sw a0,24(sp)
|
|
20401d88: 000d0513 mv a0,s10
|
|
20401d8c: 3e0000ef jal ra,2040216c <__mulsi3>
|
|
20401d90: 00a12a23 sw a0,20(sp)
|
|
20401d94: 000d0593 mv a1,s10
|
|
20401d98: 000d8513 mv a0,s11
|
|
20401d9c: 3d0000ef jal ra,2040216c <__mulsi3>
|
|
20401da0: 00050493 mv s1,a0
|
|
20401da4: 00090593 mv a1,s2
|
|
20401da8: 000d8513 mv a0,s11
|
|
20401dac: 3c0000ef jal ra,2040216c <__mulsi3>
|
|
20401db0: 01412683 lw a3,20(sp)
|
|
20401db4: 01812703 lw a4,24(sp)
|
|
20401db8: 00d50533 add a0,a0,a3
|
|
20401dbc: 01075793 srli a5,a4,0x10
|
|
20401dc0: 00a78533 add a0,a5,a0
|
|
20401dc4: 00d57663 bleu a3,a0,20401dd0 <__muldf3+0x3d0>
|
|
20401dc8: 01c12603 lw a2,28(sp)
|
|
20401dcc: 00c484b3 add s1,s1,a2
|
|
20401dd0: 000106b7 lui a3,0x10
|
|
20401dd4: fff68793 addi a5,a3,-1 # ffff <__stack_size+0xf7ff>
|
|
20401dd8: 01055d93 srli s11,a0,0x10
|
|
20401ddc: 009d84b3 add s1,s11,s1
|
|
20401de0: 00f57db3 and s11,a0,a5
|
|
20401de4: 00f77733 and a4,a4,a5
|
|
20401de8: 00090593 mv a1,s2
|
|
20401dec: 00040513 mv a0,s0
|
|
20401df0: 010d9d93 slli s11,s11,0x10
|
|
20401df4: 00ed8db3 add s11,s11,a4
|
|
20401df8: 00d12c23 sw a3,24(sp)
|
|
20401dfc: 370000ef jal ra,2040216c <__mulsi3>
|
|
20401e00: 00040593 mv a1,s0
|
|
20401e04: 00a12a23 sw a0,20(sp)
|
|
20401e08: 000d0513 mv a0,s10
|
|
20401e0c: 360000ef jal ra,2040216c <__mulsi3>
|
|
20401e10: 000d0593 mv a1,s10
|
|
20401e14: 00050413 mv s0,a0
|
|
20401e18: 000c8513 mv a0,s9
|
|
20401e1c: 350000ef jal ra,2040216c <__mulsi3>
|
|
20401e20: 00050d13 mv s10,a0
|
|
20401e24: 00090593 mv a1,s2
|
|
20401e28: 000c8513 mv a0,s9
|
|
20401e2c: 340000ef jal ra,2040216c <__mulsi3>
|
|
20401e30: 01412703 lw a4,20(sp)
|
|
20401e34: 00850533 add a0,a0,s0
|
|
20401e38: 01075793 srli a5,a4,0x10
|
|
20401e3c: 00a78533 add a0,a5,a0
|
|
20401e40: 00857663 bleu s0,a0,20401e4c <__muldf3+0x44c>
|
|
20401e44: 01812683 lw a3,24(sp)
|
|
20401e48: 00dd0d33 add s10,s10,a3
|
|
20401e4c: 01012783 lw a5,16(sp)
|
|
20401e50: 000106b7 lui a3,0x10
|
|
20401e54: fff68693 addi a3,a3,-1 # ffff <__stack_size+0xf7ff>
|
|
20401e58: 00fb0b33 add s6,s6,a5
|
|
20401e5c: 00d577b3 and a5,a0,a3
|
|
20401e60: 00d77733 and a4,a4,a3
|
|
20401e64: 01079793 slli a5,a5,0x10
|
|
20401e68: 00e787b3 add a5,a5,a4
|
|
20401e6c: 014b3a33 sltu s4,s6,s4
|
|
20401e70: 018787b3 add a5,a5,s8
|
|
20401e74: 01478433 add s0,a5,s4
|
|
20401e78: 01bb0b33 add s6,s6,s11
|
|
20401e7c: 00940733 add a4,s0,s1
|
|
20401e80: 01bb3db3 sltu s11,s6,s11
|
|
20401e84: 01b706b3 add a3,a4,s11
|
|
20401e88: 0187bc33 sltu s8,a5,s8
|
|
20401e8c: 01443433 sltu s0,s0,s4
|
|
20401e90: 01055793 srli a5,a0,0x10
|
|
20401e94: 00973733 sltu a4,a4,s1
|
|
20401e98: 008c6433 or s0,s8,s0
|
|
20401e9c: 01b6bdb3 sltu s11,a3,s11
|
|
20401ea0: 00f40433 add s0,s0,a5
|
|
20401ea4: 01b76db3 or s11,a4,s11
|
|
20401ea8: 01b40433 add s0,s0,s11
|
|
20401eac: 01a40433 add s0,s0,s10
|
|
20401eb0: 0176d793 srli a5,a3,0x17
|
|
20401eb4: 00941413 slli s0,s0,0x9
|
|
20401eb8: 00f46433 or s0,s0,a5
|
|
20401ebc: 00c12783 lw a5,12(sp)
|
|
20401ec0: 009b1493 slli s1,s6,0x9
|
|
20401ec4: 017b5b13 srli s6,s6,0x17
|
|
20401ec8: 00f4e4b3 or s1,s1,a5
|
|
20401ecc: 009034b3 snez s1,s1
|
|
20401ed0: 00969793 slli a5,a3,0x9
|
|
20401ed4: 0164e4b3 or s1,s1,s6
|
|
20401ed8: 00f4e4b3 or s1,s1,a5
|
|
20401edc: 00741793 slli a5,s0,0x7
|
|
20401ee0: 1207d263 bgez a5,20402004 <__muldf3+0x604>
|
|
20401ee4: 0014d793 srli a5,s1,0x1
|
|
20401ee8: 0014f493 andi s1,s1,1
|
|
20401eec: 0097e4b3 or s1,a5,s1
|
|
20401ef0: 01f41793 slli a5,s0,0x1f
|
|
20401ef4: 00f4e4b3 or s1,s1,a5
|
|
20401ef8: 00145413 srli s0,s0,0x1
|
|
20401efc: 3ffa8713 addi a4,s5,1023
|
|
20401f00: 10e05663 blez a4,2040200c <__muldf3+0x60c>
|
|
20401f04: 0074f793 andi a5,s1,7
|
|
20401f08: 02078063 beqz a5,20401f28 <__muldf3+0x528>
|
|
20401f0c: 00f4f793 andi a5,s1,15
|
|
20401f10: 00400693 li a3,4
|
|
20401f14: 00d78a63 beq a5,a3,20401f28 <__muldf3+0x528>
|
|
20401f18: 00448793 addi a5,s1,4
|
|
20401f1c: 0097b4b3 sltu s1,a5,s1
|
|
20401f20: 00940433 add s0,s0,s1
|
|
20401f24: 00078493 mv s1,a5
|
|
20401f28: 00741793 slli a5,s0,0x7
|
|
20401f2c: 0007da63 bgez a5,20401f40 <__muldf3+0x540>
|
|
20401f30: ff0007b7 lui a5,0xff000
|
|
20401f34: fff78793 addi a5,a5,-1 # feffffff <_sp+0x7effbfff>
|
|
20401f38: 00f47433 and s0,s0,a5
|
|
20401f3c: 400a8713 addi a4,s5,1024
|
|
20401f40: 7fe00793 li a5,2046
|
|
20401f44: 18e7c663 blt a5,a4,204020d0 <__muldf3+0x6d0>
|
|
20401f48: 0034da93 srli s5,s1,0x3
|
|
20401f4c: 01d41493 slli s1,s0,0x1d
|
|
20401f50: 0154e4b3 or s1,s1,s5
|
|
20401f54: 00345413 srli s0,s0,0x3
|
|
20401f58: 001007b7 lui a5,0x100
|
|
20401f5c: fff78793 addi a5,a5,-1 # fffff <__stack_size+0xff7ff>
|
|
20401f60: 00f47433 and s0,s0,a5
|
|
20401f64: 7ff77793 andi a5,a4,2047
|
|
20401f68: 80100737 lui a4,0x80100
|
|
20401f6c: fff70713 addi a4,a4,-1 # 800fffff <_sp+0xfbfff>
|
|
20401f70: 01479793 slli a5,a5,0x14
|
|
20401f74: 00e47433 and s0,s0,a4
|
|
20401f78: 01fb9b93 slli s7,s7,0x1f
|
|
20401f7c: 00f46433 or s0,s0,a5
|
|
20401f80: 017467b3 or a5,s0,s7
|
|
20401f84: 05c12083 lw ra,92(sp)
|
|
20401f88: 05812403 lw s0,88(sp)
|
|
20401f8c: 00048513 mv a0,s1
|
|
20401f90: 05012903 lw s2,80(sp)
|
|
20401f94: 05412483 lw s1,84(sp)
|
|
20401f98: 04c12983 lw s3,76(sp)
|
|
20401f9c: 04812a03 lw s4,72(sp)
|
|
20401fa0: 04412a83 lw s5,68(sp)
|
|
20401fa4: 04012b03 lw s6,64(sp)
|
|
20401fa8: 03c12b83 lw s7,60(sp)
|
|
20401fac: 03812c03 lw s8,56(sp)
|
|
20401fb0: 03412c83 lw s9,52(sp)
|
|
20401fb4: 03012d03 lw s10,48(sp)
|
|
20401fb8: 02c12d83 lw s11,44(sp)
|
|
20401fbc: 00078593 mv a1,a5
|
|
20401fc0: 06010113 addi sp,sp,96
|
|
20401fc4: 00008067 ret
|
|
20401fc8: 000b0b93 mv s7,s6
|
|
20401fcc: 00090413 mv s0,s2
|
|
20401fd0: 000d0493 mv s1,s10
|
|
20401fd4: 000c8793 mv a5,s9
|
|
20401fd8: 00200713 li a4,2
|
|
20401fdc: 0ee78a63 beq a5,a4,204020d0 <__muldf3+0x6d0>
|
|
20401fe0: 00300713 li a4,3
|
|
20401fe4: 0ce78c63 beq a5,a4,204020bc <__muldf3+0x6bc>
|
|
20401fe8: 00100713 li a4,1
|
|
20401fec: f0e798e3 bne a5,a4,20401efc <__muldf3+0x4fc>
|
|
20401ff0: 00000413 li s0,0
|
|
20401ff4: 00000493 li s1,0
|
|
20401ff8: 0880006f j 20402080 <__muldf3+0x680>
|
|
20401ffc: 000c0b93 mv s7,s8
|
|
20402000: fd9ff06f j 20401fd8 <__muldf3+0x5d8>
|
|
20402004: 00098a93 mv s5,s3
|
|
20402008: ef5ff06f j 20401efc <__muldf3+0x4fc>
|
|
2040200c: 00100693 li a3,1
|
|
20402010: 40e686b3 sub a3,a3,a4
|
|
20402014: 03800793 li a5,56
|
|
20402018: fcd7cce3 blt a5,a3,20401ff0 <__muldf3+0x5f0>
|
|
2040201c: 01f00793 li a5,31
|
|
20402020: 06d7c463 blt a5,a3,20402088 <__muldf3+0x688>
|
|
20402024: 41ea8a93 addi s5,s5,1054
|
|
20402028: 015417b3 sll a5,s0,s5
|
|
2040202c: 00d4d733 srl a4,s1,a3
|
|
20402030: 015494b3 sll s1,s1,s5
|
|
20402034: 00e7e7b3 or a5,a5,a4
|
|
20402038: 009034b3 snez s1,s1
|
|
2040203c: 0097e4b3 or s1,a5,s1
|
|
20402040: 00d45433 srl s0,s0,a3
|
|
20402044: 0074f793 andi a5,s1,7
|
|
20402048: 02078063 beqz a5,20402068 <__muldf3+0x668>
|
|
2040204c: 00f4f793 andi a5,s1,15
|
|
20402050: 00400713 li a4,4
|
|
20402054: 00e78a63 beq a5,a4,20402068 <__muldf3+0x668>
|
|
20402058: 00448793 addi a5,s1,4
|
|
2040205c: 0097b4b3 sltu s1,a5,s1
|
|
20402060: 00940433 add s0,s0,s1
|
|
20402064: 00078493 mv s1,a5
|
|
20402068: 00841793 slli a5,s0,0x8
|
|
2040206c: 0607ca63 bltz a5,204020e0 <__muldf3+0x6e0>
|
|
20402070: 01d41793 slli a5,s0,0x1d
|
|
20402074: 0034d493 srli s1,s1,0x3
|
|
20402078: 0097e4b3 or s1,a5,s1
|
|
2040207c: 00345413 srli s0,s0,0x3
|
|
20402080: 00000713 li a4,0
|
|
20402084: ed5ff06f j 20401f58 <__muldf3+0x558>
|
|
20402088: fe100793 li a5,-31
|
|
2040208c: 40e787b3 sub a5,a5,a4
|
|
20402090: 02000613 li a2,32
|
|
20402094: 00f457b3 srl a5,s0,a5
|
|
20402098: 00000713 li a4,0
|
|
2040209c: 00c68663 beq a3,a2,204020a8 <__muldf3+0x6a8>
|
|
204020a0: 43ea8a93 addi s5,s5,1086
|
|
204020a4: 01541733 sll a4,s0,s5
|
|
204020a8: 009764b3 or s1,a4,s1
|
|
204020ac: 009034b3 snez s1,s1
|
|
204020b0: 0097e4b3 or s1,a5,s1
|
|
204020b4: 00000413 li s0,0
|
|
204020b8: f8dff06f j 20402044 <__muldf3+0x644>
|
|
204020bc: 00080437 lui s0,0x80
|
|
204020c0: 00000493 li s1,0
|
|
204020c4: 7ff00713 li a4,2047
|
|
204020c8: 00000b93 li s7,0
|
|
204020cc: e8dff06f j 20401f58 <__muldf3+0x558>
|
|
204020d0: 00000413 li s0,0
|
|
204020d4: 00000493 li s1,0
|
|
204020d8: 7ff00713 li a4,2047
|
|
204020dc: e7dff06f j 20401f58 <__muldf3+0x558>
|
|
204020e0: 00000413 li s0,0
|
|
204020e4: 00000493 li s1,0
|
|
204020e8: 00100713 li a4,1
|
|
204020ec: e6dff06f j 20401f58 <__muldf3+0x558>
|
|
|
|
204020f0 <__fixunsdfsi>:
|
|
204020f0: 0145d713 srli a4,a1,0x14
|
|
204020f4: 001006b7 lui a3,0x100
|
|
204020f8: 00050613 mv a2,a0
|
|
204020fc: fff68793 addi a5,a3,-1 # fffff <__stack_size+0xff7ff>
|
|
20402100: 7ff77713 andi a4,a4,2047
|
|
20402104: 3fe00513 li a0,1022
|
|
20402108: 00b7f7b3 and a5,a5,a1
|
|
2040210c: 01f5d593 srli a1,a1,0x1f
|
|
20402110: 04e55a63 ble a4,a0,20402164 <__fixunsdfsi+0x74>
|
|
20402114: 00000513 li a0,0
|
|
20402118: 00059863 bnez a1,20402128 <__fixunsdfsi+0x38>
|
|
2040211c: 41e00593 li a1,1054
|
|
20402120: fff00513 li a0,-1
|
|
20402124: 00e5d463 ble a4,a1,2040212c <__fixunsdfsi+0x3c>
|
|
20402128: 00008067 ret
|
|
2040212c: 00d7e7b3 or a5,a5,a3
|
|
20402130: 43300693 li a3,1075
|
|
20402134: 40e686b3 sub a3,a3,a4
|
|
20402138: 01f00593 li a1,31
|
|
2040213c: 00d5cc63 blt a1,a3,20402154 <__fixunsdfsi+0x64>
|
|
20402140: bed70713 addi a4,a4,-1043
|
|
20402144: 00e797b3 sll a5,a5,a4
|
|
20402148: 00d65533 srl a0,a2,a3
|
|
2040214c: 00a7e533 or a0,a5,a0
|
|
20402150: 00008067 ret
|
|
20402154: 41300513 li a0,1043
|
|
20402158: 40e50533 sub a0,a0,a4
|
|
2040215c: 00a7d533 srl a0,a5,a0
|
|
20402160: 00008067 ret
|
|
20402164: 00000513 li a0,0
|
|
20402168: 00008067 ret
|
|
|
|
2040216c <__mulsi3>:
|
|
2040216c: 00050613 mv a2,a0
|
|
20402170: 00000513 li a0,0
|
|
20402174: 0015f693 andi a3,a1,1
|
|
20402178: 00068463 beqz a3,20402180 <__mulsi3+0x14>
|
|
2040217c: 00c50533 add a0,a0,a2
|
|
20402180: 0015d593 srli a1,a1,0x1
|
|
20402184: 00161613 slli a2,a2,0x1
|
|
20402188: fe0596e3 bnez a1,20402174 <__mulsi3+0x8>
|
|
2040218c: 00008067 ret
|
|
|
|
20402190 <__divsi3>:
|
|
20402190: 06054063 bltz a0,204021f0 <__umodsi3+0x10>
|
|
20402194: 0605c663 bltz a1,20402200 <__umodsi3+0x20>
|
|
|
|
20402198 <__udivsi3>:
|
|
20402198: 00058613 mv a2,a1
|
|
2040219c: 00050593 mv a1,a0
|
|
204021a0: fff00513 li a0,-1
|
|
204021a4: 02060c63 beqz a2,204021dc <__udivsi3+0x44>
|
|
204021a8: 00100693 li a3,1
|
|
204021ac: 00b67a63 bleu a1,a2,204021c0 <__udivsi3+0x28>
|
|
204021b0: 00c05863 blez a2,204021c0 <__udivsi3+0x28>
|
|
204021b4: 00161613 slli a2,a2,0x1
|
|
204021b8: 00169693 slli a3,a3,0x1
|
|
204021bc: feb66ae3 bltu a2,a1,204021b0 <__udivsi3+0x18>
|
|
204021c0: 00000513 li a0,0
|
|
204021c4: 00c5e663 bltu a1,a2,204021d0 <__udivsi3+0x38>
|
|
204021c8: 40c585b3 sub a1,a1,a2
|
|
204021cc: 00d56533 or a0,a0,a3
|
|
204021d0: 0016d693 srli a3,a3,0x1
|
|
204021d4: 00165613 srli a2,a2,0x1
|
|
204021d8: fe0696e3 bnez a3,204021c4 <__udivsi3+0x2c>
|
|
204021dc: 00008067 ret
|
|
|
|
204021e0 <__umodsi3>:
|
|
204021e0: 00008293 mv t0,ra
|
|
204021e4: fb5ff0ef jal ra,20402198 <__udivsi3>
|
|
204021e8: 00058513 mv a0,a1
|
|
204021ec: 00028067 jr t0
|
|
204021f0: 40a00533 neg a0,a0
|
|
204021f4: 0005d863 bgez a1,20402204 <__umodsi3+0x24>
|
|
204021f8: 40b005b3 neg a1,a1
|
|
204021fc: f9dff06f j 20402198 <__udivsi3>
|
|
20402200: 40b005b3 neg a1,a1
|
|
20402204: 00008293 mv t0,ra
|
|
20402208: f91ff0ef jal ra,20402198 <__udivsi3>
|
|
2040220c: 40a00533 neg a0,a0
|
|
20402210: 00028067 jr t0
|
|
|
|
20402214 <__modsi3>:
|
|
20402214: 00008293 mv t0,ra
|
|
20402218: 0005ca63 bltz a1,2040222c <__modsi3+0x18>
|
|
2040221c: 00054c63 bltz a0,20402234 <__modsi3+0x20>
|
|
20402220: f79ff0ef jal ra,20402198 <__udivsi3>
|
|
20402224: 00058513 mv a0,a1
|
|
20402228: 00028067 jr t0
|
|
2040222c: 40b005b3 neg a1,a1
|
|
20402230: fe0558e3 bgez a0,20402220 <__modsi3+0xc>
|
|
20402234: 40a00533 neg a0,a0
|
|
20402238: f61ff0ef jal ra,20402198 <__udivsi3>
|
|
2040223c: 40b00533 neg a0,a1
|
|
20402240: 00028067 jr t0
|
|
|
|
20402244 <__clzsi2>:
|
|
20402244: 000107b7 lui a5,0x10
|
|
20402248: 02f57a63 bleu a5,a0,2040227c <__clzsi2+0x38>
|
|
2040224c: 0ff00793 li a5,255
|
|
20402250: 00a7b7b3 sltu a5,a5,a0
|
|
20402254: 00379793 slli a5,a5,0x3
|
|
20402258: 02000713 li a4,32
|
|
2040225c: 40f70733 sub a4,a4,a5
|
|
20402260: 00f557b3 srl a5,a0,a5
|
|
20402264: 00000517 auipc a0,0x0
|
|
20402268: 25450513 addi a0,a0,596 # 204024b8 <__clz_tab>
|
|
2040226c: 00f507b3 add a5,a0,a5
|
|
20402270: 0007c503 lbu a0,0(a5) # 10000 <__stack_size+0xf800>
|
|
20402274: 40a70533 sub a0,a4,a0
|
|
20402278: 00008067 ret
|
|
2040227c: 01000737 lui a4,0x1000
|
|
20402280: 01000793 li a5,16
|
|
20402284: fce56ae3 bltu a0,a4,20402258 <__clzsi2+0x14>
|
|
20402288: 01800793 li a5,24
|
|
2040228c: fcdff06f j 20402258 <__clzsi2+0x14>
|