1 | |
---|
2 | test.elf: file format elf32-littlemips |
---|
3 | |
---|
4 | |
---|
5 | Disassembly of section .text: |
---|
6 | |
---|
7 | bfc00000 <_start>: |
---|
8 | bfc00000: 3c1ad020 lui k0,0xd020 |
---|
9 | bfc00004: 3c1be000 lui k1,0xe000 |
---|
10 | bfc00008: 3c1d003f lui sp,0x3f |
---|
11 | bfc0000c: 37bdfff0 ori sp,sp,0xfff0 |
---|
12 | bfc00010: 3c04bfc0 lui a0,0xbfc0 |
---|
13 | bfc00014: 24840155 addiu a0,a0,341 |
---|
14 | bfc00018: 0ff000e4 jal bfc00390 <print> |
---|
15 | bfc0001c: 00000000 nop |
---|
16 | bfc00020: 3c042040 lui a0,0x2040 |
---|
17 | bfc00024: 40846000 mtc0 a0,c0_status |
---|
18 | bfc00028: 3c040000 lui a0,0x0 |
---|
19 | bfc0002c: 24840008 addiu a0,a0,8 |
---|
20 | bfc00030: c4820000 lwc1 $f2,0(a0) |
---|
21 | bfc00034: 3c040000 lui a0,0x0 |
---|
22 | bfc00038: 2484000c addiu a0,a0,12 |
---|
23 | bfc0003c: c4800000 lwc1 $f0,0(a0) |
---|
24 | bfc00040: 0bf00016 j bfc00058 <exit> |
---|
25 | bfc00044: 46020003 div.s $f0,$f0,$f2 |
---|
26 | bfc00048: 24040002 li a0,2 |
---|
27 | bfc0004c: af640000 sw a0,0(k1) |
---|
28 | bfc00050: 0bf00014 j bfc00050 <_start+0x50> |
---|
29 | bfc00054: 00000000 nop |
---|
30 | |
---|
31 | bfc00058 <exit>: |
---|
32 | bfc00058: 00402021 move a0,v0 |
---|
33 | bfc0005c: 0ff000ee jal bfc003b8 <printx> |
---|
34 | bfc00060: 00000000 nop |
---|
35 | bfc00064: 24040020 li a0,32 |
---|
36 | bfc00068: a3440000 sb a0,0(k0) |
---|
37 | bfc0006c: 00602021 move a0,v1 |
---|
38 | bfc00070: 0ff000ee jal bfc003b8 <printx> |
---|
39 | bfc00074: 00000000 nop |
---|
40 | bfc00078: 2404000a li a0,10 |
---|
41 | bfc0007c: a3440000 sb a0,0(k0) |
---|
42 | bfc00080: 24040000 li a0,0 |
---|
43 | bfc00084: af640000 sw a0,0(k1) |
---|
44 | bfc00088: 0bf00022 j bfc00088 <exit+0x30> |
---|
45 | bfc0008c: 00000000 nop |
---|
46 | |
---|
47 | bfc00090 <excep>: |
---|
48 | bfc00090: 3c04bfc0 lui a0,0xbfc0 |
---|
49 | bfc00094: 24840138 addiu a0,a0,312 |
---|
50 | bfc00098: 0ff000e4 jal bfc00390 <print> |
---|
51 | bfc0009c: 00000000 nop |
---|
52 | bfc000a0: 40046000 mfc0 a0,c0_status |
---|
53 | bfc000a4: 0ff000ee jal bfc003b8 <printx> |
---|
54 | bfc000a8: 00000000 nop |
---|
55 | bfc000ac: 3c04bfc0 lui a0,0xbfc0 |
---|
56 | bfc000b0: 24840140 addiu a0,a0,320 |
---|
57 | bfc000b4: 0ff000e4 jal bfc00390 <print> |
---|
58 | bfc000b8: 00000000 nop |
---|
59 | bfc000bc: 40046800 mfc0 a0,c0_cause |
---|
60 | bfc000c0: 0ff000ee jal bfc003b8 <printx> |
---|
61 | bfc000c4: 00000000 nop |
---|
62 | bfc000c8: 3c04bfc0 lui a0,0xbfc0 |
---|
63 | bfc000cc: 24840148 addiu a0,a0,328 |
---|
64 | bfc000d0: 0ff000e4 jal bfc00390 <print> |
---|
65 | bfc000d4: 00000000 nop |
---|
66 | bfc000d8: 40047000 mfc0 a0,c0_epc |
---|
67 | bfc000dc: 0ff000ee jal bfc003b8 <printx> |
---|
68 | bfc000e0: 00000000 nop |
---|
69 | bfc000e4: 3c04bfc0 lui a0,0xbfc0 |
---|
70 | bfc000e8: 2484014d addiu a0,a0,333 |
---|
71 | bfc000ec: 0ff000e4 jal bfc00390 <print> |
---|
72 | bfc000f0: 00000000 nop |
---|
73 | bfc000f4: 40044000 mfc0 a0,c0_badvaddr |
---|
74 | bfc000f8: 0ff000ee jal bfc003b8 <printx> |
---|
75 | bfc000fc: 00000000 nop |
---|
76 | bfc00100: 2404000a li a0,10 |
---|
77 | bfc00104: a3440000 sb a0,0(k0) |
---|
78 | bfc00108: 3c04bfc0 lui a0,0xbfc0 |
---|
79 | bfc0010c: 24840058 addiu a0,a0,88 |
---|
80 | bfc00110: 40847000 mtc0 a0,c0_epc |
---|
81 | bfc00114: 3402dead li v0,0xdead |
---|
82 | bfc00118: 3403beef li v1,0xbeef |
---|
83 | bfc0011c: 24070001 li a3,1 |
---|
84 | bfc00120: 42000018 eret |
---|
85 | bfc00124: 00000000 nop |
---|
86 | bfc00128: 24040001 li a0,1 |
---|
87 | bfc0012c: af640000 sw a0,0(k1) |
---|
88 | bfc00130: 0bf0004c j bfc00130 <excep+0xa0> |
---|
89 | bfc00134: 00000000 nop |
---|
90 | |
---|
91 | bfc00138 <statusstr>: |
---|
92 | bfc00138: 74617473 jalx b185d1cc <_stack+0xb145d1dc> |
---|
93 | bfc0013c: 00207375 0x207375 |
---|
94 | |
---|
95 | bfc00140 <causestr>: |
---|
96 | bfc00140: 75616320 jalx b5858c80 <_stack+0xb5458c90> |
---|
97 | bfc00144: 00206573 tltu at,zero,0x195 |
---|
98 | |
---|
99 | bfc00148 <pcstr>: |
---|
100 | bfc00148: 20637020 addi v1,v1,28704 |
---|
101 | ... |
---|
102 | |
---|
103 | bfc0014d <badvastr>: |
---|
104 | bfc0014d: 6220 sw ra,128(sp) |
---|
105 | bfc0014f: 6461 restore 8,ra,s0 |
---|
106 | bfc00151: 6176 btnez bfc0023f <usrstr+0xe3> |
---|
107 | bfc00153: 0020 addiu s0,sp,128 |
---|
108 | |
---|
109 | bfc00155 <startstr>: |
---|
110 | bfc00155: 7473 cmpi a0,115 |
---|
111 | bfc00157: 7261 cmpi v0,97 |
---|
112 | bfc00159: 0a74 la v0,bfc00328 <usrstr+0x1cc> |
---|
113 | ... |
---|
114 | |
---|
115 | bfc0015c <usrstr>: |
---|
116 | bfc0015c: 6d727375 0x6d727375 |
---|
117 | bfc00160: 0a65646f j b99591bc <_stack+0xb95591cc> |
---|
118 | bfc00164: 00000000 nop |
---|
119 | ... |
---|
120 | |
---|
121 | bfc00380 <evect>: |
---|
122 | bfc00380: 0bf00024 j bfc00090 <excep> |
---|
123 | bfc00384: 00000000 nop |
---|
124 | ... |
---|
125 | |
---|
126 | bfc00390 <print>: |
---|
127 | bfc00390: 00804021 move t0,a0 |
---|
128 | bfc00394: 81090000 lb t1,0(t0) |
---|
129 | bfc00398: 11200005 beqz t1,bfc003b0 <end> |
---|
130 | bfc0039c: 00000000 nop |
---|
131 | bfc003a0: a3490000 sb t1,0(k0) |
---|
132 | bfc003a4: 25080001 addiu t0,t0,1 |
---|
133 | bfc003a8: 0bf000e5 j bfc00394 <print+0x4> |
---|
134 | bfc003ac: 00000000 nop |
---|
135 | |
---|
136 | bfc003b0 <end>: |
---|
137 | bfc003b0: 03e00008 jr ra |
---|
138 | bfc003b4: 00000000 nop |
---|
139 | |
---|
140 | bfc003b8 <printx>: |
---|
141 | bfc003b8: 00804021 move t0,a0 |
---|
142 | bfc003bc: 24090030 li t1,48 |
---|
143 | bfc003c0: a3490000 sb t1,0(k0) |
---|
144 | bfc003c4: 24090078 li t1,120 |
---|
145 | bfc003c8: a3490000 sb t1,0(k0) |
---|
146 | bfc003cc: 24090008 li t1,8 |
---|
147 | bfc003d0: 3c0af000 lui t2,0xf000 |
---|
148 | bfc003d4: 010a5024 and t2,t0,t2 |
---|
149 | bfc003d8: 000a5702 srl t2,t2,0x1c |
---|
150 | bfc003dc: 294b000a slti t3,t2,10 |
---|
151 | bfc003e0: 11600004 beqz t3,bfc003f4 <printx+0x3c> |
---|
152 | bfc003e4: 00000000 nop |
---|
153 | bfc003e8: 214a0030 addi t2,t2,48 |
---|
154 | bfc003ec: 0bf000fe j bfc003f8 <printx+0x40> |
---|
155 | bfc003f0: 00000000 nop |
---|
156 | bfc003f4: 214a0037 addi t2,t2,55 |
---|
157 | bfc003f8: a34a0000 sb t2,0(k0) |
---|
158 | bfc003fc: 2129ffff addi t1,t1,-1 |
---|
159 | bfc00400: 1d20fff3 bgtz t1,bfc003d0 <printx+0x18> |
---|
160 | bfc00404: 00084100 sll t0,t0,0x4 |
---|
161 | bfc00408: 03e00008 jr ra |
---|
162 | bfc0040c: 00000000 nop |
---|
163 | |
---|
164 | Disassembly of section .reginfo: |
---|
165 | |
---|
166 | bfc00410 <.reginfo>: |
---|
167 | bfc00410: bc00009c cache 0x0,156(zero) |
---|
168 | bfc00414: 00000000 nop |
---|
169 | bfc00418: 00000005 0x5 |
---|
170 | ... |
---|
171 | bfc00424: 00000010 mfhi zero |
---|
172 | |
---|
173 | Disassembly of section .data: |
---|
174 | |
---|
175 | 00000000 <testval-0x4>: |
---|
176 | 0: 0000dead 0xdead |
---|
177 | |
---|
178 | 00000004 <testval>: |
---|
179 | 4: 0000beef 0xbeef |
---|
180 | |
---|
181 | 00000008 <div1>: |
---|
182 | 8: 41200000 0x41200000 |
---|
183 | |
---|
184 | 0000000c <div2>: |
---|
185 | c: 00000000 nop |
---|