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: 3c1d001f lui sp,0x1f |
---|
11 | bfc0000c: 37bdfff0 ori sp,sp,0xfff0 |
---|
12 | bfc00010: 40806800 mtc0 zero,c0_cause |
---|
13 | bfc00014: 3c040000 lui a0,0x0 |
---|
14 | bfc00018: 24844000 addiu a0,a0,16384 |
---|
15 | bfc0001c: 00042342 srl a0,a0,0xd |
---|
16 | bfc00020: 48840000 mtc2 a0,$0 |
---|
17 | ... |
---|
18 | bfc0002c: 2404000f li a0,15 |
---|
19 | bfc00030: 48840800 mtc2 a0,$1 |
---|
20 | bfc00034: 3c04bfc0 lui a0,0xbfc0 |
---|
21 | bfc00038: 2484024c addiu a0,a0,588 |
---|
22 | bfc0003c: 0ff000e4 jal bfc00390 <print> |
---|
23 | bfc00040: 00000000 nop |
---|
24 | bfc00044: 3c08d820 lui t0,0xd820 |
---|
25 | bfc00048: 8d040180 lw a0,384(t0) |
---|
26 | bfc0004c: 24040001 li a0,1 |
---|
27 | bfc00050: ad040280 sw a0,640(t0) |
---|
28 | bfc00054: 3410beef li s0,0xbeef |
---|
29 | bfc00058: 2404049c li a0,1180 |
---|
30 | bfc0005c: ad040080 sw a0,128(t0) |
---|
31 | bfc00060: 8d040180 lw a0,384(t0) |
---|
32 | bfc00064: 3c040040 lui a0,0x40 |
---|
33 | bfc00068: 24840401 addiu a0,a0,1025 |
---|
34 | bfc0006c: 40846000 mtc0 a0,c0_status |
---|
35 | ... |
---|
36 | bfc00088: 00002821 move a1,zero |
---|
37 | bfc0008c: 3c108000 lui s0,0x8000 |
---|
38 | bfc00090: 0200f809 jalr s0 |
---|
39 | bfc00094: 00000000 nop |
---|
40 | bfc00098: 0bf0002c j bfc000b0 <end> |
---|
41 | bfc0009c: 00000000 nop |
---|
42 | bfc000a0: 24040001 li a0,1 |
---|
43 | bfc000a4: af640000 sw a0,0(k1) |
---|
44 | bfc000a8: 0bf0002a j bfc000a8 <_start+0xa8> |
---|
45 | bfc000ac: 00000000 nop |
---|
46 | |
---|
47 | bfc000b0 <end>: |
---|
48 | bfc000b0: 3c04bfc0 lui a0,0xbfc0 |
---|
49 | bfc000b4: 24840253 addiu a0,a0,595 |
---|
50 | bfc000b8: 0ff000e4 jal bfc00390 <print> |
---|
51 | bfc000bc: 00000000 nop |
---|
52 | bfc000c0: 00a02021 move a0,a1 |
---|
53 | bfc000c4: 0ff000ee jal bfc003b8 <printx> |
---|
54 | bfc000c8: 00000000 nop |
---|
55 | bfc000cc: 24040020 li a0,32 |
---|
56 | bfc000d0: a3440000 sb a0,0(k0) |
---|
57 | bfc000d4: 3c040000 lui a0,0x0 |
---|
58 | bfc000d8: 24840000 addiu a0,a0,0 |
---|
59 | bfc000dc: 8c840000 lw a0,0(a0) |
---|
60 | bfc000e0: 0ff000ee jal bfc003b8 <printx> |
---|
61 | bfc000e4: 00000000 nop |
---|
62 | bfc000e8: 2404000a li a0,10 |
---|
63 | bfc000ec: a3440000 sb a0,0(k0) |
---|
64 | bfc000f0: 24040000 li a0,0 |
---|
65 | bfc000f4: af640000 sw a0,0(k1) |
---|
66 | bfc000f8: 0bf0003e j bfc000f8 <end+0x48> |
---|
67 | bfc000fc: 00000000 nop |
---|
68 | |
---|
69 | bfc00100 <excep>: |
---|
70 | bfc00100: 27bdfff8 addiu sp,sp,-8 |
---|
71 | bfc00104: afa40004 sw a0,4(sp) |
---|
72 | bfc00108: afbf0008 sw ra,8(sp) |
---|
73 | bfc0010c: 3c04bfc0 lui a0,0xbfc0 |
---|
74 | bfc00110: 24840228 addiu a0,a0,552 |
---|
75 | bfc00114: 0ff000e4 jal bfc00390 <print> |
---|
76 | bfc00118: 00000000 nop |
---|
77 | bfc0011c: 40046000 mfc0 a0,c0_status |
---|
78 | bfc00120: 0ff000ee jal bfc003b8 <printx> |
---|
79 | bfc00124: 00000000 nop |
---|
80 | bfc00128: 3c04bfc0 lui a0,0xbfc0 |
---|
81 | bfc0012c: 24840230 addiu a0,a0,560 |
---|
82 | bfc00130: 0ff000e4 jal bfc00390 <print> |
---|
83 | bfc00134: 00000000 nop |
---|
84 | bfc00138: 40046800 mfc0 a0,c0_cause |
---|
85 | bfc0013c: 00808021 move s0,a0 |
---|
86 | bfc00140: 0ff000ee jal bfc003b8 <printx> |
---|
87 | bfc00144: 00000000 nop |
---|
88 | bfc00148: 3c04bfc0 lui a0,0xbfc0 |
---|
89 | bfc0014c: 24840238 addiu a0,a0,568 |
---|
90 | bfc00150: 0ff000e4 jal bfc00390 <print> |
---|
91 | bfc00154: 00000000 nop |
---|
92 | bfc00158: 40047000 mfc0 a0,c0_epc |
---|
93 | bfc0015c: 0ff000ee jal bfc003b8 <printx> |
---|
94 | bfc00160: 00000000 nop |
---|
95 | bfc00164: 3c04bfc0 lui a0,0xbfc0 |
---|
96 | bfc00168: 2484023d addiu a0,a0,573 |
---|
97 | bfc0016c: 0ff000e4 jal bfc00390 <print> |
---|
98 | bfc00170: 00000000 nop |
---|
99 | bfc00174: 40044000 mfc0 a0,c0_badvaddr |
---|
100 | bfc00178: 0ff000ee jal bfc003b8 <printx> |
---|
101 | bfc0017c: 00000000 nop |
---|
102 | bfc00180: 3c04bfc0 lui a0,0xbfc0 |
---|
103 | bfc00184: 24840245 addiu a0,a0,581 |
---|
104 | bfc00188: 0ff000e4 jal bfc00390 <print> |
---|
105 | bfc0018c: 00000000 nop |
---|
106 | bfc00190: 3c08d820 lui t0,0xd820 |
---|
107 | bfc00194: 8d040780 lw a0,1920(t0) |
---|
108 | bfc00198: 0ff000ee jal bfc003b8 <printx> |
---|
109 | bfc0019c: 00000000 nop |
---|
110 | bfc001a0: 2404000a li a0,10 |
---|
111 | bfc001a4: a3440000 sb a0,0(k0) |
---|
112 | bfc001a8: 3c080000 lui t0,0x0 |
---|
113 | bfc001ac: 25082000 addiu t0,t0,8192 |
---|
114 | bfc001b0: 3c04000b lui a0,0xb |
---|
115 | bfc001b4: 3484fc01 ori a0,a0,0xfc01 |
---|
116 | bfc001b8: ad040004 sw a0,4(t0) |
---|
117 | bfc001bc: 3c048a00 lui a0,0x8a00 |
---|
118 | bfc001c0: ad040000 sw a0,0(t0) |
---|
119 | bfc001c4: 48801800 mtc2 zero,$3 |
---|
120 | bfc001c8: 3204ff00 andi a0,s0,0xff00 |
---|
121 | bfc001cc: 10800003 beqz a0,bfc001dc <notintr> |
---|
122 | bfc001d0: 00000000 nop |
---|
123 | bfc001d4: 3c08d820 lui t0,0xd820 |
---|
124 | bfc001d8: ad000080 sw zero,128(t0) |
---|
125 | |
---|
126 | bfc001dc <notintr>: |
---|
127 | bfc001dc: 3c050000 lui a1,0x0 |
---|
128 | bfc001e0: 24a50000 addiu a1,a1,0 |
---|
129 | bfc001e4: 24a40000 addiu a0,a1,0 |
---|
130 | bfc001e8: 10800005 beqz a0,bfc00200 <noex> |
---|
131 | bfc001ec: 00000000 nop |
---|
132 | bfc001f0: 24040002 li a0,2 |
---|
133 | bfc001f4: af640000 sw a0,0(k1) |
---|
134 | bfc001f8: 0bf0007e j bfc001f8 <notintr+0x1c> |
---|
135 | bfc001fc: 00000000 nop |
---|
136 | |
---|
137 | bfc00200 <noex>: |
---|
138 | bfc00200: 24040001 li a0,1 |
---|
139 | bfc00204: aca40000 sw a0,0(a1) |
---|
140 | bfc00208: 8fa40004 lw a0,4(sp) |
---|
141 | bfc0020c: 8fbf0008 lw ra,8(sp) |
---|
142 | bfc00210: 27bd0008 addiu sp,sp,8 |
---|
143 | bfc00214: 42000018 eret |
---|
144 | bfc00218: 24040001 li a0,1 |
---|
145 | bfc0021c: af640000 sw a0,0(k1) |
---|
146 | bfc00220: 0bf00088 j bfc00220 <noex+0x20> |
---|
147 | bfc00224: 00000000 nop |
---|
148 | |
---|
149 | bfc00228 <statusstr>: |
---|
150 | bfc00228: 74617473 jalx b185d1cc <_stack+0xb145d1dc> |
---|
151 | bfc0022c: 00207375 0x207375 |
---|
152 | |
---|
153 | bfc00230 <causestr>: |
---|
154 | bfc00230: 75616320 jalx b5858c80 <_stack+0xb5458c90> |
---|
155 | bfc00234: 00206573 tltu at,zero,0x195 |
---|
156 | |
---|
157 | bfc00238 <pcstr>: |
---|
158 | bfc00238: 20637020 addi v1,v1,28704 |
---|
159 | ... |
---|
160 | |
---|
161 | bfc0023d <badvastr>: |
---|
162 | bfc0023d: 6220 sw ra,128(sp) |
---|
163 | bfc0023f: 6461 restore 8,ra,s0 |
---|
164 | bfc00241: 6176 btnez bfc0032f <endstr+0xdc> |
---|
165 | bfc00243: 0020 addiu s0,sp,128 |
---|
166 | |
---|
167 | bfc00245 <xicustr>: |
---|
168 | bfc00245: 7820 sd s1,0(s0) |
---|
169 | bfc00247: 6369 addiu sp,840 |
---|
170 | bfc00249: 2075 beqz s0,bfc00335 <endstr+0xe2> |
---|
171 | ... |
---|
172 | |
---|
173 | bfc0024c <startstr>: |
---|
174 | bfc0024c: 72617473 0x72617473 |
---|
175 | bfc00250: 65000a74 0x65000a74 |
---|
176 | |
---|
177 | bfc00253 <endstr>: |
---|
178 | bfc00253: 6e65 li a2,101 |
---|
179 | bfc00255: 2064 beqz s0,bfc0031f <endstr+0xcc> |
---|
180 | ... |
---|
181 | |
---|
182 | bfc00380 <evect>: |
---|
183 | bfc00380: 0bf00040 j bfc00100 <excep> |
---|
184 | bfc00384: 00000000 nop |
---|
185 | ... |
---|
186 | |
---|
187 | bfc00390 <print>: |
---|
188 | bfc00390: 00804021 move t0,a0 |
---|
189 | bfc00394: 81090000 lb t1,0(t0) |
---|
190 | bfc00398: 11200005 beqz t1,bfc003b0 <end> |
---|
191 | bfc0039c: 00000000 nop |
---|
192 | bfc003a0: a3490000 sb t1,0(k0) |
---|
193 | bfc003a4: 25080001 addiu t0,t0,1 |
---|
194 | bfc003a8: 0bf000e5 j bfc00394 <print+0x4> |
---|
195 | bfc003ac: 00000000 nop |
---|
196 | |
---|
197 | bfc003b0 <end>: |
---|
198 | bfc003b0: 03e00008 jr ra |
---|
199 | bfc003b4: 00000000 nop |
---|
200 | |
---|
201 | bfc003b8 <printx>: |
---|
202 | bfc003b8: 00804021 move t0,a0 |
---|
203 | bfc003bc: 24090030 li t1,48 |
---|
204 | bfc003c0: a3490000 sb t1,0(k0) |
---|
205 | bfc003c4: 24090078 li t1,120 |
---|
206 | bfc003c8: a3490000 sb t1,0(k0) |
---|
207 | bfc003cc: 24090008 li t1,8 |
---|
208 | bfc003d0: 3c0af000 lui t2,0xf000 |
---|
209 | bfc003d4: 010a5024 and t2,t0,t2 |
---|
210 | bfc003d8: 000a5702 srl t2,t2,0x1c |
---|
211 | bfc003dc: 294b000a slti t3,t2,10 |
---|
212 | bfc003e0: 11600004 beqz t3,bfc003f4 <printx+0x3c> |
---|
213 | bfc003e4: 00000000 nop |
---|
214 | bfc003e8: 214a0030 addi t2,t2,48 |
---|
215 | bfc003ec: 0bf000fe j bfc003f8 <printx+0x40> |
---|
216 | bfc003f0: 00000000 nop |
---|
217 | bfc003f4: 214a0037 addi t2,t2,55 |
---|
218 | bfc003f8: a34a0000 sb t2,0(k0) |
---|
219 | bfc003fc: 2129ffff addi t1,t1,-1 |
---|
220 | bfc00400: 1d20fff3 bgtz t1,bfc003d0 <printx+0x18> |
---|
221 | bfc00404: 00084100 sll t0,t0,0x4 |
---|
222 | bfc00408: 03e00008 jr ra |
---|
223 | bfc0040c: 00000000 nop |
---|
224 | ... |
---|
225 | |
---|
226 | bfc01000 <doload>: |
---|
227 | bfc01000: 3c100000 lui s0,0x0 |
---|
228 | bfc01004: 26100004 addiu s0,s0,4 |
---|
229 | bfc01008: 03e00008 jr ra |
---|
230 | bfc0100c: 8e050000 lw a1,0(s0) |
---|
231 | bfc01010: 24040001 li a0,1 |
---|
232 | bfc01014: af640000 sw a0,0(k1) |
---|
233 | bfc01018: 0bf00406 j bfc01018 <doload+0x18> |
---|
234 | bfc0101c: 00000000 nop |
---|
235 | bfc01020: 00000000 nop |
---|
236 | |
---|
237 | Disassembly of section .reginfo: |
---|
238 | |
---|
239 | bfc01024 <.reginfo>: |
---|
240 | bfc01024: bc010130 cache 0x1,304(zero) |
---|
241 | ... |
---|
242 | bfc01038: 00008000 sll s0,zero,0x0 |
---|
243 | |
---|
244 | Disassembly of section .data: |
---|
245 | |
---|
246 | 00000000 <myvar>: |
---|
247 | 0: 00000000 nop |
---|
248 | |
---|
249 | 00000004 <testval>: |
---|
250 | 4: 0000beef 0xbeef |
---|
251 | ... |
---|
252 | |
---|
253 | 00001000 <pte2>: |
---|
254 | 1000: 8a000000 lwl zero,0(s0) |
---|
255 | 1004: 000bfc00 sll ra,t3,0x10 |
---|
256 | ... |
---|
257 | |
---|
258 | 00002000 <pte22>: |
---|
259 | ... |
---|
260 | |
---|
261 | 00004000 <pte1>: |
---|
262 | 4000: 8c000000 lw zero,0(zero) |
---|
263 | ... |
---|
264 | 5000: c0000002 ll zero,2(zero) |
---|
265 | ... |
---|
266 | 57f8: c0000001 ll zero,1(zero) |
---|
267 | ... |
---|
268 | 5a04: 84000681 lh zero,1665(zero) |
---|
269 | ... |
---|
270 | 5b04: 840006c1 lh zero,1729(zero) |
---|
271 | ... |
---|
272 | 5c00: 84000700 lh zero,1792(zero) |
---|
273 | ... |
---|