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

📄 httpserv.lst

📁 单片机C语言程序设计实训100例--基于AVR+PROTEUS仿真
💻 LST
📖 第 1 页 / 共 4 页
字号:
 657               	.LC33:
 658 01dd 7061 7373 		.string	"pass2"
 658      3200 
 659               	.LC34:
 660 01e3 4F6B 00   		.string	"Ok"
 661               	.LC35:
 662 01e6 3C68 746D 		.string	"<html><head><title>\311\350\326\303\271\334\300\355\324\261\303\334\302\353</title></head
 662      6C3E 3C68 
 662      6561 643E 
 662      3C74 6974 
 662      6C65 3EC9 
 663               	.LC36:
 664 0217 3C62 6F64 		.string	"<body><br><H1>\267\265\273\330\320\305\317\242:</H1><br>"
 664      793E 3C62 
 664      723E 3C48 
 664      313E B7B5 
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 14


 664      BBD8 D0C5 
 665               	.LC37:
 666 0238 3C66 6F6E 		.string	"<font color='%s'>%s</font><br></body></html>"
 666      7420 636F 
 666      6C6F 723D 
 666      2725 7327 
 666      3E25 733C 
 667               	.LC38:
 668 0265 2330 3030 		.string	"#0000FF"
 668      3046 4600 
 669               	.LC39:
 670 026d C3DC C2EB 		.string	"\303\334\302\353\261\273\263\311\271\246\261\243\264\346!!!"
 670      B1BB B3C9 
 670      B9A6 B1A3 
 670      B4E6 2121 
 670      2100 
 671               	.LC40:
 672 027f 2346 4630 		.string	"#FF0000"
 672      3030 3000 
 673               	.LC41:
 674 0287 2A2A C3DC 		.string	"**\303\334\302\353\316\264\304\334\261\243\264\346**"
 674      C2EB CEB4 
 674      C4DC B1A3 
 674      B4E6 2A2A 
 674      00
 675               		.text
 676               		.type	setpassword, @function
 677               	setpassword:
 678 0466 DF92      		push r13
 679 0468 EF92      		push r14
 680 046a FF92      		push r15
 681 046c 0F93      		push r16
 682 046e 1F93      		push r17
 683 0470 CF93      		push r28
 684 0472 DF93      		push r29
 685               	/* prologue: function */
 686               	/* frame size = 0 */
 687 0474 7C01      		movw r14,r24
 688 0476 8B01      		movw r16,r22
 689 0478 CB01      		movw r24,r22
 690 047a 60E0      		ldi r22,lo8(.LC32)
 691 047c 70E0      		ldi r23,hi8(.LC32)
 692 047e 0E94 0000 		call NutHttpGetParameter
 693 0482 EC01      		movw r28,r24
 694 0484 C801      		movw r24,r16
 695 0486 60E0      		ldi r22,lo8(.LC33)
 696 0488 70E0      		ldi r23,hi8(.LC33)
 697 048a 0E94 0000 		call NutHttpGetParameter
 698 048e BC01      		movw r22,r24
 699 0490 CE01      		movw r24,r28
 700 0492 0E94 0000 		call strcmp
 701 0496 0097      		sbiw r24,0
 702 0498 01F4      		brne .L37
 703 049a 8881      		ld r24,Y
 704 049c 8823      		tst r24
 705 049e 01F0      		breq .L37
 706 04a0 FE01      		movw r30,r28
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 15


 707 04a2 0190      		ld __tmp_reg__,Z+
 708 04a4 0020      		tst __tmp_reg__
 709 04a6 01F4      		brne .-6
 710 04a8 3197      		sbiw r30,1
 711 04aa EC1B      		sub r30,r28
 712 04ac FD0B      		sbc r31,r29
 713 04ae 3B97      		sbiw r30,11
 714 04b0 00F4      		brsh .L37
 715 04b2 80E0      		ldi r24,lo8(admin_password+5)
 716 04b4 90E0      		ldi r25,hi8(admin_password+5)
 717 04b6 BE01      		movw r22,r28
 718 04b8 0E94 0000 		call strcpy
 719 04bc DE01      		movw r26,r28
 720 04be 0D90      		ld __tmp_reg__,X+
 721 04c0 0020      		tst __tmp_reg__
 722 04c2 01F4      		brne .-6
 723 04c4 1197      		sbiw r26,1
 724 04c6 AC1B      		sub r26,r28
 725 04c8 BD0B      		sbc r27,r29
 726 04ca 80EA      		ldi r24,lo8(160)
 727 04cc 90E0      		ldi r25,hi8(160)
 728 04ce BE01      		movw r22,r28
 729 04d0 AD01      		movw r20,r26
 730 04d2 20E0      		ldi r18,lo8(gs(eeprom_write_byte))
 731 04d4 30E0      		ldi r19,hi8(gs(eeprom_write_byte))
 732 04d6 0E94 0000 		call __eewr_block
 733 04da 0E94 0000 		call NutClearAuth
 734 04de 80E0      		ldi r24,lo8(.LC18)
 735 04e0 90E0      		ldi r25,hi8(.LC18)
 736 04e2 60E0      		ldi r22,lo8(admin_password)
 737 04e4 70E0      		ldi r23,hi8(admin_password)
 738 04e6 0E94 0000 		call NutRegisterAuth
 739 04ea DD24      		clr r13
 740 04ec D394      		inc r13
 741 04ee 00C0      		rjmp .L38
 742               	.L37:
 743 04f0 DD24      		clr r13
 744               	.L38:
 745 04f2 C701      		movw r24,r14
 746 04f4 B801      		movw r22,r16
 747 04f6 48EC      		ldi r20,lo8(200)
 748 04f8 50E0      		ldi r21,hi8(200)
 749 04fa 20E0      		ldi r18,lo8(.LC34)
 750 04fc 30E0      		ldi r19,hi8(.LC34)
 751 04fe 0E94 0000 		call NutHttpSendHeaderTop
 752 0502 4091 0000 		lds r20,html_mt
 753 0506 5091 0000 		lds r21,(html_mt)+1
 754 050a C701      		movw r24,r14
 755 050c B801      		movw r22,r16
 756 050e 0FEF      		ldi r16,lo8(-1)
 757 0510 1FEF      		ldi r17,hi8(-1)
 758 0512 2FEF      		ldi r18,hlo8(-1)
 759 0514 3FEF      		ldi r19,hhi8(-1)
 760 0516 0E94 0000 		call NutHttpSendHeaderBottom
 761 051a 80E0      		ldi r24,lo8(.LC35)
 762 051c 90E0      		ldi r25,hi8(.LC35)
 763 051e B701      		movw r22,r14
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 16


 764 0520 0E94 0000 		call fputs
 765 0524 80E0      		ldi r24,lo8(.LC36)
 766 0526 90E0      		ldi r25,hi8(.LC36)
 767 0528 B701      		movw r22,r14
 768 052a 0E94 0000 		call fputs
 769 052e 80E0      		ldi r24,lo8(.LC37)
 770 0530 90E0      		ldi r25,hi8(.LC37)
 771 0532 DD20      		tst r13
 772 0534 01F0      		breq .L39
 773 0536 2DB7      		in r18,__SP_L__
 774 0538 3EB7      		in r19,__SP_H__
 775 053a 2850      		subi r18,lo8(-(-8))
 776 053c 3040      		sbci r19,hi8(-(-8))
 777 053e 0FB6      		in __tmp_reg__,__SREG__
 778 0540 F894      		cli
 779 0542 3EBF      		out __SP_H__,r19
 780 0544 0FBE      		out __SREG__,__tmp_reg__
 781 0546 2DBF      		out __SP_L__,r18
 782 0548 EDB7      		in r30,__SP_L__
 783 054a FEB7      		in r31,__SP_H__
 784 054c 3196      		adiw r30,1
 785 054e ADB7      		in r26,__SP_L__
 786 0550 BEB7      		in r27,__SP_H__
 787 0552 1296      		adiw r26,1+1
 788 0554 FC92      		st X,r15
 789 0556 EE92      		st -X,r14
 790 0558 1197      		sbiw r26,1
 791 055a 9383      		std Z+3,r25
 792 055c 8283      		std Z+2,r24
 793 055e 80E0      		ldi r24,lo8(.LC38)
 794 0560 90E0      		ldi r25,hi8(.LC38)
 795 0562 9583      		std Z+5,r25
 796 0564 8483      		std Z+4,r24
 797 0566 80E0      		ldi r24,lo8(.LC39)
 798 0568 90E0      		ldi r25,hi8(.LC39)
 799 056a 00C0      		rjmp .L42
 800               	.L39:
 801 056c ADB7      		in r26,__SP_L__
 802 056e BEB7      		in r27,__SP_H__
 803 0570 1897      		sbiw r26,8
 804 0572 0FB6      		in __tmp_reg__,__SREG__
 805 0574 F894      		cli
 806 0576 BEBF      		out __SP_H__,r27
 807 0578 0FBE      		out __SREG__,__tmp_reg__
 808 057a ADBF      		out __SP_L__,r26
 809 057c EDB7      		in r30,__SP_L__
 810 057e FEB7      		in r31,__SP_H__
 811 0580 3196      		adiw r30,1
 812 0582 1296      		adiw r26,1+1
 813 0584 FC92      		st X,r15
 814 0586 EE92      		st -X,r14
 815 0588 1197      		sbiw r26,1
 816 058a 9383      		std Z+3,r25
 817 058c 8283      		std Z+2,r24
 818 058e 80E0      		ldi r24,lo8(.LC40)
 819 0590 90E0      		ldi r25,hi8(.LC40)
 820 0592 9583      		std Z+5,r25
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 17


 821 0594 8483      		std Z+4,r24
 822 0596 80E0      		ldi r24,lo8(.LC41)
 823 0598 90E0      		ldi r25,hi8(.LC41)
 824               	.L42:
 825 059a 9783      		std Z+7,r25
 826 059c 8683      		std Z+6,r24
 827 059e 0E94 0000 		call fprintf
 828 05a2 2DB7      		in r18,__SP_L__
 829 05a4 3EB7      		in r19,__SP_H__
 830 05a6 285F      		subi r18,lo8(-(8))
 831 05a8 3F4F      		sbci r19,hi8(-(8))
 832 05aa 0FB6      		in __tmp_reg__,__SREG__
 833 05ac F894      		cli
 834 05ae 3EBF      		out __SP_H__,r19
 835 05b0 0FBE      		out __SREG__,__tmp_reg__
 836 05b2 2DBF      		out __SP_L__,r18
 837 05b4 C701      		movw r24,r14
 838 05b6 0E94 0000 		call fflush
 839 05ba 80E0      		ldi r24,lo8(0)
 840 05bc 90E0      		ldi r25,hi8(0)
 841               	/* epilogue start */
 842 05be DF91      		pop r29
 843 05c0 CF91      		pop r28
 844 05c2 1F91      		pop r17
 845 05c4 0F91      		pop r16
 846 05c6 FF90      		pop r15
 847 05c8 EF90      		pop r14
 848 05ca DF90      		pop r13
 849 05cc 0895      		ret
 850               		.size	setpassword, .-setpassword
 851               		.data
 852               	.LC42:
 853 0298 7061 7261 		.string	"para"
 853      00
 854               	.LC43:
 855 029d 4745 544C 		.string	"GETLEDSTATUS"
 855      4544 5354 
 855      4154 5553 
 855      00
 856               	.LC44:
 857 02aa 5354 4152 		.string	"STARTMOTOR"
 857      544D 4F54 
 857      4F52 00
 858               	.LC45:
 859 02b5 5354 4F50 		.string	"STOPMOTOR"
 859      4D4F 544F 
 859      5200 
 860               		.text
 861               		.type	mcu_control, @function
 862               	mcu_control:
 863 05ce 8F92      		push r8
 864 05d0 9F92      		push r9
 865 05d2 AF92      		push r10
 866 05d4 BF92      		push r11
 867 05d6 CF92      		push r12
 868 05d8 DF92      		push r13
 869 05da EF92      		push r14
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 18


 870 05dc FF92      		push r15
 871 05de 0F93      		push r16
 872 05e0 1F93      		push r17
 873 05e2 CF93      		push r28
 874 05e4 DF93      		push r29
 875               	/* prologue: function */
 876               	/* frame size = 0 */
 877 05e6 4C01      		movw r8,r24
 878 05e8 5B01      		movw r10,r22
 879 05ea CB01      		movw r24,r22
 880 05ec 60E0      		ldi r22,lo8(0)
 881 05ee 70E0      		ldi r23,hi8(0)
 882 05f0 0E94 0000 		call NutHttpGetParameterName
 883 05f4 8C01      		movw r16,r24
 884 05f6 C501      		movw r24,r10
 885 05f8 60E0      		ldi r22,lo8(0)
 886 05fa 70E0      		ldi r23,hi8(0)
 887 05fc 0E94 0000 		call NutHttpGetParameterValue
 888 0600 EC01      		movw r28,r24
 889 0602 C801      		movw r24,r16
 890 0604 60E0      		ldi r22,lo8(.LC42)
 891 0606 70E0      		ldi r23,hi8(.LC42)
 892 0608 0E94 0000 		call strcmp
 893 060c 0097      		sbiw r24,0
 894 060e 01F4      		brne .L44
 895 0610 CE01      		movw r24,r28
 896 0612 60E0      		ldi r22,lo8(.LC43)
 897 0614 70E0      		ldi r23,hi8(.LC43)
 898 0616 0E94 0000 		call strcmp
 899 061a 0097      		sbiw r24,0
 900 061c 01F0      		breq .L44
 901 061e CE01      		movw r24,r28
 902 0620 60E0      		ldi r22,lo8(.LC44)
 903 0622 70E0      		ldi r23,hi8(.LC44)
 904 0624 0E94 0000 		call strcmp
 905 0628 0097      		sbiw r24,0
 906 062a 01F4      		brne .L45
 907 062c 8091 6200 		lds r24,98
 908 0630 8160      		ori r24,lo8(1)
 909 0632 00C0      		rjmp .L47
 910               	.L45:
 911 0634 CE01      		movw r24,r28
 912 0636 60E0      		ldi r22,lo8(.LC45)
 913 0638 70E0      		ldi r23,hi8(.LC45)
 914 063a 0E94 0000 		call strcmp
 915 063e 0097      		sbiw r24,0
 916 0640 01F4      		brne .L44
 917 0642 8091 6200 		lds r24,98
 918 0646 8E7F      		andi r24,lo8(-2)
 919               	.L47:
 920 0648 8093 6200 		sts 98,r24
 921               	.L44:
 922 064c E090 6200 		lds r14,98
 923 0650 C090 6200 		lds r12,98
 924 0654 C401      		movw r24,r8
 925 0656 B501      		movw r22,r10
 926 0658 48EC      		ldi r20,lo8(200)
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 19


 927 065a 50E0      		ldi r21,hi8(200)
 928 065c 20E0      		ldi r18,lo8(.LC34)
 929 065e 30E0      		ldi r19,hi8(.LC34)
 930 0660 0E94 0000 		call NutHttpSendHeaderTop
 931 0664 4091 0000 		lds r20,html_mt
 932 0668 5091 0000 		lds r21,(html_mt)+1
 933 066c C401      		movw r24,r8
 934 066e B501      		movw r22,r10
 935 0670 0FEF      		ldi r16,lo8(-1)
 936 0672 1FEF      		ldi r17,hi8(-1)
 937 0674 2FEF      		ldi r18,hlo8(-1)
 938 0676 3FEF      		ldi r19,hhi8(-1)
 939 0678 0E94 0000 		call NutHttpSendHeaderBottom
 940 067c FF24      		clr r15
 941 067e A6E0      		ldi r26,6
 942 0680 F694      	1:	lsr r15
 943 0682 E794      		ror r14
 944 0684 AA95      		dec r26
 945 0686 01F4      		brne 1b
 946 0688 E094      		com r14
 947 068a F094      		com r15
 948 068c 81E0      		ldi r24,lo8(1)
 949 068e E822      		and r14,r24
 950 0690 FF24      		clr r15
 951 0692 DD24      		clr r13
 952 0694 81E0      		ldi r24,lo8(1)
 953 0696 C822      		and r12,r24
 954 0698 DD24      		clr r13
 955 069a C401      		movw r24,r8
 956 069c B701      		movw r22,r14
 957 069e A601      		movw r20,r12
 958 06a0 0E94 0000 		call create_status_webpage
 959 06a4 C401      		movw r24,r8
 960 06a6 0E94 0000 		call fflush
 961 06aa 80E0      		ldi r24,lo8(0)
 962 06ac 90E0      		ldi r25,hi8(0)
 963               	/* epilogue start */
 964 06ae DF91      		pop r29
 965 06b0 CF91      		pop r28
 966 06b2 1F91      		pop r17
 967 06b4 0F91      		pop r16
 968 06b6 FF90      		pop r15
 969 06b8 EF90      		pop r14
 970 06ba DF90      		pop r13
 971 06bc CF90      		pop r12
 972 06be BF90      		pop r11
 973 06c0 AF90      		pop r10
 974 06c2 9F90      		pop r9
 975 06c4 8F90      		pop r8
 976 06c6 0895      		ret
 977               		.size	mcu_control, .-mcu_control
 978               		.data
 979               	.LC46:
 980 02bf 5B25 755D 		.string	"[%u] Creating socket failed\n"
 980      2043 7265 
 980      6174 696E 
 980      6720 736F 
GAS LISTING C:\DOCUME~1\PW\LOCALS~1\Temp/cc6jm71L.s 			page 20


 980      636B 6574 
 981               	.LC47:
 982 02dc 5B25 755D 		.string	"[%u] Connected, %u bytes free\n"

⌨️ 快捷键说明

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