235 lines
8.5 KiB
Plaintext
235 lines
8.5 KiB
Plaintext
|
|
gpio: file format elf32-littleriscv
|
|
|
|
|
|
Disassembly of section .init:
|
|
|
|
00000000 <_start>:
|
|
0: 0080006f j 8 <_reset_handler>
|
|
4: 0640006f j 68 <_timer0_handler>
|
|
|
|
00000008 <_reset_handler>:
|
|
8: 10000197 auipc gp,0x10000
|
|
c: 7f818193 addi gp,gp,2040 # 10000800 <__global_pointer$>
|
|
10: 00018113 mv sp,gp
|
|
14: 2d400513 li a0,724
|
|
18: 10000597 auipc a1,0x10000
|
|
1c: fe858593 addi a1,a1,-24 # 10000000 <_data>
|
|
20: 10000617 auipc a2,0x10000
|
|
24: fe060613 addi a2,a2,-32 # 10000000 <_data>
|
|
28: 00c5fc63 bgeu a1,a2,40 <_reset_handler+0x38>
|
|
2c: 00052283 lw t0,0(a0)
|
|
30: 0055a023 sw t0,0(a1)
|
|
34: 00450513 addi a0,a0,4
|
|
38: 00458593 addi a1,a1,4
|
|
3c: fec5e8e3 bltu a1,a2,2c <_reset_handler+0x24>
|
|
40: 10000517 auipc a0,0x10000
|
|
44: fc050513 addi a0,a0,-64 # 10000000 <_data>
|
|
48: 10000597 auipc a1,0x10000
|
|
4c: fb858593 addi a1,a1,-72 # 10000000 <_data>
|
|
50: 00b57863 bgeu a0,a1,60 <_reset_handler+0x58>
|
|
54: 00052023 sw zero,0(a0)
|
|
58: 00450513 addi a0,a0,4
|
|
5c: feb56ce3 bltu a0,a1,54 <_reset_handler+0x4c>
|
|
60: 23c000ef jal ra,29c <main>
|
|
|
|
00000064 <loop>:
|
|
64: 0000006f j 64 <loop>
|
|
|
|
00000068 <_timer0_handler>:
|
|
68: f8010113 addi sp,sp,-128
|
|
6c: 00112223 sw ra,4(sp)
|
|
70: 00212423 sw sp,8(sp)
|
|
74: 00312623 sw gp,12(sp)
|
|
78: 00412823 sw tp,16(sp)
|
|
7c: 00512a23 sw t0,20(sp)
|
|
80: 00612c23 sw t1,24(sp)
|
|
84: 00712e23 sw t2,28(sp)
|
|
88: 02812023 sw s0,32(sp)
|
|
8c: 02912223 sw s1,36(sp)
|
|
90: 02a12423 sw a0,40(sp)
|
|
94: 02b12623 sw a1,44(sp)
|
|
98: 02c12823 sw a2,48(sp)
|
|
9c: 02d12a23 sw a3,52(sp)
|
|
a0: 02e12c23 sw a4,56(sp)
|
|
a4: 02f12e23 sw a5,60(sp)
|
|
a8: 05012023 sw a6,64(sp)
|
|
ac: 05112223 sw a7,68(sp)
|
|
b0: 05212423 sw s2,72(sp)
|
|
b4: 05312623 sw s3,76(sp)
|
|
b8: 05412823 sw s4,80(sp)
|
|
bc: 05512a23 sw s5,84(sp)
|
|
c0: 05612c23 sw s6,88(sp)
|
|
c4: 05712e23 sw s7,92(sp)
|
|
c8: 07812023 sw s8,96(sp)
|
|
cc: 07912223 sw s9,100(sp)
|
|
d0: 07a12423 sw s10,104(sp)
|
|
d4: 07b12623 sw s11,108(sp)
|
|
d8: 07c12823 sw t3,112(sp)
|
|
dc: 07d12a23 sw t4,116(sp)
|
|
e0: 07e12c23 sw t5,120(sp)
|
|
e4: 07f12e23 sw t6,124(sp)
|
|
e8: 00000097 auipc ra,0x0
|
|
ec: 000000e7 jalr zero # 0 <_start>
|
|
f0: 00412083 lw ra,4(sp)
|
|
f4: 00812103 lw sp,8(sp)
|
|
f8: 00c12183 lw gp,12(sp)
|
|
fc: 01012203 lw tp,16(sp)
|
|
100: 01412283 lw t0,20(sp)
|
|
104: 01812303 lw t1,24(sp)
|
|
108: 01c12383 lw t2,28(sp)
|
|
10c: 02012403 lw s0,32(sp)
|
|
110: 02412483 lw s1,36(sp)
|
|
114: 02812503 lw a0,40(sp)
|
|
118: 02c12583 lw a1,44(sp)
|
|
11c: 03012603 lw a2,48(sp)
|
|
120: 03412683 lw a3,52(sp)
|
|
124: 03812703 lw a4,56(sp)
|
|
128: 03c12783 lw a5,60(sp)
|
|
12c: 04012803 lw a6,64(sp)
|
|
130: 04412883 lw a7,68(sp)
|
|
134: 04812903 lw s2,72(sp)
|
|
138: 04c12983 lw s3,76(sp)
|
|
13c: 05012a03 lw s4,80(sp)
|
|
140: 05412a83 lw s5,84(sp)
|
|
144: 05812b03 lw s6,88(sp)
|
|
148: 05c12b83 lw s7,92(sp)
|
|
14c: 06012c03 lw s8,96(sp)
|
|
150: 06412c83 lw s9,100(sp)
|
|
154: 06812d03 lw s10,104(sp)
|
|
158: 06c12d83 lw s11,108(sp)
|
|
15c: 07012e03 lw t3,112(sp)
|
|
160: 07412e83 lw t4,116(sp)
|
|
164: 07812f03 lw t5,120(sp)
|
|
168: 07c12f83 lw t6,124(sp)
|
|
16c: 08010113 addi sp,sp,128
|
|
170: 30200073 mret
|
|
|
|
Disassembly of section .text:
|
|
|
|
00000174 <delay_ms>:
|
|
174: fb010113 addi sp,sp,-80
|
|
178: 04812623 sw s0,76(sp)
|
|
17c: 05010413 addi s0,sp,80
|
|
180: faa42e23 sw a0,-68(s0)
|
|
184: c0002773 rdcycle a4
|
|
188: fee42623 sw a4,-20(s0)
|
|
18c: fec42703 lw a4,-20(s0)
|
|
190: fee42023 sw a4,-32(s0)
|
|
194: fe042223 sw zero,-28(s0)
|
|
198: c8002773 rdcycleh a4
|
|
19c: fce42e23 sw a4,-36(s0)
|
|
1a0: fdc42703 lw a4,-36(s0)
|
|
1a4: 00070793 mv a5,a4
|
|
1a8: 00000813 li a6,0
|
|
1ac: 00079e93 slli t4,a5,0x0
|
|
1b0: 00000e13 li t3,0
|
|
1b4: fe042683 lw a3,-32(s0)
|
|
1b8: fe442703 lw a4,-28(s0)
|
|
1bc: 01c687b3 add a5,a3,t3
|
|
1c0: 00078513 mv a0,a5
|
|
1c4: 00d53533 sltu a0,a0,a3
|
|
1c8: 01d70833 add a6,a4,t4
|
|
1cc: 01050733 add a4,a0,a6
|
|
1d0: 00070813 mv a6,a4
|
|
1d4: fef42023 sw a5,-32(s0)
|
|
1d8: ff042223 sw a6,-28(s0)
|
|
1dc: c00027f3 rdcycle a5
|
|
1e0: fcf42c23 sw a5,-40(s0)
|
|
1e4: fd842783 lw a5,-40(s0)
|
|
1e8: fcf42823 sw a5,-48(s0)
|
|
1ec: fc042a23 sw zero,-44(s0)
|
|
1f0: c80027f3 rdcycleh a5
|
|
1f4: fcf42623 sw a5,-52(s0)
|
|
1f8: fcc42783 lw a5,-52(s0)
|
|
1fc: 00078f13 mv t5,a5
|
|
200: 00000f93 li t6,0
|
|
204: 000f1393 slli t2,t5,0x0
|
|
208: 00000313 li t1,0
|
|
20c: fd042683 lw a3,-48(s0)
|
|
210: fd442703 lw a4,-44(s0)
|
|
214: 006687b3 add a5,a3,t1
|
|
218: 00078513 mv a0,a5
|
|
21c: 00d53533 sltu a0,a0,a3
|
|
220: 00770833 add a6,a4,t2
|
|
224: 01050733 add a4,a0,a6
|
|
228: 00070813 mv a6,a4
|
|
22c: fcf42823 sw a5,-48(s0)
|
|
230: fd042a23 sw a6,-44(s0)
|
|
234: fbc42703 lw a4,-68(s0)
|
|
238: 0000c7b7 lui a5,0xc
|
|
23c: 35078793 addi a5,a5,848 # c350 <__stack_size+0xbf50>
|
|
240: 02f707b3 mul a5,a4,a5
|
|
244: 00078593 mv a1,a5
|
|
248: 00000613 li a2,0
|
|
24c: fe042683 lw a3,-32(s0)
|
|
250: fe442703 lw a4,-28(s0)
|
|
254: 00d587b3 add a5,a1,a3
|
|
258: 00078513 mv a0,a5
|
|
25c: 00b53533 sltu a0,a0,a1
|
|
260: 00e60833 add a6,a2,a4
|
|
264: 01050733 add a4,a0,a6
|
|
268: 00070813 mv a6,a4
|
|
26c: fd442703 lw a4,-44(s0)
|
|
270: 00080693 mv a3,a6
|
|
274: f6d764e3 bltu a4,a3,1dc <delay_ms+0x68>
|
|
278: fd442703 lw a4,-44(s0)
|
|
27c: 00080693 mv a3,a6
|
|
280: 00d71663 bne a4,a3,28c <delay_ms+0x118>
|
|
284: fd042703 lw a4,-48(s0)
|
|
288: f4f76ae3 bltu a4,a5,1dc <delay_ms+0x68>
|
|
28c: 00000013 nop
|
|
290: 04c12403 lw s0,76(sp)
|
|
294: 05010113 addi sp,sp,80
|
|
298: 00008067 ret
|
|
|
|
0000029c <main>:
|
|
29c: ff010113 addi sp,sp,-16
|
|
2a0: 00112623 sw ra,12(sp)
|
|
2a4: 00812423 sw s0,8(sp)
|
|
2a8: 01010413 addi s0,sp,16
|
|
2ac: 400007b7 lui a5,0x40000
|
|
2b0: 00478793 addi a5,a5,4 # 40000004 <__global_pointer$+0x2ffff804>
|
|
2b4: 0007a703 lw a4,0(a5)
|
|
2b8: 400007b7 lui a5,0x40000
|
|
2bc: 00478793 addi a5,a5,4 # 40000004 <__global_pointer$+0x2ffff804>
|
|
2c0: 00174713 xori a4,a4,1
|
|
2c4: 00e7a023 sw a4,0(a5)
|
|
2c8: 1f400513 li a0,500
|
|
2cc: ea9ff0ef jal ra,174 <delay_ms>
|
|
2d0: fddff06f j 2ac <main+0x10>
|
|
|
|
Disassembly of section .stack:
|
|
|
|
10000400 <_sp-0x400>:
|
|
...
|
|
|
|
Disassembly of section .comment:
|
|
|
|
00000000 <.comment>:
|
|
0: 3a434347 fmsub.d ft6,ft6,ft4,ft7,rmm
|
|
4: 2820 fld fs0,80(s0)
|
|
6: 20554e47 fmsub.s ft8,fa0,ft5,ft4,rmm
|
|
a: 434d li t1,19
|
|
c: 2055 jal b0 <_timer0_handler+0x48>
|
|
e: 6345 lui t1,0x11
|
|
10: 696c flw fa1,84(a0)
|
|
12: 7370 flw fa2,100(a4)
|
|
14: 2065 jal bc <_timer0_handler+0x54>
|
|
16: 4952 lw s2,20(sp)
|
|
18: 562d4353 0x562d4353
|
|
1c: 4520 lw s0,72(a0)
|
|
1e: 626d lui tp,0x1b
|
|
20: 6465 lui s0,0x19
|
|
22: 6564 flw fs1,76(a0)
|
|
24: 2064 fld fs1,192(s0)
|
|
26: 2c434347 0x2c434347
|
|
2a: 3620 fld fs0,104(a2)
|
|
2c: 2d34 fld fa3,88(a0)
|
|
2e: 6962 flw fs2,24(sp)
|
|
30: 2974 fld fa3,208(a0)
|
|
32: 3820 fld fs0,112(s0)
|
|
34: 322e fld ft4,232(sp)
|
|
36: 302e fld ft0,232(sp)
|
|
...
|