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

📄 t_shuanglong.lst

📁 PIC16F 系列制作的空调控制器 全部资料 软件硬件
💻 LST
📖 第 1 页 / 共 5 页
字号:
   247                           	psect	text2,local,class=CODE,delta=2
   248                           	psect	text2
   249                           	global	_key_input
   250                           	signat	_key_input,88
   251                           	line	197
   252                           
   253  0C32                     _key_input
   254                           	global	_KEY_VALUE
   255                           ;	_V assigned to ?a_key_input+0
   256  0000                     _key_input$V	set	?a_key_input+0
   257                           ;	_j assigned to ?a_key_input+1
   258  0000                     _key_input$j	set	?a_key_input+1
   259                           ;T_shuanglong.c: 198: unsigned char j;
   260                           	line	200
   261  0C32  1283               	bcf	status,5
   262  0C33  1303               	bcf	status,6	;carry unused
   263  0C34  1708               	bsf	(((08h)))+(6/8),(6)&7	;volatile
   264                           ;T_shuanglong.c: 201: asm("nop");
   265                           	line	201
   266                           # 201 "E:\DEBUG\shuanglong_tester\T_shuanglong.
                                 c"
   267  0C35  0000               nop ;#
   268                           ;T_shuanglong.c: 202: ((PORTD) |= (1<<(5)));
   269                           	psect	text2
   270                           	line	202
   271  0C36  1688               	bsf	(((08h)))+(5/8),(5)&7	;volatile
   272                           ;T_shuanglong.c: 203: asm("nop");
   273                           	line	203
   274                           # 203 "E:\DEBUG\shuanglong_tester\T_shuanglong.
                                 c"
   275  0C37  0000               nop ;#
   276                           ;T_shuanglong.c: 204: ((PORTD) &= ~(1<<(6)));
   277                           	psect	text2
   278                           	line	204
   279  0C38  1308               	bcf	(((08h)))+(6/8),(6)&7	;volatile
   280                           ;T_shuanglong.c: 205: KEY_VALUE.byte=0x00;
   281                           	line	205
   282  0C39  01A3               	clrf	(((_KEY_VALUE)))
   283                           ;T_shuanglong.c: 206: V=0x80;
   284                           	line	206
   285  0C3A  3080               	movlw	((-128))
   286                           	
   287  0C3B  00B1               	movwf	(((?a_key_input+0)))
   288                           ;T_shuanglong.c: 207: for(j=8;j>0;j--)
   289                           	line	207
   290  0C3C  3008               	movlw	((08h))
   291                           	
   292  0C3D  00B2               	movwf	(((?a_key_input+1)))
   293  0C3E  2C3F               	goto	l22
   294                           	line	208
   295                           
   296  0C3F                     l22
   297                           ;T_shuanglong.c: 208: {
   298                           ;T_shuanglong.c: 209: ((PORTD) &= ~(1<<(5)));
   299                           	line	209
   300  0C3F  1288               	bcf	(((08h)))+(5/8),(5)&7	;volatile
   301                           ;T_shuanglong.c: 210: if(RD7)KEY_VALUE.byte|=V;
   302                           	line	210
   303  0C40  1F88               	btfss	(047h/8),(047h)&7
   304  0C41  2C43               	goto	u81
   305  0C42  2C44               	goto	u80
   306  0C43                     u81
   307  0C43  2C46               	goto	l25
   308  0C44                     u80
   309  0C44  0831               	movf	(((?a_key_input+0))),w
   310  0C45  04A3               	iorwf	(((_KEY_VALUE)))
   311                           
   312  0C46                     l25
   313                           ;T_shuanglong.c: 211: V=V>>1;
   314                           	line	211
   315  0C46  1003               	bcf	status,0
   316  0C47  0CB1               	rrf	(((?a_key_input+0)))
   317                           ;T_shuanglong.c: 212: ((PORTD) |= (1<<(5)));
   318                           	line	212
   319  0C48  1688               	bsf	(((08h)))+(5/8),(5)&7	;volatile
   320                           ;T_shuanglong.c: 213: }
   321                           	line	207
   322  0C49  03B2               	decf	(((?a_key_input+1)))
   323  0C4A  08B2               	movf	(((?a_key_input+1)))
   324  0C4B  1D03               	btfss	status,2
   325  0C4C  2C4E               	goto	u91
   326  0C4D  2C4F               	goto	u90
   327  0C4E                     u91
   328  0C4E  2C3F               	goto	l22
   329  0C4F                     u90
   330                           
   331  0C4F                     l23
   332                           ;T_shuanglong.c: 214: ((PORTD) &= ~(1<<(5)));
   333                           	line	214
   334  0C4F  1288               	bcf	(((08h)))+(5/8),(5)&7	;volatile
   335                           ;T_shuanglong.c: 215: asm("nop");
   336                           	line	215
   337                           # 215 "E:\DEBUG\shuanglong_tester\T_shuanglong.
                                 c"
   338  0C50  0000               nop ;#
   339                           ;T_shuanglong.c: 216: ((PORTD) |= (1<<(6)));
   340                           	psect	text2
   341                           	line	216
   342  0C51  1708               	bsf	(((08h)))+(6/8),(6)&7	;volatile
   343                           ;T_shuanglong.c: 217: }
   344                           	line	217
   345  0C52                     l21
   346  0C52  0008               	return
   347                           	FNSIZE	_key_input,2,0
   348                           	global	?a_key_input
   349                           ;T_shuanglong.c: 221: void refrush_led(void)
   350                           
   351                           ;T_shuanglong.c: 222: {
   352                           
   353                           	psect	text3,local,class=CODE,delta=2
   354                           	psect	text3
   355                           	global	_refrush_led
   356                           	signat	_refrush_led,88
   357                           	line	222
   358                           
   359  0C53                     _refrush_led
   360                           ;	_j assigned to ?a_refrush_led+0
   361  0000                     _refrush_led$j	set	?a_refrush_led+0
   362                           ;	_temp assigned to ?a_refrush_led+1
   363  0000                     _refrush_led$temp	set	?a_refrush_led+1
   364                           ;	_i assigned to ?a_refrush_led+2
   365  0000                     _refrush_led$i	set	?a_refrush_led+2
   366                           ;T_shuanglong.c: 223: unsigned char i,j,temp;
   367                           	line	224
   368  0C53  1283               	bcf	status,5
   369  0C54  1303               	bcf	status,6	;carry unused
   370  0C55  1208               	bcf	(044h/8),(044h)&7
   371                           ;T_shuanglong.c: 225: for(i=0;i<4;i++)
   372                           	line	225
   373  0C56  01C4               	clrf	(((?a_refrush_led+2)))
   374  0C57  2C58               	goto	l27
   375                           	line	226
   376                           
   377  0C58                     l27
   378                           ;T_shuanglong.c: 226: {
   379                           ;T_shuanglong.c: 227: temp=led[i];
   380                           	line	227
   381  0C58  0844               	movf	(((?a_refrush_led+2))),w
   382  0C59  3E47               	addlw	((_led))
   383  0C5A  0084               	movwf	fsr
   384                           	
   385  0C5B  1383               	bcf	3,7
   386  0C5C  0800               	movf	0,w
   387                           	
   388  0C5D  00C3               	movwf	(((?a_refrush_led+1)))
   389                           ;T_shuanglong.c: 228: for(j=0;j<8;j++)
   390                           	line	228
   391  0C5E  01C2               	clrf	(((?a_refrush_led+0)))
   392  0C5F  2C60               	goto	l30
   393                           	line	229
   394                           
   395  0C60                     l30
   396                           ;T_shuanglong.c: 229: {
   397                           ;T_shuanglong.c: 230: RC3=0;
   398                           	line	230
   399  0C60  1187               	bcf	(03Bh/8),(03Bh)&7
   400                           ;T_shuanglong.c: 231: asm("nop");
   401                           	line	231
   402                           # 231 "E:\DEBUG\shuanglong_tester\T_shuanglong.
                                 c"
   403  0C61  0000               nop ;#
   404                           ;T_shuanglong.c: 232: RC5=temp&0x01;
   405                           	psect	text3
   406                           	line	232
   407  0C62  0C43               	rrf	(((?a_refrush_led+1))),w
   408  0C63  1803               	btfsc	status,0
   409  0C64  2C66               	goto	u101
   410  0C65  2C68               	goto	u100
   411                           	
   412  0C66                     u101
   413  0C66  1687               	bsf	(03Dh/8),(03Dh)&7
   414  0C67  2C69               	goto	u114
   415  0C68                     u100
   416  0C68  1287               	bcf	(03Dh/8),(03Dh)&7
   417  0C69                     u114
   418                           ;T_shuanglong.c: 233: asm("nop");
   419                           	line	233
   420                           # 233 "E:\DEBUG\shuanglong_tester\T_shuanglong.
                                 c"
   421  0C69  0000               nop ;#
   422                           ;T_shuanglong.c: 234: RC3=1;
   423                           	psect	text3
   424                           	line	234
   425  0C6A  1283               	bcf	status,5
   426  0C6B  1303               	bcf	status,6	;carry unused
   427  0C6C  1587               	bsf	(03Bh/8),(03Bh)&7
   428                           ;T_shuanglong.c: 235: temp>>=1;
   429                           	line	235
   430  0C6D  1003               	bcf	status,0
   431  0C6E  0CC3               	rrf	(((?a_refrush_led+1)))
   432                           ;T_shuanglong.c: 236: }
   433                           	line	228
   434  0C6F  0AC2               	incf	(((?a_refrush_led+0)))
   435  0C70  3008               	movlw	((08h))
   436  0C71  0242               	subwf	(((?a_refrush_led+0))),w
   437  0C72  1C03               	btfss	status,0
   438  0C73  2C75               	goto	u121
   439  0C74  2C76               	goto	u120
   440  0C75                     u121
   441  0C75  2C60               	goto	l30
   442  0C76                     u120
   443                           
   444  0C76                     l31
   445                           ;T_shuanglong.c: 237: }
   446                           	line	225
   447  0C76  0AC4               	incf	(((?a_refrush_led+2)))
   448  0C77  3004               	movlw	((04h))
   449  0C78  0244               	subwf	(((?a_refrush_led+2))),w
   450  0C79  1C03               	btfss	status,0
   451  0C7A  2C7C               	goto	u131
   452  0C7B  2C7D               	goto	u130
   453  0C7C                     u131
   454  0C7C  2C58               	goto	l27
   455  0C7D                     u130
   456                           
   457  0C7D                     l28
   458                           ;T_shuanglong.c: 238: RD4=1;
   459                           	line	238
   460  0C7D  1608               	bsf	(044h/8),(044h)&7
   461                           ;T_shuanglong.c: 239: }
   462                           	line	239
   463  0C7E                     l26
   464  0C7E  0008               	return
   465                           	FNSIZE	_refrush_led,3,0
   466                           	global	?a_refrush_led
   467                           ;T_shuanglong.c: 243: unsigned int ad_sampling(
                                 unsigned char channel)
   468                           
   469                           ;T_shuanglong.c: 244: {
   470                           
   471                           	psect	text4,local,class=CODE,delta=2
   472                           	psect	text4
   473                           	global	_ad_sampling
   474                           	signat	_ad_sampling,4202
   475                           	line	244
   476                           
   477  0C12                     _ad_sampling
   478                           	global	_adresult
   479                           ;	_channel assigned to ?a_ad_sampling+0
   480  0000                     _ad_sampling$channel	set	?a_ad_sampling+0
   481                           ;_channel stored from w
   482                           	line	247
   483  0C12  1283               	bcf	status,5
   484  0C13  1303               	bcf	status,6	;carry unused
   485  0C14  00C2               	movwf	(((?a_ad_sampling+0)))
   486                           ;T_shuanglong.c: 247: INTCON=0X00;
   487  0C15  018B               	clrf	(((0Bh)))	;volatile
   488                           ;T_shuanglong.c: 248: ADCS2=0;
   489                           	line	248
   490  0C16  1683               	bsf	status,5
   491  0C17  131F               	bcf	(04FEh/8)^0x80,(04FEh)&7
   492                           ;T_shuanglong.c: 249: ADCON0=channel;
   493                           	line	249
   494  0C18  1283               	bcf	status,5
   495  0C19  0842               	movf	(((?a_ad_sampling+0))),w
   496                           	

⌨️ 快捷键说明

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