fcr_test.s

来自「国产CPU-龙芯(loongson)BIOS源代码」· S 代码 · 共 1,994 行 · 第 1/5 页

S
1,994
字号
../build/bin/fcr_test:     file format elf32-tradlittlemips../build/bin/fcr_testDisassembly of section .textram:80000000 <reset_exception>:_ftextram():80000000:	100000e1 	b	80000388 <start>80000004:	0000d021 	move	k0,zero	...80000380:	10000081 	b	80000588 <excHandler>80000384:	00000000 	nop80000388 <start>:start():80000388:	0000d021 	move	k0,zero8000038c:	04110001 	bal	80000394 <start+0xc>80000390:	3c08a000 	lui	t0,0xa00080000394:	03e8f825 	or	ra,ra,t080000398:	27ff0010 	addiu	ra,ra,168000039c:	03e00008 	jr	ra800003a0:	00000000 	nop800003a4:	3c1d8001 	lui	sp,0x8001800003a8:	27bdb708 	addiu	sp,sp,-18680800003ac:	3c01a000 	lui	at,0xa000800003b0:	04110001 	bal	800003b8 <start+0x30>800003b4:	03a1e825 	or	sp,sp,at800003b8:	3c098000 	lui	t1,0x8000800003bc:	252903b8 	addiu	t1,t1,952800003c0:	03e9f023 	subu	s8,ra,t1800003c4:	3c04bf00 	lui	a0,0xbf00800003c8:	3c052000 	lui	a1,0x2000800003cc:	ac850004 	sw	a1,4(a0)800003d0:	3c050104 	lui	a1,0x104800003d4:	34a50242 	ori	a1,a1,0x242800003d8:	ac850000 	sw	a1,0(a0)800003dc:	3c052098 	lui	a1,0x2098800003e0:	34a500c6 	ori	a1,a1,0xc6800003e4:	ac850004 	sw	a1,4(a0)800003e8:	3c088000 	lui	t0,0x8000800003ec:	25080000 	addiu	t0,t0,0800003f0:	011e4020 	add	t0,t0,s8800003f4:	3c098000 	lui	t1,0x8000800003f8:	25290000 	addiu	t1,t1,0800003fc:	3c01a000 	lui	at,0xa00080000400:	01214825 	or	t1,t1,at80000404:	3c0a8000 	lui	t2,0x800080000408:	254a2a40 	addiu	t2,t2,108168000040c:	3c01a000 	lui	at,0xa00080000410:	01415025 	or	t2,t2,at80000414:	254a0003 	addiu	t2,t2,380000418:	2401fffc 	li	at,-48000041c:	01415024 	and	t2,t2,at80000420:	8d0b0000 	lw	t3,0(t0)80000424:	25080004 	addiu	t0,t0,480000428:	25290004 	addiu	t1,t1,48000042c:	152afffc 	bne	t1,t2,80000420 <start+0x98>80000430:	ad2bfffc 	sw	t3,-4(t1)80000434:	3c088000 	lui	t0,0x800080000438:	25082a40 	addiu	t0,t0,108168000043c:	011e4021 	addu	t0,t0,s880000440:	3c01a000 	lui	at,0xa00080000444:	01014025 	or	t0,t0,at80000448:	2508001f 	addiu	t0,t0,318000044c:	2401ffe0 	li	at,-3280000450:	01014024 	and	t0,t0,at80000454:	3c098000 	lui	t1,0x800080000458:	25292a40 	addiu	t1,t1,108168000045c:	3c01a000 	lui	at,0xa00080000460:	01214825 	or	t1,t1,at80000464:	3c0a8001 	lui	t2,0x800180000468:	254a86e0 	addiu	t2,t2,-310088000046c:	3c01a000 	lui	at,0xa00080000470:	01415025 	or	t2,t2,at80000474:	254a0003 	addiu	t2,t2,380000478:	2401fffc 	li	at,-48000047c:	01415024 	and	t2,t2,at80000480:	112a0006 	beq	t1,t2,8000049c <zbss>80000484:	00000000 	nop80000488:	8d0b0000 	lw	t3,0(t0)8000048c:	25080004 	addiu	t0,t0,480000490:	25290004 	addiu	t1,t1,480000494:	152afffc 	bne	t1,t2,80000488 <start+0x100>80000498:	ad2bfffc 	sw	t3,-4(t1)8000049c <zbss>:zbss():8000049c:	3c028001 	lui	v0,0x8001800004a0:	244286e0 	addiu	v0,v0,-31008800004a4:	3c038001 	lui	v1,0x8001800004a8:	2463c800 	addiu	v1,v1,-14336800004ac:	3c01a000 	lui	at,0xa000800004b0:	00411025 	or	v0,v0,at800004b4:	3c01a000 	lui	at,0xa000800004b8:	00611825 	or	v1,v1,at800004bc:	ac400000 	sw	zero,0(v0)800004c0:	ac400004 	sw	zero,4(v0)800004c4:	ac400008 	sw	zero,8(v0)800004c8:	24420010 	addiu	v0,v0,16800004cc:	0043082b 	sltu	at,v0,v1800004d0:	1420fffa 	bnez	at,800004bc <zbss+0x20>800004d4:	ac40fffc 	sw	zero,-4(v0)800004d8:	3c048000 	lui	a0,0x8000800004dc:	24840588 	addiu	a0,a0,1416800004e0:	3c058000 	lui	a1,0x8000800004e4:	24a5062c 	addiu	a1,a1,1580800004e8:	04110018 	bal	8000054c <copyExcVec>800004ec:	24060180 	li	a2,384800004f0:	00000000 	nop800004f4:	40086000 	mfc0	t0,$12800004f8:	2401fffe 	li	at,-2800004fc:	01014024 	and	t0,t0,at80000500:	40886000 	mtc0	t0,$1280000504:	00000000 	nop80000508:	40088000 	mfc0	t0,$168000050c:	2401fff8 	li	at,-880000510:	01014024 	and	t0,t0,at80000514:	35080002 	ori	t0,t0,0x280000518:	40888000 	mtc0	t0,$168000051c:	00000000 	nop80000520:	3c1d8001 	lui	sp,0x800180000524:	27bdb708 	addiu	sp,sp,-1868080000528:	3c048000 	lui	a0,0x80008000052c:	24840880 	addiu	a0,a0,217680000530:	00800008 	jr	a080000534:	00000000 	nop80000538:	00000000 	nop8000053c:	0411ffff 	bal	8000053c <zbss+0xa0>80000540:	00000000 	nop80000544:	080000e2 	j	80000388 <start>80000548:	00000000 	nop8000054c <copyExcVec>:copyExcVec():8000054c:	3c01a000 	lui	at,0xa00080000550:	00814025 	or	t0,a0,at80000554:	3c01a000 	lui	at,0xa00080000558:	00a14825 	or	t1,a1,at8000055c:	3c01a000 	lui	at,0xa00080000560:	00c13025 	or	a2,a2,at80000564:	8d020000 	lw	v0,0(t0)80000568:	acc20000 	sw	v0,0(a2)8000056c:	25080004 	addiu	t0,t0,480000570:	24c60004 	addiu	a2,a2,480000574:	0109082b 	sltu	at,t0,t180000578:	1420fffa 	bnez	at,80000564 <copyExcVec+0x18>8000057c:	00000000 	nop80000580:	03e00008 	jr	ra80000584:	00000000 	nop80000588 <excHandler>:excHandler():80000588:	3c048000 	lui	a0,0x80008000058c:	0411004e 	bal	800006c8 <puts>80000590:	24842800 	addiu	a0,a0,1024080000594:	00000000 	nop80000598:	40046800 	mfc0	a0,$138000059c:	3c098000 	lui	t1,0x8000800005a0:	25290670 	addiu	t1,t1,1648800005a4:	0120f809 	jalr	t1800005a8:	00000000 	nop800005ac:	00000000 	nop800005b0:	3c048000 	lui	a0,0x8000800005b4:	04110044 	bal	800006c8 <puts>800005b8:	24842811 	addiu	a0,a0,10257800005bc:	00000000 	nop800005c0:	40047000 	mfc0	a0,$14800005c4:	3c098000 	lui	t1,0x8000800005c8:	25290670 	addiu	t1,t1,1648800005cc:	0120f809 	jalr	t1800005d0:	00000000 	nop800005d4:	00000000 	nop800005d8:	3c048000 	lui	a0,0x8000800005dc:	0411003a 	bal	800006c8 <puts>800005e0:	24842817 	addiu	a0,a0,10263800005e4:	00000000 	nop800005e8:	40044000 	mfc0	a0,$8800005ec:	3c098000 	lui	t1,0x8000800005f0:	25290670 	addiu	t1,t1,1648800005f4:	0120f809 	jalr	t1800005f8:	00000000 	nop800005fc:	00000000 	nop80000600:	3c048000 	lui	a0,0x800080000604:	04110030 	bal	800006c8 <puts>80000608:	24842822 	addiu	a0,a0,102748000060c:	00000000 	nop80000610:	40046000 	mfc0	a0,$1280000614:	3c098000 	lui	t1,0x800080000618:	25290670 	addiu	t1,t1,16488000061c:	0120f809 	jalr	t180000620:	00000000 	nop80000624:	00000000 	nop80000628:	42000018 	c0	0x188000062c <com_outch>:com_outch():8000062c:	24080013 	li	t0,1980000630:	3c09bf00 	lui	t1,0xbf0080000634:	91294095 	lbu	t1,16533(t1)80000638:	31290020 	andi	t1,t1,0x208000063c:	15200008 	bnez	t1,80000660 <com_outch+0x34>80000640:	00000000 	nop80000644:	24090012 	li	t1,1880000648:	2529ffff 	addiu	t1,t1,-18000064c:	1520fffe 	bnez	t1,80000648 <com_outch+0x1c>80000650:	00000000 	nop80000654:	2508ffff 	addiu	t0,t0,-180000658:	1500fff5 	bnez	t0,80000630 <com_outch+0x4>8000065c:	00000000 	nop80000660:	3c01bf00 	lui	at,0xbf0080000664:	03e00008 	jr	ra80000668:	a0244090 	sb	a0,16528(at)8000066c:	00000000 	nop80000670 <put32>:put32():80000670:	03e0c821 	move	t9,ra80000674:	00807021 	move	t6,a080000678:	240f0020 	li	t7,328000067c:	25effffc 	addiu	t7,t7,-480000680:	01e42006 	srlv	a0,a0,t780000684:	3084000f 	andi	a0,a0,0xf80000688:	2881000a 	slti	at,a0,108000068c:	14200005 	bnez	at,800006a4 <put32+0x34>80000690:	00000000 	nop80000694:	2484fff6 	addiu	a0,a0,-1080000698:	24840041 	addiu	a0,a0,658000069c:	080001aa 	j	800006a8 <put32+0x38>800006a0:	00000000 	nop800006a4:	24840030 	addiu	a0,a0,48800006a8:	0411ffe0 	bal	8000062c <com_outch>800006ac:	00000000 	nop800006b0:	01c02021 	move	a0,t6800006b4:	15e0fff1 	bnez	t7,8000067c <put32+0xc>800006b8:	00000000 	nop800006bc:	0320f821 	move	ra,t9800006c0:	03e00008 	jr	ra800006c4:	00000000 	nop800006c8 <puts>:puts():800006c8:	03e0c821 	move	t9,ra800006cc:	00802821 	move	a1,a0800006d0:	90a40000 	lbu	a0,0(a1)800006d4:	10800005 	beqz	a0,800006ec <puts+0x24>800006d8:	00000000 	nop800006dc:	0411ffd3 	bal	8000062c <com_outch>800006e0:	24a50001 	addiu	a1,a1,1800006e4:	1000fffb 	b	800006d4 <puts+0xc>800006e8:	90a40000 	lbu	a0,0(a1)800006ec:	03200008 	jr	t9800006f0:	00000000 	nop800006f4 <doMemTestX>:doMemTestX():800006f4:	03e0c821 	move	t9,ra800006f8:	3c048000 	lui	a0,0x8000800006fc:	2484282b 	addiu	a0,a0,1028380000700:	0411fff1 	bal	800006c8 <puts>80000704:	00000000 	nop80000708:	24050000 	li	a1,08000070c:	24060000 	li	a2,080000710:	24070000 	li	a3,080000714:	24100001 	li	s0,180000718:	24110002 	li	s1,28000071c:	24120003 	li	s2,380000720:	24130004 	li	s3,480000724:	00000000 	nop80000728:	3c0aa000 	lui	t2,0xa0008000072c:	3c0ba800 	lui	t3,0xa80080000730:	ad500000 	sw	s0,0(t2)80000734:	a5510004 	sh	s1,4(t2)80000738:	a1520006 	sb	s2,6(t2)8000073c:	01402021 	move	a0,t280000740:	00000000 	nop80000744:	0411ffca 	bal	80000670 <put32>80000748:	00000000 	nop8000074c:	3c048000 	lui	a0,0x800080000750:	2484283e 	addiu	a0,a0,1030280000754:	0411ffdc 	bal	800006c8 <puts>80000758:	00000000 	nop8000075c:	8d530000 	lw	s3,0(t2)80000760:	16700016 	bne	s3,s0,800007bc <doMemTestX+0xc8>80000764:	00000000 	nop80000768:	95540004 	lhu	s4,4(t2)8000076c:	322cffff 	andi	t4,s1,0xffff80000770:	168c0012 	bne	s4,t4,800007bc <doMemTestX+0xc8>80000774:	00000000 	nop80000778:	91550006 	lbu	s5,6(t2)8000077c:	324c00ff 	andi	t4,s2,0xff80000780:	16ac000e 	bne	s5,t4,800007bc <doMemTestX+0xc8>80000784:	00000000 	nop80000788:	254a1000 	addiu	t2,t2,40968000078c:	26100001 	addiu	s0,s0,180000790:	26310001 	addiu	s1,s1,180000794:	26520001 	addiu	s2,s2,180000798:	154bffe5 	bne	t2,t3,80000730 <doMemTestX+0x3c>8000079c:	00000000 	nop800007a0:	3c048000 	lui	a0,0x8000800007a4:	24842841 	addiu	a0,a0,10305800007a8:	0411ffc7 	bal	800006c8 <puts>800007ac:	00000000 	nop800007b0:	0320f821 	move	ra,t9800007b4:	03e00008 	jr	ra800007b8:	00000000 	nop800007bc:	3c048000 	lui	a0,0x8000800007c0:	2484284f 	addiu	a0,a0,10319800007c4:	0411ffc0 	bal	800006c8 <puts>800007c8:	00000000 	nop800007cc:	01402021 	move	a0,t2800007d0:	00000000 	nop800007d4:	0411ffa6 	bal	80000670 <put32>800007d8:	00000000 	nop800007dc:	3c048000 	lui	a0,0x8000800007e0:	24842865 	addiu	a0,a0,10341800007e4:	0411ffb8 	bal	800006c8 <puts>800007e8:	00000000 	nop800007ec:	02002021 	move	a0,s0800007f0:	0411ff9f 	bal	80000670 <put32>800007f4:	00000000 	nop800007f8:	0411ff8c 	bal	8000062c <com_outch>800007fc:	24040020 	li	a0,3280000800:	02202021 	move	a0,s180000804:	0411ff9a 	bal	80000670 <put32>80000808:	00000000 	nop8000080c:	0411ff87 	bal	8000062c <com_outch>80000810:	24040020 	li	a0,3280000814:	02402021 	move	a0,s280000818:	0411ff95 	bal	80000670 <put32>8000081c:	00000000 	nop80000820:	3c048000 	lui	a0,0x800080000824:	2484286f 	addiu	a0,a0,1035180000828:	0411ffa7 	bal	800006c8 <puts>8000082c:	00000000 	nop80000830:	02602021 	move	a0,s380000834:	0411ff8e 	bal	80000670 <put32>80000838:	00000000 	nop8000083c:	0411ff7b 	bal	8000062c <com_outch>80000840:	24040020 	li	a0,3280000844:	02802021 	move	a0,s480000848:	0411ff89 	bal	80000670 <put32>8000084c:	00000000 	nop80000850:	0411ff76 	bal	8000062c <com_outch>80000854:	24040020 	li	a0,3280000858:	02a02021 	move	a0,s58000085c:	0411ff84 	bal	80000670 <put32>80000860:	00000000 	nop80000864:	3c048000 	lui	a0,0x800080000868:	24842875 	addiu	a0,a0,103578000086c:	0411ff96 	bal	800006c8 <puts>80000870:	00000000 	nop80000874:	1000ffc4 	b	80000788 <doMemTestX+0x94>80000878:	00000000 	nop8000087c:	00000000 	nop80000880 <start_bios>:start_bios():80000880:	27bdffe8 	addiu	sp,sp,-2480000884:	afbf0014 	sw	ra,20(sp)80000888:	afbe0010 	sw	s8,16(sp)8000088c:	03a0f021 	move	s8,sp80000890:	0c000550 	jal	80001540 <eth_test>80000894:	00000000 	nop80000898:	03c0e821 	move	sp,s88000089c:	8fbf0014 	lw	ra,20(sp)800008a0:	8fbe0010 	lw	s8,16(sp)800008a4:	27bd0018 	addiu	sp,sp,24800008a8:	03e00008 	jr	ra800008ac:	00000000 	nop800008b0 <lcd_test>:lcd_test():800008b0:	27bdffd8 	addiu	sp,sp,-40800008b4:	afbf0024 	sw	ra,36(sp)800008b8:	afbe0020 	sw	s8,32(sp)800008bc:	03a0f021 	move	s8,sp800008c0:	24022300 	li	v0,8960800008c4:	afc2001c 	sw	v0,28(s8)800008c8:	afc00018 	sw	zero,24(s8)800008cc:	afc00014 	sw	zero,20(s8)800008d0:	240203e8 	li	v0,1000800008d4:	afc20010 	sw	v0,16(s8)800008d8:	3c028000 	lui	v0,0x8000800008dc:	24442880 	addiu	a0,v0,10368800008e0:	0c0004ff 	jal	800013fc <serial_puts>800008e4:	00000000 	nop800008e8:	3c040006 	lui	a0,0x6800008ec:	3c028000 	lui	v0,0x8000800008f0:	24452a40 	addiu	a1,v0,10816800008f4:	8fc6001c 	lw	a2,28(s8)800008f8:	0c000303 	jal	80000c0c <Fill_lcd_Buffer>800008fc:	00000000 	nop80000900:	3c04000b 	lui	a0,0xb80000904:	3c028000 	lui	v0,0x800080000908:	24452a40 	addiu	a1,v0,108168000090c:	8fc6001c 	lw	a2,28(s8)80000910:	0c000303 	jal	80000c0c <Fill_lcd_Buffer>80000914:	00000000 	nop

⌨️ 快捷键说明

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