Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dump.bin
dump.bin: file format binary
Disassembly of section .data:
00000000 <.data>:
_start:
0: 40 1e 00 00 movhi 0, r0, sp
4: 23 1e 80 17 movea 6016, sp, sp
8: 40 26 00 00 movhi 0, r0, gp
c: 24 26 16 16 movea 5654, gp, gp
10: 80 ff bc 00 jarl 0xcc, lp ; _init
14: 80 ff 8c 01 jarl 0x1a0, lp ; _main
18: 0a 38 mov r10, r7
___r_exit:
1a: 01 32 mov 1, r6
1c: ff 07 00 01 trap 31
20: 7f 00 jmp [lp]
___r_read:
22: 03 32 mov 3, r6
24: ff 07 00 01 trap 31
28: 7f 00 jmp [lp]
2a: 04 32 mov 4, r6
2c: ff 07 00 01 trap 31
30: 7f 00 jmp [lp]
32: 05 32 mov 5, r6
34: ff 07 00 01 trap 31
38: 7f 00 jmp [lp]
3a: 06 32 mov 6, r6
3c: ff 07 00 01 trap 31
40: 7f 00 jmp [lp]
_sys_exit:
42: 03 1e ec ff addi -20, sp, sp
46: 06 38 mov r6, r7
48: 63 ff 11 00 st.w lp, 16[sp]
4c: 00 32 mov 0, r6
4e: bf ff cc ff jarl 0x1a, lp
_sys_read:
52: 07 50 mov r7, r10
54: 03 1e ec ff addi -20, sp, sp
58: 08 48 mov r8, r9
5a: 06 38 mov r6, r7
5c: 63 ff 11 00 st.w lp, 16[sp]
60: 0a 40 mov r10, r8
62: 00 32 mov 0, r6
64: bf ff be ff jarl 0x22, lp
68: 23 ff 11 00 ld.w 16[sp], lp
6c: 03 1e 14 00 addi 20, sp, sp
70: 7f 00 jmp [lp]
_sys_write:
72: 07 50 mov r7, r10
74: 03 1e ec ff addi -20, sp, sp
78: 08 48 mov r8, r9
7a: 06 38 mov r6, r7
7c: 63 ff 11 00 st.w lp, 16[sp]
80: 0a 40 mov r10, r8
82: 00 32 mov 0, r6
84: bf ff a6 ff jarl 0x2a, lp
88: 23 ff 11 00 ld.w 16[sp], lp
8c: 03 1e 14 00 addi 20, sp, sp
90: 7f 00 jmp [lp]
_sys_open:
92: 07 50 mov r7, r10
94: 03 1e ec ff addi -20, sp, sp
98: 08 48 mov r8, r9
9a: 06 38 mov r6, r7
9c: 63 ff 11 00 st.w lp, 16[sp]
a0: 0a 40 mov r10, r8
a2: 00 32 mov 0, r6
a4: bf ff 8e ff jarl 0x32, lp
a8: 23 ff 11 00 ld.w 16[sp], lp
ac: 03 1e 14 00 addi 20, sp, sp
b0: 7f 00 jmp [lp]
_sys_close:
b2: 03 1e ec ff addi -20, sp, sp
b6: 06 38 mov r6, r7
b8: 63 ff 11 00 st.w lp, 16[sp]
bc: 00 32 mov 0, r6
be: bf ff 7c ff jarl 0x3a, lp
c2: 23 ff 11 00 ld.w 16[sp], lp
c6: 03 1e 14 00 addi 20, sp, sp
ca: 7f 00 jmp [lp]
_init:
cc: 40 56 00 00 movhi 0, r0, r10
d0: 40 5e 00 00 movhi 0, r0, r11
d4: 2a 56 3c 16 movea 5692, r10, r10
d8: 2b 5e 7c 16 movea 5756, r11, r11
dc: c5 05 br 0xe4
de: 4a 07 00 00 st.b r0, 0[r10]
e2: 41 52 add 1, r10
e4: eb 51 cmp r11, r10
e6: c1 fd bl 0xde
e8: 7f 00 jmp [lp]
_read_data:
ea: 03 1e dc ff addi -36, sp, sp
ee: 1e 08 mov ep, r1
f0: 03 f0 mov sp, ep
f2: 0f d5 sst.w r26, 28[ep]
f4: 0d dd sst.w r27, 24[ep]
f6: 08 d8 mov r8, r27
f8: 07 d0 mov r7, r26
fa: 11 fd sst.w lp, 32[ep]
fc: 0b e5 sst.w r28, 20[ep]
fe: 01 f0 mov r1, ep
100: 00 3a mov 0, r7
102: 00 42 mov 0, r8
104: bf ff 8e ff jarl 0x92, lp ; _sys_open
108: 0a e0 mov r10, r28
10a: 03 3e 13 00 addi 19, sp, r7
10e: 0a 30 mov r10, r6
110: 01 42 mov 1, r8
112: bf ff 40 ff jarl 0x52, lp ; _sys_read
116: 3b 47 01 00 ld.w 0[r27], r8
11a: 1c 30 mov r28, r6
11c: 1a 38 mov r26, r7
11e: bf ff 34 ff jarl 0x52, lp ; _sys_read
122: 7b 57 01 00 st.w r10, 0[r27]
126: 1c 30 mov r28, r6
128: bf ff 8a ff jarl 0xb2, lp ; _sys_close
12c: 1e 08 mov ep, r1
12e: 03 f0 mov sp, ep
130: 13 53 sld.b 19[ep], r10
132: 0e d5 sld.w 28[ep], r26
134: 0c dd sld.w 24[ep], r27
136: 0a e5 sld.w 20[ep], r28
138: 10 fd sld.w 32[ep], lp
13a: 01 f0 mov r1, ep
13c: ca 56 ff 00 andi 255, r10, r10
140: 03 1e 24 00 addi 36, sp, sp
144: 7f 00 jmp [lp]
_proc:
146: 03 1e e8 ff addi -24, sp, sp
14a: 20 56 40 00 movea 64, r0, r10
14e: 40 3e 00 00 movhi 0, r0, r7
152: 63 ff 15 00 st.w lp, 20[sp]
156: 63 57 11 00 st.w r10, 16[sp]
15a: 27 3e 3c 16 movea 5692, r7, r7
15e: 03 46 10 00 addi 16, sp, r8
162: bf ff 88 ff jarl 0xea, lp ; _read_data
166: 23 77 11 00 ld.w 16[sp], r14
16a: ca 66 ff 00 andi 255, r10, r12
16e: 00 6a mov 0, r13
170: 95 15 br 0x192
172: 40 56 00 00 movhi 0, r0, r10
176: 2a 56 3c 16 movea 5692, r10, r10
17a: cd 51 add r13, r10
17c: 0a 5f 00 00 ld.b 0[r10], r11
180: 41 6a add 1, r13
182: 2c 59 xor r12, r11
184: cc 61 add r12, r12
186: 0c 66 11 00 addi 17, r12, r12
18a: 4a 5f 00 00 st.b r11, 0[r10]
18e: cc 66 ff 00 andi 255, r12, r12
192: ee 69 cmp r14, r13
194: f6 ed blt 0x172
196: 23 ff 15 00 ld.w 20[sp], lp
19a: 03 1e 18 00 addi 24, sp, sp
19e: 7f 00 jmp [lp]
_main:
1a0: 03 1e e0 ff addi -32, sp, sp
1a4: 40 36 00 00 movhi 0, r0, r6
1a8: 1e 08 mov ep, r1
1aa: 03 f0 mov sp, ep
1ac: 0f fd sst.w lp, 28[ep]
1ae: 0b e5 sst.w r28, 20[ep]
1b0: 09 ed sst.w r29, 16[ep]
1b2: 26 36 24 16 movea 5668, r6, r6
1b6: 0d dd sst.w r27, 24[ep]
1b8: 01 f0 mov r1, ep
1ba: bf ff 8c ff jarl 0x146, lp ; _proc
1be: 40 36 00 00 movhi 0, r0, r6
1c2: 26 36 2d 16 movea 5677, r6, r6
1c6: 20 3e 02 06 movea 1538, r0, r7
1ca: 20 46 a4 01 movea 420, r0, r8
1ce: bf ff c4 fe jarl 0x92, lp ; _sys_open
1d2: 0a e0 mov r10, r28
1d4: 40 56 00 00 movhi 0, r0, r10
1d8: 40 5e 00 00 movhi 0, r0, r11
1dc: 2a ee 00 14 movea 5120, r10, r29
1e0: 2b 5e 80 17 movea 6016, r11, r11
1e4: eb e9 cmp r11, r29
1e6: a9 0d bnl 0x1fa
1e8: 0b d8 mov r11, r27
1ea: 1d 38 mov r29, r7
1ec: 1c 30 mov r28, r6
1ee: 01 42 mov 1, r8
1f0: bf ff 82 fe jarl 0x72, lp ; _sys_write
1f4: 41 ea add 1, r29
1f6: fb e9 cmp r27, r29
1f8: 91 fd bl 0x1ea
1fa: 1c 30 mov r28, r6
1fc: bf ff b6 fe jarl 0xb2, lp ; _sys_close
200: 1e 08 mov ep, r1
202: 03 f0 mov sp, ep
204: 0c dd sld.w 24[ep], r27
206: 0a e5 sld.w 20[ep], r28
208: 08 ed sld.w 16[ep], r29
20a: 0e fd sld.w 28[ep], lp
20c: 01 f0 mov r1, ep
20e: 00 52 mov 0, r10
210: 03 1e 20 00 addi 32, sp, sp
214: 7f 00 jmp [lp]
_gp:
216: 00 00 nop
218: 56 38 divh r22, r7
21a: 35 30 not r21, r6
21c: 20 62 satadd 0, r12
21e: 69 6e 61 72 satsubi 29281, r9, r13
222: 79 00 jmp [r25]
224: 66 6c sld.h 204[ep], r13
226: 61 67 2e 74 st.h r12, 29742[r1]
22a: 78 74 sld.h 240[ep], r14
22c: 00 64 sld.h 0[ep], r12
22e: 75 6d sst.w r13, 232[ep]
230: 70 2e 62 69 satsubi 26978, r16, r5
234: 6e 00 jmp [r14]
236: 00 00 nop
238: 18 16 00 00 addi 0, r24, r2
23c: 63 17 86 d8 st.h r2, -10106[sp]
240: 34 f9 xor r20, lp
242: 06 8c sld.h 12[ep], r17
244: 9b 80 satsubr r27, r16
246: 9d 96 d7 da ori 56023, r29, r18
24a: df 92 shl 31, r18
...
320: 2c 15 sld.w 88[ep], r2
...
336: 00 25 sld.w 0[ep], gp
...
344: 66 15 sld.w 204[ep], r2
...
356: 00 00 nop
358: 10 00 .short 0x0010
35a: 00 00 nop
35c: f4 15 bn 0x38a
...
37a: 00 00 nop
37c: 18 14 sld.h 48[ep], r2
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.