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: 24840115 addiu a0,a0,277 |
---|
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: 24040f80 li a0,3968 |
---|
19 | bfc0002c: 44c4f800 ctc1 a0,$31 |
---|
20 | bfc00030: 3c040000 lui a0,0x0 |
---|
21 | bfc00034: 24840008 addiu a0,a0,8 |
---|
22 | bfc00038: c4820000 lwc1 $f2,0(a0) |
---|
23 | bfc0003c: 3c040000 lui a0,0x0 |
---|
24 | bfc00040: 2484000c addiu a0,a0,12 |
---|
25 | bfc00044: c4800000 lwc1 $f0,0(a0) |
---|
26 | bfc00048: 46001003 div.s $f0,$f2,$f0 |
---|
27 | bfc0004c: 4444f800 cfc1 a0,$31 |
---|
28 | bfc00050: 0ff000ee jal bfc003b8 <printx> |
---|
29 | bfc00054: 00000000 nop |
---|
30 | bfc00058: 2404000a li a0,10 |
---|
31 | bfc0005c: a3440000 sb a0,0(k0) |
---|
32 | bfc00060: 24040002 li a0,2 |
---|
33 | bfc00064: af640000 sw a0,0(k1) |
---|
34 | bfc00068: 0bf0001a j bfc00068 <_start+0x68> |
---|
35 | bfc0006c: 00000000 nop |
---|
36 | |
---|
37 | bfc00070 <excep>: |
---|
38 | bfc00070: 3c04bfc0 lui a0,0xbfc0 |
---|
39 | bfc00074: 248400f8 addiu a0,a0,248 |
---|
40 | bfc00078: 0ff000e4 jal bfc00390 <print> |
---|
41 | bfc0007c: 00000000 nop |
---|
42 | bfc00080: 40046000 mfc0 a0,c0_status |
---|
43 | bfc00084: 0ff000ee jal bfc003b8 <printx> |
---|
44 | bfc00088: 00000000 nop |
---|
45 | bfc0008c: 3c04bfc0 lui a0,0xbfc0 |
---|
46 | bfc00090: 24840100 addiu a0,a0,256 |
---|
47 | bfc00094: 0ff000e4 jal bfc00390 <print> |
---|
48 | bfc00098: 00000000 nop |
---|
49 | bfc0009c: 40046800 mfc0 a0,c0_cause |
---|
50 | bfc000a0: 0ff000ee jal bfc003b8 <printx> |
---|
51 | bfc000a4: 00000000 nop |
---|
52 | bfc000a8: 3c04bfc0 lui a0,0xbfc0 |
---|
53 | bfc000ac: 24840108 addiu a0,a0,264 |
---|
54 | bfc000b0: 0ff000e4 jal bfc00390 <print> |
---|
55 | bfc000b4: 00000000 nop |
---|
56 | bfc000b8: 40047000 mfc0 a0,c0_epc |
---|
57 | bfc000bc: 0ff000ee jal bfc003b8 <printx> |
---|
58 | bfc000c0: 00000000 nop |
---|
59 | bfc000c4: 3c04bfc0 lui a0,0xbfc0 |
---|
60 | bfc000c8: 2484010d addiu a0,a0,269 |
---|
61 | bfc000cc: 0ff000e4 jal bfc00390 <print> |
---|
62 | bfc000d0: 00000000 nop |
---|
63 | bfc000d4: 40044000 mfc0 a0,c0_badvaddr |
---|
64 | bfc000d8: 0ff000ee jal bfc003b8 <printx> |
---|
65 | bfc000dc: 00000000 nop |
---|
66 | bfc000e0: 2404000a li a0,10 |
---|
67 | bfc000e4: a3440000 sb a0,0(k0) |
---|
68 | bfc000e8: 24040000 li a0,0 |
---|
69 | bfc000ec: af640000 sw a0,0(k1) |
---|
70 | bfc000f0: 0bf0003c j bfc000f0 <excep+0x80> |
---|
71 | bfc000f4: 00000000 nop |
---|
72 | |
---|
73 | bfc000f8 <statusstr>: |
---|
74 | bfc000f8: 74617473 jalx b185d1cc <_stack+0xb145d1dc> |
---|
75 | bfc000fc: 00207375 0x207375 |
---|
76 | |
---|
77 | bfc00100 <causestr>: |
---|
78 | bfc00100: 75616320 jalx b5858c80 <_stack+0xb5458c90> |
---|
79 | bfc00104: 00206573 tltu at,zero,0x195 |
---|
80 | |
---|
81 | bfc00108 <pcstr>: |
---|
82 | bfc00108: 20637020 addi v1,v1,28704 |
---|
83 | ... |
---|
84 | |
---|
85 | bfc0010d <badvastr>: |
---|
86 | bfc0010d: 6220 sw ra,128(sp) |
---|
87 | bfc0010f: 6461 restore 8,ra,s0 |
---|
88 | bfc00111: 6176 btnez bfc001ff <usrstr+0xe3> |
---|
89 | bfc00113: 0020 addiu s0,sp,128 |
---|
90 | |
---|
91 | bfc00115 <startstr>: |
---|
92 | bfc00115: 7473 cmpi a0,115 |
---|
93 | bfc00117: 7261 cmpi v0,97 |
---|
94 | bfc00119: 0a74 la v0,bfc002e8 <usrstr+0x1cc> |
---|
95 | ... |
---|
96 | |
---|
97 | bfc0011c <usrstr>: |
---|
98 | bfc0011c: 6d727375 0x6d727375 |
---|
99 | bfc00120: 0a65646f j b99591bc <_stack+0xb95591cc> |
---|
100 | bfc00124: 00000000 nop |
---|
101 | ... |
---|
102 | |
---|
103 | bfc00380 <evect>: |
---|
104 | bfc00380: 0bf0001c j bfc00070 <excep> |
---|
105 | bfc00384: 00000000 nop |
---|
106 | ... |
---|
107 | |
---|
108 | bfc00390 <print>: |
---|
109 | bfc00390: 00804021 move t0,a0 |
---|
110 | bfc00394: 81090000 lb t1,0(t0) |
---|
111 | bfc00398: 11200005 beqz t1,bfc003b0 <end> |
---|
112 | bfc0039c: 00000000 nop |
---|
113 | bfc003a0: a3490000 sb t1,0(k0) |
---|
114 | bfc003a4: 25080001 addiu t0,t0,1 |
---|
115 | bfc003a8: 0bf000e5 j bfc00394 <print+0x4> |
---|
116 | bfc003ac: 00000000 nop |
---|
117 | |
---|
118 | bfc003b0 <end>: |
---|
119 | bfc003b0: 03e00008 jr ra |
---|
120 | bfc003b4: 00000000 nop |
---|
121 | |
---|
122 | bfc003b8 <printx>: |
---|
123 | bfc003b8: 00804021 move t0,a0 |
---|
124 | bfc003bc: 24090030 li t1,48 |
---|
125 | bfc003c0: a3490000 sb t1,0(k0) |
---|
126 | bfc003c4: 24090078 li t1,120 |
---|
127 | bfc003c8: a3490000 sb t1,0(k0) |
---|
128 | bfc003cc: 24090008 li t1,8 |
---|
129 | bfc003d0: 3c0af000 lui t2,0xf000 |
---|
130 | bfc003d4: 010a5024 and t2,t0,t2 |
---|
131 | bfc003d8: 000a5702 srl t2,t2,0x1c |
---|
132 | bfc003dc: 294b000a slti t3,t2,10 |
---|
133 | bfc003e0: 11600004 beqz t3,bfc003f4 <printx+0x3c> |
---|
134 | bfc003e4: 00000000 nop |
---|
135 | bfc003e8: 214a0030 addi t2,t2,48 |
---|
136 | bfc003ec: 0bf000fe j bfc003f8 <printx+0x40> |
---|
137 | bfc003f0: 00000000 nop |
---|
138 | bfc003f4: 214a0037 addi t2,t2,55 |
---|
139 | bfc003f8: a34a0000 sb t2,0(k0) |
---|
140 | bfc003fc: 2129ffff addi t1,t1,-1 |
---|
141 | bfc00400: 1d20fff3 bgtz t1,bfc003d0 <printx+0x18> |
---|
142 | bfc00404: 00084100 sll t0,t0,0x4 |
---|
143 | bfc00408: 03e00008 jr ra |
---|
144 | bfc0040c: 00000000 nop |
---|
145 | |
---|
146 | Disassembly of section .reginfo: |
---|
147 | |
---|
148 | bfc00410 <.reginfo>: |
---|
149 | bfc00410: bc000010 cache 0x0,16(zero) |
---|
150 | bfc00414: 00000000 nop |
---|
151 | bfc00418: 00000005 0x5 |
---|
152 | ... |
---|
153 | bfc00424: 00000010 mfhi zero |
---|
154 | |
---|
155 | Disassembly of section .data: |
---|
156 | |
---|
157 | 00000000 <testval-0x4>: |
---|
158 | 0: 0000dead 0xdead |
---|
159 | |
---|
160 | 00000004 <testval>: |
---|
161 | 4: 0000beef 0xbeef |
---|
162 | |
---|
163 | 00000008 <div1>: |
---|
164 | 8: 41200000 0x41200000 |
---|
165 | |
---|
166 | 0000000c <div2>: |
---|
167 | c: 00000000 nop |
---|