URL
https://opencores.org/ocsvn/darkriscv/darkriscv/trunk
Subversion Repositories darkriscv
[/] [darkriscv/] [trunk/] [src/] [darksocv.lst] - Rev 3
Go to most recent revision | Compare with Previous | Blame | View Log
darksocv.o: file format elf32-littleriscv
Disassembly of section .text:
00000000 <boot>:
0: 000017b7 lui a5,0x1
4: 0047a703 lw a4,4(a5) # 1004 <threads>
8: ff010113 addi sp,sp,-16
c: 00812423 sw s0,8(sp)
10: 00170693 addi a3,a4,1
14: 00d7a223 sw a3,4(a5)
18: 800007b7 lui a5,0x80000
1c: 00112623 sw ra,12(sp)
20: 00912223 sw s1,4(sp)
24: 00177713 andi a4,a4,1
28: 00078693 mv a3,a5
2c: f8000613 li a2,-128
30: 00e12023 sw a4,0(sp)
34: 00c681a3 sb a2,3(a3)
38: 00001437 lui s0,0x1
3c: 04070063 beqz a4,7c <boot+0x7c>
40: 000f46b7 lui a3,0xf4
44: 00078793 mv a5,a5
48: 23f68693 addi a3,a3,575 # f423f <nxt.1629+0xf3237>
4c: 00042703 lw a4,0(s0) # 1000 <utimers>
50: fff70593 addi a1,a4,-1
54: 00b42023 sw a1,0(s0)
58: 00071e63 bnez a4,74 <boot+0x74>
5c: 0087d703 lhu a4,8(a5) # 80000008 <io+0x8>
60: 00170713 addi a4,a4,1
64: 01071713 slli a4,a4,0x10
68: 01075713 srli a4,a4,0x10
6c: 00e79423 sh a4,8(a5)
70: 00d42023 sw a3,0(s0)
74: 00c781a3 sb a2,3(a5)
78: fd5ff06f j 4c <boot+0x4c>
7c: 000004b7 lui s1,0x0
80: 001000ef jal ra,880 <banner>
84: 00001537 lui a0,0x1
88: 01010693 addi a3,sp,16
8c: 00040613 mv a2,s0
90: 00048593 mv a1,s1
94: 0ec50513 addi a0,a0,236 # 10ec <nxt.1629+0xe4>
98: 354000ef jal ra,3ec <printf>
9c: 059000ef jal ra,8f4 <main>
a0: fe1ff06f j 80 <boot+0x80>
000000a4 <board_name>:
a4: 04050c63 beqz a0,fc <board_name+0x58>
a8: 00100793 li a5,1
ac: 04f50e63 beq a0,a5,108 <board_name+0x64>
b0: 00200793 li a5,2
b4: 06f50063 beq a0,a5,114 <board_name+0x70>
b8: 00300793 li a5,3
bc: 06f50263 beq a0,a5,120 <board_name+0x7c>
c0: 00400793 li a5,4
c4: 06f50463 beq a0,a5,12c <board_name+0x88>
c8: 00500793 li a5,5
cc: 06f50663 beq a0,a5,138 <board_name+0x94>
d0: 00600793 li a5,6
d4: 06f50863 beq a0,a5,144 <board_name+0xa0>
d8: 00700793 li a5,7
dc: 06f50a63 beq a0,a5,150 <board_name+0xac>
e0: 00800793 li a5,8
e4: 06f50c63 beq a0,a5,15c <board_name+0xb8>
e8: 00900793 li a5,9
ec: 06f50e63 beq a0,a5,168 <board_name+0xc4>
f0: 00001537 lui a0,0x1
f4: 0e450513 addi a0,a0,228 # 10e4 <nxt.1629+0xdc>
f8: 00008067 ret
fc: 00001537 lui a0,0x1
100: 03850513 addi a0,a0,56 # 1038 <nxt.1629+0x30>
104: 00008067 ret
108: 00001537 lui a0,0x1
10c: 04850513 addi a0,a0,72 # 1048 <nxt.1629+0x40>
110: 00008067 ret
114: 00001537 lui a0,0x1
118: 06050513 addi a0,a0,96 # 1060 <nxt.1629+0x58>
11c: 00008067 ret
120: 00001537 lui a0,0x1
124: 07450513 addi a0,a0,116 # 1074 <nxt.1629+0x6c>
128: 00008067 ret
12c: 00001537 lui a0,0x1
130: 08850513 addi a0,a0,136 # 1088 <nxt.1629+0x80>
134: 00008067 ret
138: 00001537 lui a0,0x1
13c: 09c50513 addi a0,a0,156 # 109c <nxt.1629+0x94>
140: 00008067 ret
144: 00001537 lui a0,0x1
148: 0b450513 addi a0,a0,180 # 10b4 <nxt.1629+0xac>
14c: 00008067 ret
150: 00001537 lui a0,0x1
154: 02050513 addi a0,a0,32 # 1020 <nxt.1629+0x18>
158: 00008067 ret
15c: 00001537 lui a0,0x1
160: 0c850513 addi a0,a0,200 # 10c8 <nxt.1629+0xc0>
164: 00008067 ret
168: 00001537 lui a0,0x1
16c: 00c50513 addi a0,a0,12 # 100c <nxt.1629+0x4>
170: 00008067 ret
00000174 <getchar>:
174: 800007b7 lui a5,0x80000
178: 00078793 mv a5,a5
17c: 0047c703 lbu a4,4(a5) # 80000004 <io+0x4>
180: 00277713 andi a4,a4,2
184: fe070ce3 beqz a4,17c <getchar+0x8>
188: 0057c503 lbu a0,5(a5)
18c: 00008067 ret
00000190 <putchar>:
190: 800007b7 lui a5,0x80000
194: 00a00713 li a4,10
198: 00078793 mv a5,a5
19c: 00e51c63 bne a0,a4,1b4 <putchar+0x24>
1a0: 0047c703 lbu a4,4(a5) # 80000004 <io+0x4>
1a4: 00177713 andi a4,a4,1
1a8: fe071ce3 bnez a4,1a0 <putchar+0x10>
1ac: 00d00713 li a4,13
1b0: 00e782a3 sb a4,5(a5)
1b4: 0047c703 lbu a4,4(a5)
1b8: 00177713 andi a4,a4,1
1bc: fe071ce3 bnez a4,1b4 <putchar+0x24>
1c0: 0ff57713 andi a4,a0,255
1c4: 00e782a3 sb a4,5(a5)
1c8: 00070513 mv a0,a4
1cc: 00008067 ret
000001d0 <gets>:
1d0: fe810113 addi sp,sp,-24
1d4: 00812823 sw s0,16(sp)
1d8: 00912623 sw s1,12(sp)
1dc: 00112a23 sw ra,20(sp)
1e0: 00050493 mv s1,a0
1e4: 00050413 mv s0,a0
1e8: fff58713 addi a4,a1,-1
1ec: 02070063 beqz a4,20c <gets+0x3c>
1f0: 00b12223 sw a1,4(sp)
1f4: 00e12023 sw a4,0(sp)
1f8: f7dff0ef jal ra,174 <getchar>
1fc: 00a00693 li a3,10
200: 00012703 lw a4,0(sp)
204: 00412583 lw a1,4(sp)
208: 02d51863 bne a0,a3,238 <gets+0x68>
20c: 00a00513 li a0,10
210: f81ff0ef jal ra,190 <putchar>
214: 00040023 sb zero,0(s0)
218: 00941463 bne s0,s1,220 <gets+0x50>
21c: 00000493 li s1,0
220: 01412083 lw ra,20(sp)
224: 01012403 lw s0,16(sp)
228: 00048513 mv a0,s1
22c: 00c12483 lw s1,12(sp)
230: 01810113 addi sp,sp,24
234: 00008067 ret
238: 00b12423 sw a1,8(sp)
23c: 00e12223 sw a4,4(sp)
240: 00d00693 li a3,13
244: 00a12023 sw a0,0(sp)
248: fcd502e3 beq a0,a3,20c <gets+0x3c>
24c: f45ff0ef jal ra,190 <putchar>
250: 00012783 lw a5,0(sp)
254: 00800693 li a3,8
258: 00412703 lw a4,4(sp)
25c: 00812583 lw a1,8(sp)
260: 00d79e63 bne a5,a3,27c <gets+0xac>
264: 00940863 beq s0,s1,274 <gets+0xa4>
268: fe040fa3 sb zero,-1(s0)
26c: 00058713 mv a4,a1
270: fff40413 addi s0,s0,-1
274: 00070593 mv a1,a4
278: f71ff06f j 1e8 <gets+0x18>
27c: 00f40023 sb a5,0(s0)
280: 00140413 addi s0,s0,1
284: ff1ff06f j 274 <gets+0xa4>
00000288 <putstr>:
288: ff410113 addi sp,sp,-12
28c: 00812223 sw s0,4(sp)
290: 00112423 sw ra,8(sp)
294: 00050413 mv s0,a0
298: 00051663 bnez a0,2a4 <putstr+0x1c>
29c: 00001437 lui s0,0x1
2a0: 15040413 addi s0,s0,336 # 1150 <nxt.1629+0x148>
2a4: 00044503 lbu a0,0(s0)
2a8: 00051a63 bnez a0,2bc <putstr+0x34>
2ac: 00812083 lw ra,8(sp)
2b0: 00412403 lw s0,4(sp)
2b4: 00c10113 addi sp,sp,12
2b8: 00008067 ret
2bc: 00140413 addi s0,s0,1
2c0: ed1ff0ef jal ra,190 <putchar>
2c4: fe1ff06f j 2a4 <putstr+0x1c>
000002c8 <puts>:
2c8: ff410113 addi sp,sp,-12
2cc: 00112423 sw ra,8(sp)
2d0: fb9ff0ef jal ra,288 <putstr>
2d4: 00812083 lw ra,8(sp)
2d8: 00a00513 li a0,10
2dc: 00c10113 addi sp,sp,12
2e0: eb1ff06f j 190 <putchar>
000002e4 <putdx>:
2e4: fac10113 addi sp,sp,-84
2e8: 00b12023 sw a1,0(sp)
2ec: 000015b7 lui a1,0x1
2f0: 04812623 sw s0,76(sp)
2f4: 04912423 sw s1,72(sp)
2f8: 02c00613 li a2,44
2fc: 11058493 addi s1,a1,272 # 1110 <nxt.1629+0x108>
300: 00050413 mv s0,a0
304: 11058593 addi a1,a1,272
308: 01c10513 addi a0,sp,28
30c: 04112823 sw ra,80(sp)
310: 210000ef jal ra,520 <memcpy>
314: 01400613 li a2,20
318: 02c48593 addi a1,s1,44 # 2c <boot+0x2c>
31c: 00810513 addi a0,sp,8
320: 200000ef jal ra,520 <memcpy>
324: 00012703 lw a4,0(sp)
328: 00810793 addi a5,sp,8
32c: 00070463 beqz a4,334 <putdx+0x50>
330: 01c10793 addi a5,sp,28
334: 01800493 li s1,24
338: 0007a583 lw a1,0(a5)
33c: 00059c63 bnez a1,354 <putdx+0x70>
340: 05012083 lw ra,80(sp)
344: 04c12403 lw s0,76(sp)
348: 04812483 lw s1,72(sp)
34c: 05410113 addi sp,sp,84
350: 00008067 ret
354: 00100713 li a4,1
358: 00e58463 beq a1,a4,360 <putdx+0x7c>
35c: 04b46063 bltu s0,a1,39c <putdx+0xb8>
360: 00012683 lw a3,0(sp)
364: 00001737 lui a4,0x1
368: 00f12223 sw a5,4(sp)
36c: 15870713 addi a4,a4,344 # 1158 <nxt.1629+0x150>
370: 02068c63 beqz a3,3a8 <putdx+0xc4>
374: 00040513 mv a0,s0
378: 400000ef jal ra,778 <__udivsi3>
37c: 00a00593 li a1,10
380: 400000ef jal ra,780 <__umodsi3>
384: 000017b7 lui a5,0x1
388: 15878713 addi a4,a5,344 # 1158 <nxt.1629+0x150>
38c: 00a70533 add a0,a4,a0
390: 00054503 lbu a0,0(a0)
394: dfdff0ef jal ra,190 <putchar>
398: 00412783 lw a5,4(sp)
39c: ff848493 addi s1,s1,-8
3a0: 00478793 addi a5,a5,4
3a4: f95ff06f j 338 <putdx+0x54>
3a8: 00448693 addi a3,s1,4
3ac: 00d456b3 srl a3,s0,a3
3b0: 00f6f693 andi a3,a3,15
3b4: 00d706b3 add a3,a4,a3
3b8: 0006c503 lbu a0,0(a3)
3bc: dd5ff0ef jal ra,190 <putchar>
3c0: 00945533 srl a0,s0,s1
3c4: 000017b7 lui a5,0x1
3c8: 00f57513 andi a0,a0,15
3cc: 15878713 addi a4,a5,344 # 1158 <nxt.1629+0x150>
3d0: 00a70733 add a4,a4,a0
3d4: 00074503 lbu a0,0(a4)
3d8: fbdff06f j 394 <putdx+0xb0>
000003dc <putx>:
3dc: 00000593 li a1,0
3e0: f05ff06f j 2e4 <putdx>
000003e4 <putd>:
3e4: 00100593 li a1,1
3e8: efdff06f j 2e4 <putdx>
000003ec <printf>:
3ec: fdc10113 addi sp,sp,-36
3f0: 02f12023 sw a5,32(sp)
3f4: 01010793 addi a5,sp,16
3f8: 00812423 sw s0,8(sp)
3fc: 00112623 sw ra,12(sp)
400: 00912223 sw s1,4(sp)
404: 00050413 mv s0,a0
408: 00b12823 sw a1,16(sp)
40c: 00c12a23 sw a2,20(sp)
410: 00d12c23 sw a3,24(sp)
414: 00e12e23 sw a4,28(sp)
418: 00f12023 sw a5,0(sp)
41c: 00044503 lbu a0,0(s0)
420: 00051c63 bnez a0,438 <printf+0x4c>
424: 00c12083 lw ra,12(sp)
428: 00812403 lw s0,8(sp)
42c: 00412483 lw s1,4(sp)
430: 02410113 addi sp,sp,36
434: 00008067 ret
438: 02500793 li a5,37
43c: 00140493 addi s1,s0,1
440: 06f51a63 bne a0,a5,4b4 <printf+0xc8>
444: 00144503 lbu a0,1(s0)
448: 07300793 li a5,115
44c: 02f51063 bne a0,a5,46c <printf+0x80>
450: 00012783 lw a5,0(sp)
454: 0007a503 lw a0,0(a5)
458: 00478713 addi a4,a5,4
45c: 00e12023 sw a4,0(sp)
460: e29ff0ef jal ra,288 <putstr>
464: 00148413 addi s0,s1,1
468: fb5ff06f j 41c <printf+0x30>
46c: 07800793 li a5,120
470: 00f51e63 bne a0,a5,48c <printf+0xa0>
474: 00012783 lw a5,0(sp)
478: 0007a503 lw a0,0(a5)
47c: 00478713 addi a4,a5,4
480: 00e12023 sw a4,0(sp)
484: f59ff0ef jal ra,3dc <putx>
488: fddff06f j 464 <printf+0x78>
48c: 06400793 li a5,100
490: 00f51e63 bne a0,a5,4ac <printf+0xc0>
494: 00012783 lw a5,0(sp)
498: 0007a503 lw a0,0(a5)
49c: 00478713 addi a4,a5,4
4a0: 00e12023 sw a4,0(sp)
4a4: f41ff0ef jal ra,3e4 <putd>
4a8: fbdff06f j 464 <printf+0x78>
4ac: ce5ff0ef jal ra,190 <putchar>
4b0: fb5ff06f j 464 <printf+0x78>
4b4: cddff0ef jal ra,190 <putchar>
4b8: 00040493 mv s1,s0
4bc: fa9ff06f j 464 <printf+0x78>
000004c0 <strncmp>:
4c0: fff60613 addi a2,a2,-1
4c4: 00000793 li a5,0
4c8: 00f50733 add a4,a0,a5
4cc: 00074683 lbu a3,0(a4)
4d0: 00f58733 add a4,a1,a5
4d4: 00074703 lbu a4,0(a4)
4d8: 00c78a63 beq a5,a2,4ec <strncmp+0x2c>
4dc: 00068863 beqz a3,4ec <strncmp+0x2c>
4e0: 00070663 beqz a4,4ec <strncmp+0x2c>
4e4: 00178793 addi a5,a5,1
4e8: fee680e3 beq a3,a4,4c8 <strncmp+0x8>
4ec: 40e68533 sub a0,a3,a4
4f0: 00008067 ret
000004f4 <strcmp>:
4f4: fff00613 li a2,-1
4f8: fc9ff06f j 4c0 <strncmp>
000004fc <strlen>:
4fc: 00000793 li a5,0
500: 00f50733 add a4,a0,a5
504: 00074703 lbu a4,0(a4)
508: 00070863 beqz a4,518 <strlen+0x1c>
50c: 00178793 addi a5,a5,1
510: 00f50733 add a4,a0,a5
514: fe0716e3 bnez a4,500 <strlen+0x4>
518: 00078513 mv a0,a5
51c: 00008067 ret
00000520 <memcpy>:
520: 00000793 li a5,0
524: 00c79463 bne a5,a2,52c <memcpy+0xc>
528: 00008067 ret
52c: 00f58733 add a4,a1,a5
530: 00074683 lbu a3,0(a4)
534: 00f50733 add a4,a0,a5
538: 00178793 addi a5,a5,1
53c: 00d70023 sb a3,0(a4)
540: fe5ff06f j 524 <memcpy+0x4>
00000544 <memset>:
544: 00c50633 add a2,a0,a2
548: 00050793 mv a5,a0
54c: 00c79463 bne a5,a2,554 <memset+0x10>
550: 00008067 ret
554: 00178793 addi a5,a5,1
558: feb78fa3 sb a1,-1(a5)
55c: ff1ff06f j 54c <memset+0x8>
00000560 <strtok>:
560: fec10113 addi sp,sp,-20
564: 00812623 sw s0,12(sp)
568: 00050413 mv s0,a0
56c: 00058513 mv a0,a1
570: 00912423 sw s1,8(sp)
574: 00112823 sw ra,16(sp)
578: 00058493 mv s1,a1
57c: f81ff0ef jal ra,4fc <strlen>
580: 00050693 mv a3,a0
584: 00041863 bnez s0,594 <strtok+0x34>
588: 000017b7 lui a5,0x1
58c: 0087a403 lw s0,8(a5) # 1008 <nxt.1629>
590: 04040863 beqz s0,5e0 <strtok+0x80>
594: 00040793 mv a5,s0
598: 0007c703 lbu a4,0(a5)
59c: 00071863 bnez a4,5ac <strtok+0x4c>
5a0: 000017b7 lui a5,0x1
5a4: 0007a423 sw zero,8(a5) # 1008 <nxt.1629>
5a8: 0380006f j 5e0 <strtok+0x80>
5ac: 00068613 mv a2,a3
5b0: 00078513 mv a0,a5
5b4: 00048593 mv a1,s1
5b8: 00d12223 sw a3,4(sp)
5bc: 00f12023 sw a5,0(sp)
5c0: f01ff0ef jal ra,4c0 <strncmp>
5c4: 00012783 lw a5,0(sp)
5c8: 00412683 lw a3,4(sp)
5cc: 00178713 addi a4,a5,1
5d0: 02051463 bnez a0,5f8 <strtok+0x98>
5d4: 00078023 sb zero,0(a5)
5d8: 000017b7 lui a5,0x1
5dc: 00e7a423 sw a4,8(a5) # 1008 <nxt.1629>
5e0: 00040513 mv a0,s0
5e4: 01012083 lw ra,16(sp)
5e8: 00c12403 lw s0,12(sp)
5ec: 00812483 lw s1,8(sp)
5f0: 01410113 addi sp,sp,20
5f4: 00008067 ret
5f8: 00070793 mv a5,a4
5fc: f9dff06f j 598 <strtok+0x38>
00000600 <atoi>:
600: 00000693 li a3,0
604: 00000793 li a5,0
608: 02d00613 li a2,45
60c: 00051c63 bnez a0,624 <atoi+0x24>
610: 02069e63 bnez a3,64c <atoi+0x4c>
614: 00078513 mv a0,a5
618: 00008067 ret
61c: 00100693 li a3,1
620: 0240006f j 644 <atoi+0x44>
624: 00054703 lbu a4,0(a0)
628: fe0704e3 beqz a4,610 <atoi+0x10>
62c: fec708e3 beq a4,a2,61c <atoi+0x1c>
630: 00379593 slli a1,a5,0x3
634: fd070713 addi a4,a4,-48
638: 00b70733 add a4,a4,a1
63c: 00179793 slli a5,a5,0x1
640: 00f707b3 add a5,a4,a5
644: 00150513 addi a0,a0,1
648: fc5ff06f j 60c <atoi+0xc>
64c: 40f007b3 neg a5,a5
650: fc5ff06f j 614 <atoi+0x14>
00000654 <xtoi>:
654: 00050693 mv a3,a0
658: 03900613 li a2,57
65c: 00000513 li a0,0
660: 00068663 beqz a3,66c <xtoi+0x18>
664: 0006c783 lbu a5,0(a3)
668: 00079463 bnez a5,670 <xtoi+0x1c>
66c: 00008067 ret
670: 00451713 slli a4,a0,0x4
674: 00f66a63 bltu a2,a5,688 <xtoi+0x34>
678: fd078793 addi a5,a5,-48
67c: 00e78533 add a0,a5,a4
680: 00168693 addi a3,a3,1
684: fddff06f j 660 <xtoi+0xc>
688: 05f7f793 andi a5,a5,95
68c: fc978793 addi a5,a5,-55
690: fedff06f j 67c <xtoi+0x28>
00000694 <mac>:
694: 857f 0x857f
696: 00c5 addi ra,ra,17
698: 00008067 ret
0000069c <__umulsi3>:
69c: 00050793 mv a5,a0
6a0: 00b57663 bleu a1,a0,6ac <__umulsi3+0x10>
6a4: 00058793 mv a5,a1
6a8: 00050593 mv a1,a0
6ac: 00000513 li a0,0
6b0: 00059463 bnez a1,6b8 <__umulsi3+0x1c>
6b4: 00008067 ret
6b8: 0015f713 andi a4,a1,1
6bc: 00070463 beqz a4,6c4 <__umulsi3+0x28>
6c0: 00f50533 add a0,a0,a5
6c4: 00179793 slli a5,a5,0x1
6c8: 0015d593 srli a1,a1,0x1
6cc: fe5ff06f j 6b0 <__umulsi3+0x14>
000006d0 <__mulsi3>:
6d0: ff410113 addi sp,sp,-12
6d4: 00912023 sw s1,0(sp)
6d8: 00112423 sw ra,8(sp)
6dc: 00812223 sw s0,4(sp)
6e0: 00000493 li s1,0
6e4: 00055663 bgez a0,6f0 <__mulsi3+0x20>
6e8: 40a00533 neg a0,a0
6ec: 00100493 li s1,1
6f0: 00000413 li s0,0
6f4: 0005d663 bgez a1,700 <__mulsi3+0x30>
6f8: 40b005b3 neg a1,a1
6fc: 00100413 li s0,1
700: f9dff0ef jal ra,69c <__umulsi3>
704: 00050793 mv a5,a0
708: 00848463 beq s1,s0,710 <__mulsi3+0x40>
70c: 40a007b3 neg a5,a0
710: 00812083 lw ra,8(sp)
714: 00412403 lw s0,4(sp)
718: 00012483 lw s1,0(sp)
71c: 00078513 mv a0,a5
720: 00c10113 addi sp,sp,12
724: 00008067 ret
00000728 <__udiv_umod_si3>:
728: 00100793 li a5,1
72c: 00059a63 bnez a1,740 <__udiv_umod_si3+0x18>
730: 00058513 mv a0,a1
734: 00008067 ret
738: 00179793 slli a5,a5,0x1
73c: 00159593 slli a1,a1,0x1
740: fea5ece3 bltu a1,a0,738 <__udiv_umod_si3+0x10>
744: 00058713 mv a4,a1
748: 00000593 li a1,0
74c: 00050463 beqz a0,754 <__udiv_umod_si3+0x2c>
750: 00079863 bnez a5,760 <__udiv_umod_si3+0x38>
754: fc061ee3 bnez a2,730 <__udiv_umod_si3+0x8>
758: 00050593 mv a1,a0
75c: fd5ff06f j 730 <__udiv_umod_si3+0x8>
760: 00e56663 bltu a0,a4,76c <__udiv_umod_si3+0x44>
764: 40e50533 sub a0,a0,a4
768: 00f585b3 add a1,a1,a5
76c: 0017d793 srli a5,a5,0x1
770: 00175713 srli a4,a4,0x1
774: fd9ff06f j 74c <__udiv_umod_si3+0x24>
00000778 <__udivsi3>:
778: 00100613 li a2,1
77c: fadff06f j 728 <__udiv_umod_si3>
00000780 <__umodsi3>:
780: 00000613 li a2,0
784: fa5ff06f j 728 <__udiv_umod_si3>
00000788 <__div_mod_si3>:
788: 06058e63 beqz a1,804 <__div_mod_si3+0x7c>
78c: ff010113 addi sp,sp,-16
790: 00812423 sw s0,8(sp)
794: 00112623 sw ra,12(sp)
798: 00912223 sw s1,4(sp)
79c: 00060793 mv a5,a2
7a0: 00000413 li s0,0
7a4: 00055663 bgez a0,7b0 <__div_mod_si3+0x28>
7a8: 40a00533 neg a0,a0
7ac: 00100413 li s0,1
7b0: 00000493 li s1,0
7b4: 0005d663 bgez a1,7c0 <__div_mod_si3+0x38>
7b8: 40b005b3 neg a1,a1
7bc: 00100493 li s1,1
7c0: 00078613 mv a2,a5
7c4: 00f12023 sw a5,0(sp)
7c8: f61ff0ef jal ra,728 <__udiv_umod_si3>
7cc: 00012783 lw a5,0(sp)
7d0: 00050593 mv a1,a0
7d4: 02078263 beqz a5,7f8 <__div_mod_si3+0x70>
7d8: 00940463 beq s0,s1,7e0 <__div_mod_si3+0x58>
7dc: 40a005b3 neg a1,a0
7e0: 00c12083 lw ra,12(sp)
7e4: 00812403 lw s0,8(sp)
7e8: 00412483 lw s1,4(sp)
7ec: 00058513 mv a0,a1
7f0: 01010113 addi sp,sp,16
7f4: 00008067 ret
7f8: fe0404e3 beqz s0,7e0 <__div_mod_si3+0x58>
7fc: 40a005b3 neg a1,a0
800: fe1ff06f j 7e0 <__div_mod_si3+0x58>
804: 00058513 mv a0,a1
808: 00008067 ret
0000080c <__divsi3>:
80c: 00100613 li a2,1
810: f79ff06f j 788 <__div_mod_si3>
00000814 <__modsi3>:
814: 00000613 li a2,0
818: f71ff06f j 788 <__div_mod_si3>
0000081c <usleep>:
81c: 000017b7 lui a5,0x1
820: 0047a703 lw a4,4(a5) # 1004 <threads>
824: 00100793 li a5,1
828: 00e7dc63 ble a4,a5,840 <usleep+0x24>
82c: fff00713 li a4,-1
830: 000017b7 lui a5,0x1
834: fff50513 addi a0,a0,-1
838: 02e51263 bne a0,a4,85c <usleep+0x40>
83c: 00008067 ret
840: 800007b7 lui a5,0x80000
844: fff00693 li a3,-1
848: 00078793 mv a5,a5
84c: f8000613 li a2,-128
850: fff50513 addi a0,a0,-1
854: 00d51c63 bne a0,a3,86c <usleep+0x50>
858: 00008067 ret
85c: 0007a683 lw a3,0(a5) # 80000000 <io+0x0>
860: 0007a603 lw a2,0(a5)
864: fed60ee3 beq a2,a3,860 <usleep+0x44>
868: fcdff06f j 834 <usleep+0x18>
86c: 00c781a3 sb a2,3(a5)
870: 0037c703 lbu a4,3(a5)
874: 0ff77713 andi a4,a4,255
878: fe070ce3 beqz a4,870 <usleep+0x54>
87c: fd5ff06f j 850 <usleep+0x34>
00000880 <banner>:
880: ee010113 addi sp,sp,-288
884: 000015b7 lui a1,0x1
888: 10d00613 li a2,269
88c: 44058593 addi a1,a1,1088 # 1440 <nxt.1629+0x438>
890: 00410513 addi a0,sp,4
894: 10112e23 sw ra,284(sp)
898: 10812c23 sw s0,280(sp)
89c: 10912a23 sw s1,276(sp)
8a0: c81ff0ef jal ra,520 <memcpy>
8a4: 00a00513 li a0,10
8a8: 8e9ff0ef jal ra,190 <putchar>
8ac: 00410413 addi s0,sp,4
8b0: 00044783 lbu a5,0(s0)
8b4: 00079c63 bnez a5,8cc <banner+0x4c>
8b8: 11c12083 lw ra,284(sp)
8bc: 11812403 lw s0,280(sp)
8c0: 11412483 lw s1,276(sp)
8c4: 12010113 addi sp,sp,288
8c8: 00008067 ret
8cc: 00240413 addi s0,s0,2
8d0: fff44483 lbu s1,-1(s0)
8d4: fff48493 addi s1,s1,-1
8d8: fff00713 li a4,-1
8dc: fce48ae3 beq s1,a4,8b0 <banner+0x30>
8e0: 00078513 mv a0,a5
8e4: 00f12023 sw a5,0(sp)
8e8: 8a9ff0ef jal ra,190 <putchar>
8ec: 00012783 lw a5,0(sp)
8f0: fe5ff06f j 8d4 <banner+0x54>
Disassembly of section .text.startup:
000008f4 <main>:
8f4: f8810113 addi sp,sp,-120
8f8: 06812823 sw s0,112(sp)
8fc: 80000437 lui s0,0x80000
900: 00044503 lbu a0,0(s0) # 80000000 <io+0x0>
904: 06112a23 sw ra,116(sp)
908: 06912623 sw s1,108(sp)
90c: f98ff0ef jal ra,a4 <board_name>
910: 00044603 lbu a2,0(s0)
914: 00050593 mv a1,a0
918: 00001537 lui a0,0x1
91c: 17850513 addi a0,a0,376 # 1178 <nxt.1629+0x170>
920: acdff0ef jal ra,3ec <printf>
924: 000015b7 lui a1,0x1
928: 00001537 lui a0,0x1
92c: 18c58593 addi a1,a1,396 # 118c <nxt.1629+0x184>
930: 1ac50513 addi a0,a0,428 # 11ac <nxt.1629+0x1a4>
934: ab9ff0ef jal ra,3ec <printf>
938: 00040793 mv a5,s0
93c: 000014b7 lui s1,0x1
940: 0017c303 lbu t1,1(a5)
944: 0027c283 lbu t0,2(a5)
948: 0044a703 lw a4,4(s1) # 1004 <threads>
94c: 00100793 li a5,1
950: 0ff37313 andi t1,t1,255
954: 0ff2f293 andi t0,t0,255
958: 00040413 mv s0,s0
95c: 18e7c263 blt a5,a4,ae0 <main+0x1ec>
960: 00001737 lui a4,0x1
964: 54c70713 addi a4,a4,1356 # 154c <nxt.1629+0x544>
968: 01000613 li a2,16
96c: 01000593 li a1,16
970: 3e800513 li a0,1000
974: 00e12423 sw a4,8(sp)
978: 00512223 sw t0,4(sp)
97c: 00612023 sw t1,0(sp)
980: d15ff0ef jal ra,694 <mac>
984: 4e800793 li a5,1256
988: 00012303 lw t1,0(sp)
98c: 00412283 lw t0,4(sp)
990: 00812703 lw a4,8(sp)
994: 14f50c63 beq a0,a5,aec <main+0x1f8>
998: 000017b7 lui a5,0x1
99c: 54c78793 addi a5,a5,1356 # 154c <nxt.1629+0x544>
9a0: 000016b7 lui a3,0x1
9a4: 00001537 lui a0,0x1
9a8: 00028613 mv a2,t0
9ac: 00030593 mv a1,t1
9b0: 1cc68693 addi a3,a3,460 # 11cc <nxt.1629+0x1c4>
9b4: 1d450513 addi a0,a0,468 # 11d4 <nxt.1629+0x1cc>
9b8: a35ff0ef jal ra,3ec <printf>
9bc: 0004a223 sw zero,4(s1)
9c0: 00645583 lhu a1,6(s0)
9c4: 00001537 lui a0,0x1
9c8: 1fc50513 addi a0,a0,508 # 11fc <nxt.1629+0x1f4>
9cc: a21ff0ef jal ra,3ec <printf>
9d0: 00144503 lbu a0,1(s0)
9d4: 00244483 lbu s1,2(s0)
9d8: 00c42703 lw a4,12(s0)
9dc: 00c42603 lw a2,12(s0)
9e0: 000f45b7 lui a1,0xf4
9e4: 24058593 addi a1,a1,576 # f4240 <nxt.1629+0xf3238>
9e8: 00c12223 sw a2,4(sp)
9ec: 00e12423 sw a4,8(sp)
9f0: ce1ff0ef jal ra,6d0 <__mulsi3>
9f4: 0ff4f493 andi s1,s1,255
9f8: 000025b7 lui a1,0x2
9fc: 00a12023 sw a0,0(sp)
a00: 71058593 addi a1,a1,1808 # 2710 <nxt.1629+0x1708>
a04: 00048513 mv a0,s1
a08: cc9ff0ef jal ra,6d0 <__mulsi3>
a0c: 00812703 lw a4,8(sp)
a10: 00012783 lw a5,0(sp)
a14: 00170593 addi a1,a4,1
a18: 00a78533 add a0,a5,a0
a1c: d5dff0ef jal ra,778 <__udivsi3>
a20: 00412603 lw a2,4(sp)
a24: 00050593 mv a1,a0
a28: 00001537 lui a0,0x1
a2c: 21850513 addi a0,a0,536 # 1218 <nxt.1629+0x210>
a30: 9bdff0ef jal ra,3ec <printf>
a34: 00a00513 li a0,10
a38: f58ff0ef jal ra,190 <putchar>
a3c: 00001537 lui a0,0x1
a40: 24450513 addi a0,a0,580 # 1244 <nxt.1629+0x23c>
a44: 885ff0ef jal ra,2c8 <puts>
a48: 00a00513 li a0,10
a4c: dd1ff0ef jal ra,81c <usleep>
a50: 000017b7 lui a5,0x1
a54: 25c78513 addi a0,a5,604 # 125c <nxt.1629+0x254>
a58: 995ff0ef jal ra,3ec <printf>
a5c: 04000613 li a2,64
a60: 00000593 li a1,0
a64: 02c10513 addi a0,sp,44
a68: addff0ef jal ra,544 <memset>
a6c: 04000593 li a1,64
a70: 02c10513 addi a0,sp,44
a74: f5cff0ef jal ra,1d0 <gets>
a78: 00000493 li s1,0
a7c: 02c10513 addi a0,sp,44
a80: 00001737 lui a4,0x1
a84: 26070593 addi a1,a4,608 # 1260 <nxt.1629+0x258>
a88: ad9ff0ef jal ra,560 <strtok>
a8c: 06c10713 addi a4,sp,108
a90: 00249793 slli a5,s1,0x2
a94: 00f707b3 add a5,a4,a5
a98: faa7a023 sw a0,-96(a5)
a9c: 00001737 lui a4,0x1
aa0: 00050a63 beqz a0,ab4 <main+0x1c0>
aa4: 00148493 addi s1,s1,1
aa8: 00800793 li a5,8
aac: 00000513 li a0,0
ab0: fcf49ae3 bne s1,a5,a84 <main+0x190>
ab4: 00c12483 lw s1,12(sp)
ab8: f8048ce3 beqz s1,a50 <main+0x15c>
abc: 000015b7 lui a1,0x1
ac0: 26458593 addi a1,a1,612 # 1264 <nxt.1629+0x25c>
ac4: 00048513 mv a0,s1
ac8: a2dff0ef jal ra,4f4 <strcmp>
acc: 02051663 bnez a0,af8 <main+0x204>
ad0: 00001537 lui a0,0x1
ad4: 26c50513 addi a0,a0,620 # 126c <nxt.1629+0x264>
ad8: 915ff0ef jal ra,3ec <printf>
adc: f75ff06f j a50 <main+0x15c>
ae0: 00001737 lui a4,0x1
ae4: 16c70713 addi a4,a4,364 # 116c <nxt.1629+0x164>
ae8: e81ff06f j 968 <main+0x74>
aec: 000017b7 lui a5,0x1
af0: 17078793 addi a5,a5,368 # 1170 <nxt.1629+0x168>
af4: eadff06f j 9a0 <main+0xac>
af8: 000015b7 lui a1,0x1
afc: 27458593 addi a1,a1,628 # 1274 <nxt.1629+0x26c>
b00: 00048513 mv a0,s1
b04: 9f1ff0ef jal ra,4f4 <strcmp>
b08: 2c050263 beqz a0,dcc <main+0x4d8>
b0c: 000015b7 lui a1,0x1
b10: 2a058593 addi a1,a1,672 # 12a0 <nxt.1629+0x298>
b14: 00048513 mv a0,s1
b18: 9ddff0ef jal ra,4f4 <strcmp>
b1c: 0a051863 bnez a0,bcc <main+0x2d8>
b20: 01012483 lw s1,16(sp)
b24: 00048863 beqz s1,b34 <main+0x240>
b28: 00048513 mv a0,s1
b2c: b29ff0ef jal ra,654 <xtoi>
b30: 00050493 mv s1,a0
b34: 10048793 addi a5,s1,256
b38: 00f12023 sw a5,0(sp)
b3c: 000017b7 lui a5,0x1
b40: 00048593 mv a1,s1
b44: 2a878513 addi a0,a5,680 # 12a8 <nxt.1629+0x2a0>
b48: 8a5ff0ef jal ra,3ec <printf>
b4c: 00000713 li a4,0
b50: 00001637 lui a2,0x1
b54: 00e486b3 add a3,s1,a4
b58: 0006c583 lbu a1,0(a3)
b5c: 2b060513 addi a0,a2,688 # 12b0 <nxt.1629+0x2a8>
b60: 00e12223 sw a4,4(sp)
b64: 889ff0ef jal ra,3ec <printf>
b68: 00412703 lw a4,4(sp)
b6c: 01000693 li a3,16
b70: 00001637 lui a2,0x1
b74: 00170713 addi a4,a4,1
b78: fcd71ee3 bne a4,a3,b54 <main+0x260>
b7c: 00000713 li a4,0
b80: 00e486b3 add a3,s1,a4
b84: 0006c503 lbu a0,0(a3)
b88: 05e00613 li a2,94
b8c: fe050693 addi a3,a0,-32
b90: 0ff6f693 andi a3,a3,255
b94: 00d67463 bleu a3,a2,b9c <main+0x2a8>
b98: 02e00513 li a0,46
b9c: 00e12223 sw a4,4(sp)
ba0: df0ff0ef jal ra,190 <putchar>
ba4: 00412703 lw a4,4(sp)
ba8: 01000693 li a3,16
bac: 00170713 addi a4,a4,1
bb0: fcd718e3 bne a4,a3,b80 <main+0x28c>
bb4: 00a00513 li a0,10
bb8: dd8ff0ef jal ra,190 <putchar>
bbc: 00012783 lw a5,0(sp)
bc0: 01048493 addi s1,s1,16
bc4: f6f49ce3 bne s1,a5,b3c <main+0x248>
bc8: e89ff06f j a50 <main+0x15c>
bcc: 000015b7 lui a1,0x1
bd0: 2b458593 addi a1,a1,692 # 12b4 <nxt.1629+0x2ac>
bd4: 00048513 mv a0,s1
bd8: 91dff0ef jal ra,4f4 <strcmp>
bdc: 02051863 bnez a0,c0c <main+0x318>
be0: 01012503 lw a0,16(sp)
be4: 00050a63 beqz a0,bf8 <main+0x304>
be8: a6dff0ef jal ra,654 <xtoi>
bec: 01051513 slli a0,a0,0x10
bf0: 01055513 srli a0,a0,0x10
bf4: 00a41423 sh a0,8(s0)
bf8: 00845583 lhu a1,8(s0)
bfc: 00001537 lui a0,0x1
c00: 2b850513 addi a0,a0,696 # 12b8 <nxt.1629+0x2b0>
c04: fe8ff0ef jal ra,3ec <printf>
c08: e49ff06f j a50 <main+0x15c>
c0c: 000015b7 lui a1,0x1
c10: 2c458593 addi a1,a1,708 # 12c4 <nxt.1629+0x2bc>
c14: 00048513 mv a0,s1
c18: 8ddff0ef jal ra,4f4 <strcmp>
c1c: 02051263 bnez a0,c40 <main+0x34c>
c20: 01012503 lw a0,16(sp)
c24: 00050663 beqz a0,c30 <main+0x33c>
c28: 9d9ff0ef jal ra,600 <atoi>
c2c: 00a42623 sw a0,12(s0)
c30: 00001537 lui a0,0x1
c34: 00c42583 lw a1,12(s0)
c38: 2cc50513 addi a0,a0,716 # 12cc <nxt.1629+0x2c4>
c3c: fc9ff06f j c04 <main+0x310>
c40: 000015b7 lui a1,0x1
c44: 2d858593 addi a1,a1,728 # 12d8 <nxt.1629+0x2d0>
c48: 00048513 mv a0,s1
c4c: 8a9ff0ef jal ra,4f4 <strcmp>
c50: 02051663 bnez a0,c7c <main+0x388>
c54: 01012503 lw a0,16(sp)
c58: 00050a63 beqz a0,c6c <main+0x378>
c5c: 9f9ff0ef jal ra,654 <xtoi>
c60: 01051513 slli a0,a0,0x10
c64: 01055513 srli a0,a0,0x10
c68: 00a41523 sh a0,10(s0)
c6c: 00001537 lui a0,0x1
c70: 00a45583 lhu a1,10(s0)
c74: 2e050513 addi a0,a0,736 # 12e0 <nxt.1629+0x2d8>
c78: f8dff06f j c04 <main+0x310>
c7c: 000015b7 lui a1,0x1
c80: 2ec58593 addi a1,a1,748 # 12ec <nxt.1629+0x2e4>
c84: 00048513 mv a0,s1
c88: 86dff0ef jal ra,4f4 <strcmp>
c8c: 02051a63 bnez a0,cc0 <main+0x3cc>
c90: 01012503 lw a0,16(sp)
c94: 96dff0ef jal ra,600 <atoi>
c98: 00050493 mv s1,a0
c9c: 01412503 lw a0,20(sp)
ca0: 961ff0ef jal ra,600 <atoi>
ca4: 00050593 mv a1,a0
ca8: 00048513 mv a0,s1
cac: a25ff0ef jal ra,6d0 <__mulsi3>
cb0: 00050593 mv a1,a0
cb4: 00001537 lui a0,0x1
cb8: 2f050513 addi a0,a0,752 # 12f0 <nxt.1629+0x2e8>
cbc: f49ff06f j c04 <main+0x310>
cc0: 000015b7 lui a1,0x1
cc4: 2fc58593 addi a1,a1,764 # 12fc <nxt.1629+0x2f4>
cc8: 00048513 mv a0,s1
ccc: 829ff0ef jal ra,4f4 <strcmp>
cd0: 04051a63 bnez a0,d24 <main+0x430>
cd4: 01012503 lw a0,16(sp)
cd8: 929ff0ef jal ra,600 <atoi>
cdc: 00050493 mv s1,a0
ce0: 01412503 lw a0,20(sp)
ce4: 91dff0ef jal ra,600 <atoi>
ce8: 00050593 mv a1,a0
cec: 00a12223 sw a0,4(sp)
cf0: 00048513 mv a0,s1
cf4: b21ff0ef jal ra,814 <__modsi3>
cf8: 00412783 lw a5,4(sp)
cfc: 00a12023 sw a0,0(sp)
d00: 00048513 mv a0,s1
d04: 00078593 mv a1,a5
d08: b05ff0ef jal ra,80c <__divsi3>
d0c: 00012603 lw a2,0(sp)
d10: 00050593 mv a1,a0
d14: 00001537 lui a0,0x1
d18: 30050513 addi a0,a0,768 # 1300 <nxt.1629+0x2f8>
d1c: ed0ff0ef jal ra,3ec <printf>
d20: d31ff06f j a50 <main+0x15c>
d24: 000015b7 lui a1,0x1
d28: 31458593 addi a1,a1,788 # 1314 <nxt.1629+0x30c>
d2c: 00048513 mv a0,s1
d30: fc4ff0ef jal ra,4f4 <strcmp>
d34: 04051863 bnez a0,d84 <main+0x490>
d38: 01012503 lw a0,16(sp)
d3c: 8c5ff0ef jal ra,600 <atoi>
d40: 00050493 mv s1,a0
d44: 01412503 lw a0,20(sp)
d48: 8b9ff0ef jal ra,600 <atoi>
d4c: 00a12023 sw a0,0(sp)
d50: 01812503 lw a0,24(sp)
d54: 8adff0ef jal ra,600 <atoi>
d58: 00012583 lw a1,0(sp)
d5c: 01051613 slli a2,a0,0x10
d60: 41065613 srai a2,a2,0x10
d64: 01059593 slli a1,a1,0x10
d68: 4105d593 srai a1,a1,0x10
d6c: 00048513 mv a0,s1
d70: 925ff0ef jal ra,694 <mac>
d74: 00050593 mv a1,a0
d78: 00001537 lui a0,0x1
d7c: 31850513 addi a0,a0,792 # 1318 <nxt.1629+0x310>
d80: e85ff06f j c04 <main+0x310>
d84: 000015b7 lui a1,0x1
d88: 32458593 addi a1,a1,804 # 1324 <nxt.1629+0x31c>
d8c: 00048513 mv a0,s1
d90: f64ff0ef jal ra,4f4 <strcmp>
d94: 02051063 bnez a0,db4 <main+0x4c0>
d98: 01012503 lw a0,16(sp)
d9c: 8b9ff0ef jal ra,654 <xtoi>
da0: 00050593 mv a1,a0
da4: 40155613 srai a2,a0,0x1
da8: 00001537 lui a0,0x1
dac: 32c50513 addi a0,a0,812 # 132c <nxt.1629+0x324>
db0: f6dff06f j d1c <main+0x428>
db4: 0004c783 lbu a5,0(s1)
db8: c8078ce3 beqz a5,a50 <main+0x15c>
dbc: 00001537 lui a0,0x1
dc0: 00048593 mv a1,s1
dc4: 34050513 addi a0,a0,832 # 1340 <nxt.1629+0x338>
dc8: e3dff06f j c04 <main+0x310>
dcc: 00001537 lui a0,0x1
dd0: 27c50513 addi a0,a0,636 # 127c <nxt.1629+0x274>
dd4: e18ff0ef jal ra,3ec <printf>
dd8: 000f4437 lui s0,0xf4
ddc: 24040513 addi a0,s0,576 # f4240 <nxt.1629+0xf3238>
de0: a3dff0ef jal ra,81c <usleep>
de4: 02e00513 li a0,46
de8: ba8ff0ef jal ra,190 <putchar>
dec: 24040513 addi a0,s0,576
df0: a2dff0ef jal ra,81c <usleep>
df4: 02e00513 li a0,46
df8: b98ff0ef jal ra,190 <putchar>
dfc: 24040513 addi a0,s0,576
e00: a1dff0ef jal ra,81c <usleep>
e04: 02e00513 li a0,46
e08: b88ff0ef jal ra,190 <putchar>
e0c: 00001537 lui a0,0x1
e10: 29850513 addi a0,a0,664 # 1298 <nxt.1629+0x290>
e14: cb4ff0ef jal ra,2c8 <puts>
e18: 07412083 lw ra,116(sp)
e1c: 07012403 lw s0,112(sp)
e20: 06c12483 lw s1,108(sp)
e24: 00000513 li a0,0
e28: 07810113 addi sp,sp,120
e2c: 00008067 ret
Go to most recent revision | Compare with Previous | Blame | View Log