⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logarmfw

📁 自己编写的ARM处理器的指令集仿真
💻
📖 第 1 页 / 共 5 页
字号:
fwrite:     file format elf32-littlearmDisassembly of section .text:00000000 <_mainCRTStartup>:       0:	e3a00016 	mov	r0, #22	; 0x16       4:	e28f10c4 	add	r1, pc, #196	; 0xc4       8:	ef123456 	swi	0x00123456       c:	e59f00bc 	ldr	r0, [pc, #bc]	; d0 <*ABS*+0xd0>      10:	e590d008 	ldr	sp, [r0, #8]      14:	e590a00c 	ldr	sl, [r0, #12]      18:	e28aac01 	add	sl, sl, #256	; 0x100      1c:	e3a01000 	mov	r1, #0	; 0x0      20:	e1a0b001 	mov	fp, r1      24:	e1a07001 	mov	r7, r1      28:	e59f00a4 	ldr	r0, [pc, #a4]	; d4 <*ABS*+0xd4>      2c:	e59f20a4 	ldr	r2, [pc, #a4]	; d8 <*ABS*+0xd8>      30:	e0422000 	sub	r2, r2, r0      34:	eb0006f6 	bl	1c14 <memset>      38:	eb000902 	bl	2448 <initialise_monitor_handles>      3c:	e3a00015 	mov	r0, #21	; 0x15      40:	e28f1094 	add	r1, pc, #148	; 0x94      44:	ef123456 	swi	0x00123456      48:	e59f108c 	ldr	r1, [pc, #8c]	; dc <*ABS*+0xdc>      4c:	e3a00000 	mov	r0, #0	; 0x0      50:	e4d13001 	ldrb	r3, [r1], #1      54:	e3530000 	cmp	r3, #0	; 0x0      58:	0a000011 	beq	a4 <*ABS*+0xa4>      5c:	e3530020 	cmp	r3, #32	; 0x20      60:	0afffffa 	beq	50 <*ABS*+0x50>      64:	e3530022 	cmp	r3, #34	; 0x22      68:	13530027 	cmpne	r3, #39	; 0x27      6c:	01a02003 	moveq	r2, r3      70:	13a02020 	movne	r2, #32	; 0x20      74:	12411001 	subne	r1, r1, #1	; 0x1      78:	e92d0002 	stmdb	sp!, {r1}      7c:	e2800001 	add	r0, r0, #1	; 0x1      80:	e4d13001 	ldrb	r3, [r1], #1      84:	e3530000 	cmp	r3, #0	; 0x0      88:	0a000005 	beq	a4 <*ABS*+0xa4>      8c:	e1520003 	cmp	r2, r3      90:	1afffffa 	bne	80 <*ABS*+0x80>      94:	e3a02000 	mov	r2, #0	; 0x0      98:	e2413001 	sub	r3, r1, #1	; 0x1      9c:	e5c32000 	strb	r2, [r3]      a0:	eaffffea 	b	50 <*ABS*+0x50>      a4:	e1a0100d 	mov	r1, sp      a8:	e08d2100 	add	r2, sp, r0, lsl #2      ac:	e1a0300d 	mov	r3, sp      b0:	e1520003 	cmp	r2, r3      b4:	85124004 	ldrhi	r4, [r2, -#4]      b8:	85935000 	ldrhi	r5, [r3]      bc:	85225004 	strhi	r5, [r2, -#4]!      c0:	84834004 	strhi	r4, [r3], #4      c4:	8afffff9 	bhi	b0 <*ABS*+0xb0>      c8:	eb000005 	bl	e4 <main>      cc:	eb0000d7 	bl	430 <exit>      d0:	00009904 	andeq	r9, r0, r4, lsl #18      d4:	0000a168 	andeq	sl, r0, r8, ror #2      d8:	0000a29c 	muleq	r0, ip, r2      dc:	00009914 	andeq	r9, r0, r4, lsl r9      e0:	000000ff 	streqd	r0, [r0], -pc000000e4 <main>:      e4:	e1a0c00d 	mov	ip, sp      e8:	e92dd810 	stmdb	sp!, {r4, fp, ip, lr, pc}      ec:	e24cb004 	sub	fp, ip, #4	; 0x4      f0:	e24dd00c 	sub	sp, sp, #12	; 0xc      f4:	eb0000a1 	bl	380 <__gccmain>      f8:	e59f016c 	ldr	r0, [pc, #16c]	; 26c <main+0x188>      fc:	e59f116c 	ldr	r1, [pc, #16c]	; 270 <main+0x18c>     100:	eb00083d 	bl	21fc <strcpy>     104:	e59f4160 	ldr	r4, [pc, #160]	; 26c <main+0x188>     108:	e59f0160 	ldr	r0, [pc, #160]	; 270 <main+0x18c>     10c:	eb000858 	bl	2274 <strlen>     110:	e5840014 	str	r0, [r4, #20]     114:	e59f0158 	ldr	r0, [pc, #158]	; 274 <main+0x190>     118:	e59f1158 	ldr	r1, [pc, #158]	; 278 <main+0x194>     11c:	eb000836 	bl	21fc <strcpy>     120:	e59f4144 	ldr	r4, [pc, #144]	; 26c <main+0x188>     124:	e59f014c 	ldr	r0, [pc, #14c]	; 278 <main+0x194>     128:	eb000851 	bl	2274 <strlen>     12c:	e584002c 	str	r0, [r4, #44]     130:	e59f0144 	ldr	r0, [pc, #144]	; 27c <main+0x198>     134:	e59f1144 	ldr	r1, [pc, #144]	; 280 <main+0x19c>     138:	eb00082f 	bl	21fc <strcpy>     13c:	e59f4128 	ldr	r4, [pc, #128]	; 26c <main+0x188>     140:	e59f0138 	ldr	r0, [pc, #138]	; 280 <main+0x19c>     144:	eb00084a 	bl	2274 <strlen>     148:	e5840044 	str	r0, [r4, #68]     14c:	e59f0130 	ldr	r0, [pc, #130]	; 284 <main+0x1a0>     150:	e59f1130 	ldr	r1, [pc, #130]	; 288 <main+0x1a4>     154:	eb00020f 	bl	998 <fopen>     158:	e1a03000 	mov	r3, r0     15c:	e50b3014 	str	r3, [fp, -#20]     160:	e59f0124 	ldr	r0, [pc, #124]	; 28c <main+0x1a8>     164:	e59f1100 	ldr	r1, [pc, #100]	; 26c <main+0x188>     168:	eb0006f1 	bl	1d34 <printf>     16c:	e59f011c 	ldr	r0, [pc, #11c]	; 290 <main+0x1ac>     170:	e59f10fc 	ldr	r1, [pc, #fc]	; 274 <main+0x190>     174:	eb0006ee 	bl	1d34 <printf>     178:	e59f0114 	ldr	r0, [pc, #114]	; 294 <main+0x1b0>     17c:	e59f10f8 	ldr	r1, [pc, #f8]	; 27c <main+0x198>     180:	eb0006eb 	bl	1d34 <printf>     184:	e59f010c 	ldr	r0, [pc, #10c]	; 298 <main+0x1b4>     188:	eb0006e9 	bl	1d34 <printf>     18c:	e59f00d8 	ldr	r0, [pc, #d8]	; 26c <main+0x188>     190:	e3a01018 	mov	r1, #24	; 0x18     194:	e3a02003 	mov	r2, #3	; 0x3     198:	e51b3014 	ldr	r3, [fp, -#20]     19c:	eb00044d 	bl	12d8 <fwrite>     1a0:	e59f00f4 	ldr	r0, [pc, #f4]	; 29c <main+0x1b8>     1a4:	eb0006e2 	bl	1d34 <printf>     1a8:	e51b0014 	ldr	r0, [fp, -#20]     1ac:	eb0000be 	bl	4ac <fclose>     1b0:	e59f00cc 	ldr	r0, [pc, #cc]	; 284 <main+0x1a0>     1b4:	e59f10e4 	ldr	r1, [pc, #e4]	; 2a0 <main+0x1bc>     1b8:	eb0001f6 	bl	998 <fopen>     1bc:	e1a03000 	mov	r3, r0     1c0:	e50b3014 	str	r3, [fp, -#20]     1c4:	e59f00d8 	ldr	r0, [pc, #d8]	; 2a4 <main+0x1c0>     1c8:	eb0006d9 	bl	1d34 <printf>     1cc:	e59f0098 	ldr	r0, [pc, #98]	; 26c <main+0x188>     1d0:	e3a01018 	mov	r1, #24	; 0x18     1d4:	e3a02003 	mov	r2, #3	; 0x3     1d8:	e51b3014 	ldr	r3, [fp, -#20]     1dc:	eb0001f8 	bl	9c4 <fread>     1e0:	e59f00c0 	ldr	r0, [pc, #c0]	; 2a8 <main+0x1c4>     1e4:	eb0006d2 	bl	1d34 <printf>     1e8:	e51b0014 	ldr	r0, [fp, -#20]     1ec:	eb0000ae 	bl	4ac <fclose>     1f0:	e3a03000 	mov	r3, #0	; 0x0     1f4:	e50b3018 	str	r3, [fp, -#24]     1f8:	e51b3018 	ldr	r3, [fp, -#24]     1fc:	e3530002 	cmp	r3, #2	; 0x2     200:	da000000 	ble	208 <main+0x124>     204:	ea000029 	b	2b0 <main+0x1cc>     208:	e51b2018 	ldr	r2, [fp, -#24]     20c:	e1a03002 	mov	r3, r2     210:	e1a03083 	mov	r3, r3, lsl #1     214:	e0833002 	add	r3, r3, r2     218:	e1a02183 	mov	r2, r3, lsl #3     21c:	e59f1048 	ldr	r1, [pc, #48]	; 26c <main+0x188>     220:	e0823001 	add	r3, r2, r1     224:	e59f2040 	ldr	r2, [pc, #40]	; 26c <main+0x188>     228:	e51bc018 	ldr	ip, [fp, -#24]     22c:	e1a0100c 	mov	r1, ip     230:	e1a01081 	mov	r1, r1, lsl #1     234:	e081100c 	add	r1, r1, ip     238:	e1a0c181 	mov	ip, r1, lsl #3     23c:	e2822014 	add	r2, r2, #20	; 0x14     240:	e792100c 	ldr	r1, [r2, ip]     244:	e58d1000 	str	r1, [sp]     248:	e59f005c 	ldr	r0, [pc, #5c]	; 2ac <main+0x1c8>     24c:	e51b1018 	ldr	r1, [fp, -#24]     250:	e1a02003 	mov	r2, r3     254:	e51b3018 	ldr	r3, [fp, -#24]     258:	eb0006b5 	bl	1d34 <printf>     25c:	e51b3018 	ldr	r3, [fp, -#24]     260:	e2832001 	add	r2, r3, #1	; 0x1     264:	e50b2018 	str	r2, [fp, -#24]     268:	eaffffe2 	b	1f8 <main+0x114>     26c:	0000a250 	andeq	sl, r0, r0, asr r2     270:	00009540 	andeq	r9, r0, r0, asr #10     274:	0000a268 	andeq	sl, r0, r8, ror #4     278:	00009548 	andeq	r9, r0, r8, asr #10     27c:	0000a280 	andeq	sl, r0, r0, lsl #5     280:	00009554 	andeq	r9, r0, r4, asr r5     284:	00009560 	andeq	r9, r0, r0, ror #10     288:	00009568 	andeq	r9, r0, r8, ror #10     28c:	0000956c 	andeq	r9, r0, ip, ror #10     290:	00009574 	andeq	r9, r0, r4, ror r5     294:	0000957c 	andeq	r9, r0, ip, ror r5     298:	00009584 	andeq	r9, r0, r4, lsl #11     29c:	00009598 	muleq	r0, r8, r5     2a0:	000095a8 	andeq	r9, r0, r8, lsr #11     2a4:	000095ac 	andeq	r9, r0, ip, lsr #11     2a8:	000095bc 	streqh	r9, [r0], -ip     2ac:	000095cc 	andeq	r9, r0, ip, asr #11     2b0:	e91ba810 	ldmdb	fp, {r4, fp, sp, pc}000002b4 <__do_global_dtors>:     2b4:	e1a0c00d 	mov	ip, sp     2b8:	e92dd810 	stmdb	sp!, {r4, fp, ip, lr, pc}     2bc:	e59f103c 	ldr	r1, [pc, #3c]	; 300 <__do_global_dtors+0x4c>     2c0:	e5913000 	ldr	r3, [r1]     2c4:	e5932000 	ldr	r2, [r3]     2c8:	e24cb004 	sub	fp, ip, #4	; 0x4     2cc:	e3520000 	cmp	r2, #0	; 0x0     2d0:	091ba810 	ldmeqdb	fp, {r4, fp, sp, pc}     2d4:	e1a04001 	mov	r4, r1     2d8:	e5943000 	ldr	r3, [r4]     2dc:	e2833004 	add	r3, r3, #4	; 0x4     2e0:	e5843000 	str	r3, [r4]     2e4:	e1a0e00f 	mov	lr, pc     2e8:	e513f004 	ldr	pc, [r3, -#4]     2ec:	e5942000 	ldr	r2, [r4]     2f0:	e5923000 	ldr	r3, [r2]     2f4:	e3530000 	cmp	r3, #0	; 0x0     2f8:	1afffff6 	bne	2d8 <__do_global_dtors+0x24>     2fc:	e91ba810 	ldmdb	fp, {r4, fp, sp, pc}     300:	00009a14 	andeq	r9, r0, r4, lsl sl00000304 <__do_global_ctors>:     304:	e1a0c00d 	mov	ip, sp     308:	e92dd870 	stmdb	sp!, {r4, r5, r6, fp, ip, lr, pc}     30c:	e59f3064 	ldr	r3, [pc, #64]	; 378 <__do_global_ctors+0x74>     310:	e59f6064 	ldr	r6, [pc, #64]	; 37c <__do_global_ctors+0x78>     314:	e24cb004 	sub	fp, ip, #4	; 0x4     318:	e5932000 	ldr	r2, [r3]     31c:	e1a05003 	mov	r5, r3     320:	e3720001 	cmn	r2, #1	; 0x1     324:	1a00000a 	bne	354 <__do_global_ctors+0x50>     328:	e3a01004 	mov	r1, #4	; 0x4     32c:	e7953001 	ldr	r3, [r5, r1]     330:	e3a02000 	mov	r2, #0	; 0x0     334:	e1530002 	cmp	r3, r2     338:	0a000005 	beq	354 <__do_global_ctors+0x50>     33c:	e1a00005 	mov	r0, r5     340:	e2811004 	add	r1, r1, #4	; 0x4     344:	e7903001 	ldr	r3, [r0, r1]     348:	e2822001 	add	r2, r2, #1	; 0x1     34c:	e3530000 	cmp	r3, #0	; 0x0     350:	1afffffa 	bne	340 <__do_global_ctors+0x3c>     354:	e2524000 	subs	r4, r2, #0	; 0x0     358:	0a000003 	beq	36c <__do_global_ctors+0x68>     35c:	e1a0e00f 	mov	lr, pc     360:	e795f104 	ldr	pc, [r5, r4, lsl #2]     364:	e2544001 	subs	r4, r4, #1	; 0x1     368:	1afffffb 	bne	35c <__do_global_ctors+0x58>     36c:	e1a00006 	mov	r0, r6     370:	eb00000e 	bl	3b0 <atexit>     374:	e91ba870 	ldmdb	fp, {r4, r5, r6, fp, sp, pc}     378:	0000a158 	andeq	sl, r0, r8, asr r1     37c:	000002b4 	streqh	r0, [r0], -r400000380 <__gccmain>:     380:	e1a0c00d 	mov	ip, sp     384:	e92dd800 	stmdb	sp!, {fp, ip, lr, pc}     388:	e59f201c 	ldr	r2, [pc, #1c]	; 3ac <__gccmain+0x2c>     38c:	e5923000 	ldr	r3, [r2]     390:	e24cb004 	sub	fp, ip, #4	; 0x4     394:	e3530000 	cmp	r3, #0	; 0x0     398:	191ba800 	ldmnedb	fp, {fp, sp, pc}     39c:	e3a03001 	mov	r3, #1	; 0x1     3a0:	e5823000 	str	r3, [r2]     3a4:	ebffffd6 	bl	304 <__do_global_ctors>     3a8:	e91ba800 	ldmdb	fp, {fp, sp, pc}     3ac:	0000a170 	andeq	sl, r0, r0, ror r1000003b0 <atexit>:     3b0:	e1a0c00d 	mov	ip, sp     3b4:	e92dd830 	stmdb	sp!, {r4, r5, fp, ip, lr, pc}     3b8:	e59f506c 	ldr	r5, [pc, #6c]	; 42c <atexit+0x7c>     3bc:	e5953000 	ldr	r3, [r5]     3c0:	e24cb004 	sub	fp, ip, #4	; 0x4     3c4:	e5931148 	ldr	r1, [r3, #328]     3c8:	e1a04000 	mov	r4, r0     3cc:	e3510000 	cmp	r1, #0	; 0x0     3d0:	02831f53 	addeq	r1, r3, #332	; 0x14c     3d4:	05831148 	streq	r1, [r3, #328]     3d8:	e5913004 	ldr	r3, [r1, #4]     3dc:	e353001f 	cmp	r3, #31	; 0x1f     3e0:	da00000a 	ble	410 <atexit+0x60>     3e4:	e3a00088 	mov	r0, #136	; 0x88     3e8:	eb000425 	bl	1484 <malloc>     3ec:	e2501000 	subs	r1, r0, #0	; 0x0     3f0:	03e00000 	mvneq	r0, #0	; 0x0     3f4:	091ba830 	ldmeqdb	fp, {r4, r5, fp, sp, pc}     3f8:	e3a03000 	mov	r3, #0	; 0x0     3fc:	e5813004 	str	r3, [r1, #4]     400:	e5952000 	ldr	r2, [r5]     404:	e5923148 	ldr	r3, [r2, #328]     408:	e5813000 	str	r3, [r1]     40c:	e5821148 	str	r1, [r2, #328]     410:	e3a00000 	mov	r0, #0	; 0x0     414:	e5913004 	ldr	r3, [r1, #4]     418:	e2812008 	add	r2, r1, #8	; 0x8     41c:	e7824103 	str	r4, [r2, r3, lsl #2]     420:	e2833001 	add	r3, r3, #1	; 0x1     424:	e5813004 	str	r3, [r1, #4]     428:	e91ba830 	ldmdb	fp, {r4, r5, fp, sp, pc}     42c:	00009d0c 	andeq	r9, r0, ip, lsl #2600000430 <exit>:     430:	e1a0c00d 	mov	ip, sp     434:	e92dd800 	stmdb	sp!, {fp, ip, lr, pc}     438:	e59f2064 	ldr	r2, [pc, #64]	; 4a4 <exit+0x74>     43c:	e24cb004 	sub	fp, ip, #4	; 0x4     440:	e5923000 	ldr	r3, [r2]     444:	e1a07000 	mov	r7, r0     448:	e5936148 	ldr	r6, [r3, #328]     44c:	e1a08002 	mov	r8, r2     450:	e3560000 	cmp	r6, #0	; 0x0     454:	0a00000a 	beq	484 <exit+0x54>     458:	e5964004 	ldr	r4, [r6, #4]     45c:	e2544001 	subs	r4, r4, #1	; 0x1     460:	4a000004 	bmi	478 <exit+0x48>     464:	e2865008 	add	r5, r6, #8	; 0x8     468:	e1a0e00f 	mov	lr, pc     46c:	e795f104 	ldr	pc, [r5, r4, lsl #2]     470:	e2544001 	subs	r4, r4, #1	; 0x1     474:	5afffffb 	bpl	468 <exit+0x38>     478:	e5966000 	ldr	r6, [r6]     47c:	e3560000 	cmp	r6, #0	; 0x0     480:	1afffff4 	bne	458 <exit+0x28>     484:	e5980000 	ldr	r0, [r8]     488:	e590303c 	ldr	r3, [r0, #60]     48c:	e3530000 	cmp	r3, #0	; 0x0     490:	0a000001 	beq	49c <exit+0x6c>     494:	e1a0e00f 	mov	lr, pc     498:	e1a0f003 	mov	pc, r3     49c:	e1a00007 	mov	r0, r7     4a0:	eb000928 	bl	2948 <_exit>     4a4:	00009d0c 	andeq	r9, r0, ip, lsl #26     4a8:	e91ba9f0 	ldmdb	fp, {r4, r5, r6, r7, r8, fp, sp, pc}000004ac <fclose>:     4ac:	e1a0c00d 	mov	ip, sp     4b0:	e92dd830 	stmdb	sp!, {r4, r5, fp, ip, lr, pc}     4b4:	e24cb004 	sub	fp, ip, #4	; 0x4     4b8:	e2504000 	subs	r4, r0, #0	; 0x0     4bc:	01a00004 	moveq	r0, r4     4c0:	091ba830 	ldmeqdb	fp, {r4, r5, fp, sp, pc}     4c4:	e5943054 	ldr	r3, [r4, #84]     4c8:	e3530000 	cmp	r3, #0	; 0x0     4cc:	059f30c4 	ldreq	r3, [pc, #c4]	; 598 <fclose+0xec>     4d0:	05932000 	ldreq	r2, [r3]     4d4:	05842054 	streq	r2, [r4, #84]     4d8:	e5940054 	ldr	r0, [r4, #84]     4dc:	e5903038 	ldr	r3, [r0, #56]     4e0:	e3530000 	cmp	r3, #0	; 0x0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -