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

📄 temp.lst

📁 FLASH的一些资料
💻 LST
📖 第 1 页 / 共 4 页
字号:
 213:temp.c        **** 	if (page<8192)
 1015               	.LM117:
 1016 04d2 8A81      		ldd r24,Y+2
 1017 04d4 9B81      		ldd r25,Y+3
 1018 04d6 20E2      		ldi r18,hi8(8192)
 1019 04d8 8030      		cpi r24,lo8(8192)
 1020 04da 9207      		cpc r25,r18
 1021 04dc 48F5      		brsh .L45
 214:temp.c        **** 	{
 215:temp.c        **** 		DF_SELECT_1;
 1023               	.LM118:
 1024 04de 8091 2300 		lds r24,35
 1025 04e2 8B7F      		andi r24,lo8(-5)
 1026 04e4 8093 2300 		sts 35,r24
 216:temp.c        **** 		if (buffer==1)
 1028               	.LM119:
 1029 04e8 8981      		ldd r24,Y+1
 1030 04ea 8130      		cpi r24,lo8(1)
 1031 04ec 21F4      		brne .L47
 217:temp.c        **** 			write_SPI(B1_TO_MM_PAGE_PROG_WITH_ERASE);
 1033               	.LM120:
 1034 04ee 83E8      		ldi r24,lo8(-125)
 1035 04f0 0E94 0000 		call write_SPI
 1036 04f4 03C0      		rjmp .L48
 1037               	.L47:
 218:temp.c        **** 		else
 219:temp.c        **** 			write_SPI(B2_TO_MM_PAGE_PROG_WITH_ERASE);
 1039               	.LM121:
 1040 04f6 86E8      		ldi r24,lo8(-122)
 1041 04f8 0E94 0000 		call write_SPI
 1042               	.L48:
 220:temp.c        **** 		write_SPI((unsigned char)(page>>5));
 1044               	.LM122:
 1045 04fc 8A81      		ldd r24,Y+2
 1046 04fe 9B81      		ldd r25,Y+3
 1047 0500 9695      		lsr r25
 1048 0502 8795      		ror r24
 1049 0504 9295      		swap r25
 1050 0506 8295      		swap r24
 1051 0508 8F70      		andi r24,0x0f
 1052 050a 8927      		eor r24,r25
 1053 050c 9F70      		andi r25,0x0f
 1054 050e 8927      		eor r24,r25
 1055 0510 0E94 0000 		call write_SPI
 221:temp.c        **** 		write_SPI((unsigned char)(page<<3));
 1057               	.LM123:
 1058 0514 8A81      		ldd r24,Y+2
 1059 0516 880F      		lsl r24
 1060 0518 880F      		lsl r24
 1061 051a 880F      		lsl r24
 1062 051c 0E94 0000 		call write_SPI
 222:temp.c        **** 		write_SPI(0x00);
 1064               	.LM124:
 1065 0520 80E0      		ldi r24,lo8(0)
 1066 0522 0E94 0000 		call write_SPI
 223:temp.c        **** 		DF_DESELECT_1;
 1068               	.LM125:
 1069 0526 8091 2300 		lds r24,35
 1070 052a 8460      		ori r24,lo8(4)
 1071 052c 8093 2300 		sts 35,r24
 224:temp.c        **** 	}
 225:temp.c        **** }
 1073               	.LM126:
 1074               	.L45:
 1075               	/* epilogue: frame size=3 */
 1076 0530 2396      		adiw r28,3
 1077 0532 0FB6      		in __tmp_reg__,__SREG__
 1078 0534 F894      		cli
 1079 0536 DEBF      		out __SP_H__,r29
 1080 0538 0FBE      		out __SREG__,__tmp_reg__
 1081 053a CDBF      		out __SP_L__,r28
 1082 053c DF91      		pop r29
 1083 053e CF91      		pop r28
 1084 0540 0895      		ret
 1085               	/* epilogue end (size=9) */
 1086               	/* function DF_buf_to_mm size 71 (52) */
 1088               	.Lscope9:
 1094               	.global	DF_write_buf_1
 1096               	DF_write_buf_1:
 226:temp.c        **** //将temp1,temp2数据写入指定缓冲区1
 227:temp.c        **** void DF_write_buf_1(unsigned int start_address,uint8_t temp1,uint8_t temp2)
 228:temp.c        **** {
 1098               	.LM127:
 1099               	/* prologue: frame size=4 */
 1100 0542 CF93      		push r28
 1101 0544 DF93      		push r29
 1102 0546 CDB7      		in r28,__SP_L__
 1103 0548 DEB7      		in r29,__SP_H__
 1104 054a 2497      		sbiw r28,4
 1105 054c 0FB6      		in __tmp_reg__,__SREG__
 1106 054e F894      		cli
 1107 0550 DEBF      		out __SP_H__,r29
 1108 0552 0FBE      		out __SREG__,__tmp_reg__
 1109 0554 CDBF      		out __SP_L__,r28
 1110               	/* prologue end (size=10) */
 1111 0556 8983      		std Y+1,r24
 1112 0558 9A83      		std Y+2,r25
 1113 055a 6B83      		std Y+3,r22
 1114 055c 4C83      		std Y+4,r20
 229:temp.c        **** 
 230:temp.c        **** 	//DF_wait_busy();
 231:temp.c        **** 	DF_SELECT_1;
 1116               	.LM128:
 1117 055e 8091 2300 		lds r24,35
 1118 0562 8B7F      		andi r24,lo8(-5)
 1119 0564 8093 2300 		sts 35,r24
 232:temp.c        **** 	Host_write_SPI(BUFFER_1_WRITE);
 1121               	.LM129:
 1122 0568 84E8      		ldi r24,lo8(-124)
 1123 056a 0E94 0000 		call Host_write_SPI
 233:temp.c        **** 	Host_write_SPI(0x00);
 1125               	.LM130:
 1126 056e 80E0      		ldi r24,lo8(0)
 1127 0570 0E94 0000 		call Host_write_SPI
 234:temp.c        **** 	Host_write_SPI((unsigned char)(start_address >> 8));   
 1129               	.LM131:
 1130 0574 8981      		ldd r24,Y+1
 1131 0576 9A81      		ldd r25,Y+2
 1132 0578 892F      		mov r24,r25
 1133 057a 9927      		clr r25
 1134 057c 0E94 0000 		call Host_write_SPI
 235:temp.c        **** 	Host_write_SPI((unsigned char)start_address);
 1136               	.LM132:
 1137 0580 8981      		ldd r24,Y+1
 1138 0582 0E94 0000 		call Host_write_SPI
 236:temp.c        **** 	Host_write_SPI(temp1);
 1140               	.LM133:
 1141 0586 8B81      		ldd r24,Y+3
 1142 0588 0E94 0000 		call Host_write_SPI
 237:temp.c        **** 	Host_write_SPI(temp2);
 1144               	.LM134:
 1145 058c 8C81      		ldd r24,Y+4
 1146 058e 0E94 0000 		call Host_write_SPI
 238:temp.c        **** 	DF_DESELECT_1;
 1148               	.LM135:
 1149 0592 8091 2300 		lds r24,35
 1150 0596 8460      		ori r24,lo8(4)
 1151 0598 8093 2300 		sts 35,r24
 239:temp.c        **** }
 1153               	.LM136:
 1154               	/* epilogue: frame size=4 */
 1155 059c 2496      		adiw r28,4
 1156 059e 0FB6      		in __tmp_reg__,__SREG__
 1157 05a0 F894      		cli
 1158 05a2 DEBF      		out __SP_H__,r29
 1159 05a4 0FBE      		out __SREG__,__tmp_reg__
 1160 05a6 CDBF      		out __SP_L__,r28
 1161 05a8 DF91      		pop r29
 1162 05aa CF91      		pop r28
 1163 05ac 0895      		ret
 1164               	/* epilogue end (size=9) */
 1165               	/* function DF_write_buf_1 size 54 (35) */
 1167               	.Lscope10:
 1173               	.global	DF_write_buf_2
 1175               	DF_write_buf_2:
 240:temp.c        **** //将temp1,temp2数据写入指定缓冲区2
 241:temp.c        **** void DF_write_buf_2(unsigned int start_address,uint8_t temp1,uint8_t temp2)
 242:temp.c        **** {
 1177               	.LM137:
 1178               	/* prologue: frame size=4 */
 1179 05ae CF93      		push r28
 1180 05b0 DF93      		push r29
 1181 05b2 CDB7      		in r28,__SP_L__
 1182 05b4 DEB7      		in r29,__SP_H__
 1183 05b6 2497      		sbiw r28,4
 1184 05b8 0FB6      		in __tmp_reg__,__SREG__
 1185 05ba F894      		cli
 1186 05bc DEBF      		out __SP_H__,r29
 1187 05be 0FBE      		out __SREG__,__tmp_reg__
 1188 05c0 CDBF      		out __SP_L__,r28
 1189               	/* prologue end (size=10) */
 1190 05c2 8983      		std Y+1,r24
 1191 05c4 9A83      		std Y+2,r25
 1192 05c6 6B83      		std Y+3,r22
 1193 05c8 4C83      		std Y+4,r20
 243:temp.c        **** 
 244:temp.c        **** 	//DF_wait_busy();
 245:temp.c        **** 	DF_SELECT_1;
 1195               	.LM138:
 1196 05ca 8091 2300 		lds r24,35
 1197 05ce 8B7F      		andi r24,lo8(-5)
 1198 05d0 8093 2300 		sts 35,r24
 246:temp.c        **** 	Host_write_SPI(BUFFER_2_WRITE);
 1200               	.LM139:
 1201 05d4 87E8      		ldi r24,lo8(-121)
 1202 05d6 0E94 0000 		call Host_write_SPI
 247:temp.c        **** 	Host_write_SPI(0x00);
 1204               	.LM140:
 1205 05da 80E0      		ldi r24,lo8(0)
 1206 05dc 0E94 0000 		call Host_write_SPI
 248:temp.c        **** 	Host_write_SPI((unsigned char)(start_address >> 8));   
 1208               	.LM141:
 1209 05e0 8981      		ldd r24,Y+1
 1210 05e2 9A81      		ldd r25,Y+2
 1211 05e4 892F      		mov r24,r25
 1212 05e6 9927      		clr r25
 1213 05e8 0E94 0000 		call Host_write_SPI
 249:temp.c        **** 	Host_write_SPI((unsigned char)start_address);
 1215               	.LM142:
 1216 05ec 8981      		ldd r24,Y+1
 1217 05ee 0E94 0000 		call Host_write_SPI
 250:temp.c        **** 	Host_write_SPI(temp1);
 1219               	.LM143:
 1220 05f2 8B81      		ldd r24,Y+3
 1221 05f4 0E94 0000 		call Host_write_SPI
 251:temp.c        **** 	Host_write_SPI(temp2);
 1223               	.LM144:
 1224 05f8 8C81      		ldd r24,Y+4
 1225 05fa 0E94 0000 		call Host_write_SPI
 252:temp.c        **** 	DF_DESELECT_1;
 1227               	.LM145:
 1228 05fe 8091 2300 		lds r24,35
 1229 0602 8460      		ori r24,lo8(4)
 1230 0604 8093 2300 		sts 35,r24
 253:temp.c        **** }
 1232               	.LM146:
 1233               	/* epilogue: frame size=4 */
 1234 0608 2496      		adiw r28,4
 1235 060a 0FB6      		in __tmp_reg__,__SREG__
 1236 060c F894      		cli
 1237 060e DEBF      		out __SP_H__,r29
 1238 0610 0FBE      		out __SREG__,__tmp_reg__
 1239 0612 CDBF      		out __SP_L__,r28
 1240 0614 DF91      		pop r29
 1241 0616 CF91      		pop r28
 1242 0618 0895      		ret
 1243               	/* epilogue end (size=9) */
 1244               	/* function DF_write_buf_2 size 54 (35) */
 1246               	.Lscope11:
 1249               	.global	main
 1251               	main:
 254:temp.c        **** int main()
 255:temp.c        **** {	
 1253               	.LM147:
 1254               	/* prologue: frame size=1025 */
 1255 061a C0E0      		ldi r28,lo8(__stack - 1025)
 1256 061c D0E0      		ldi r29,hi8(__stack - 1025)
 1257 061e DEBF      		out __SP_H__,r29
 1258 0620 CDBF      		out __SP_L__,r28
 1259               	/* prologue end (size=4) */
 256:temp.c        **** 	uint8_t DF_buffer[1024],temp=0;
 1261               	.LM148:
 1262 0622 FE01      		movw r30,r28
 1263               	.LBB9:
 1264 0624 EF5F      		subi r30,lo8(-(1025))
 1265 0626 FB4F      		sbci r31,hi8(-(1025))
 1266 0628 1082      		st Z,__zero_reg__
 257:temp.c        **** 	df_init();
 1268               	.LM149:
 1269 062a 0E94 0000 		call df_init
 258:temp.c        **** 	//DF_write_buf_1(0,1,1);
 259:temp.c        **** 	DF_wait_busy();
 1271               	.LM150:
 1272 062e 0E94 0000 		call DF_wait_busy
 260:temp.c        **** 	temp=DF_read_reg();
 1274               	.LM151:
 1275 0632 0E94 0000 		call DF_read_reg
 1276 0636 FE01      		movw r30,r28
 1277 0638 EF5F      		subi r30,lo8(-(1025))
 1278 063a FB4F      		sbci r31,hi8(-(1025))
 1279 063c 8083      		st Z,r24
 261:temp.c        **** 	//DF_buf_to_mm(1,1000);
 262:temp.c        **** 	DF_wait_busy();
 1281               	.LM152:
 1282 063e 0E94 0000 		call DF_wait_busy
 263:temp.c        **** 	DF_MM_read(1081,0,DF_buffer,1000);
 1284               	.LM153:
 1285 0642 28EE      		ldi r18,lo8(1000)
 1286 0644 33E0      		ldi r19,hi8(1000)
 1287 0646 AE01      		movw r20,r28
 1288 0648 4F5F      		subi r20,lo8(-(1))
 1289 064a 5F4F      		sbci r21,hi8(-(1))
 1290 064c 60E0      		ldi r22,lo8(0)
 1291 064e 70E0      		ldi r23,hi8(0)
 1292 0650 89E3      		ldi r24,lo8(1081)
 1293 0652 94E0      		ldi r25,hi8(1081)
 1294 0654 0E94 0000 		call DF_MM_read
 264:temp.c        **** 	while(1);
 1296               	.LM154:
 1297               	.L52:
 1298 0658 FFCF      		rjmp .L52
 265:temp.c        **** }...
 1300               	.LM155:
 1301               	.LBE9:
 1302               	/* epilogue: frame size=1025 */
 1303               	/* epilogue: noreturn */
 1304               	/* epilogue end (size=0) */
 1305               	/* function main size 32 (28) */
 1311               	.Lscope12:
 1313               		.text
 1315               	Letext:
 1316               	/* File "temp.c": code  813 = 0x032d ( 593), prologues 118, epilogues 102 */
DEFINED SYMBOLS
                            *ABS*:00000000 temp.c
                            *ABS*:0000003f __SREG__
                            *ABS*:0000003e __SP_H__
                            *ABS*:0000003d __SP_L__
                            *ABS*:00000000 __tmp_reg__
                            *ABS*:00000001 __zero_reg__
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:93     .text:00000000 spi_initial
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:159    .text:00000050 write_SPI
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:219    .text:00000090 Host_write_SPI
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:265    .text:000000c6 df_init
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:351    .text:00000150 DF_read_reg
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:418    .text:000001a0 DF_wait_busy
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:502    .text:00000206 DF_format
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:657    .text:000002da DF_MM_read
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:837    .text:000003de DF_write_buf
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:993    .text:000004b4 DF_buf_to_mm
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:1096   .text:00000542 DF_write_buf_1
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:1175   .text:000005ae DF_write_buf_2
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:1251   .text:0000061a main
C:\DOCUME~1\HUANGJ~1\LOCALS~1\Temp/ccIVaaaa.s:1315   .text:0000065a Letext

UNDEFINED SYMBOLS
__do_copy_data
__do_clear_bss
__stack

⌨️ 快捷键说明

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