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

📄 ch452ss.lst

📁 PIC单片机控制CH452的数码管显示程序
💻 LST
📖 第 1 页 / 共 4 页
字号:
   289                           ;ch452ss.h: 156: (RD0=1);
   290  066C  1408               	bsf	8,0
   291                           ;ch452ss.h: 157: }
   292  066D  0AA4               	incf	?a_ReadCh452+2
   293  066E  3007               	movlw	7
   294  066F  0224               	subwf	?a_ReadCh452+2,w
   295  0670  1C03               	btfss	3,0
   296  0671  2E66               	goto	L1
   297                           ;ch452ss.h: 158: (INTF=0);
   298  0672  108B               	bcf	11,1
   299                           ;ch452ss.h: 159: (INTE=1);
   300  0673  160B               	bsf	11,4
   301                           ;ch452ss.h: 160: return(keycode);
   302  0674  0823               	movf	?a_ReadCh452+1,w
   303  0675  00F0               	movwf	btemp
   304  0676  01F1               	clrf	btemp+1
   305                           ;ch452ss.h: 161: }
   306  0677  0008               	return
   307                           
   308                           	psect	text10
   309  06F7                     _intBit_Display_Num1
   310                           ;ch452ss.h: 195: intWrietCh452(Bitmap[bite]+Led
      +                          _seg1[buf]);
   311  06F7  3000               	movlw	_Led_seg1 shr (0+8)
   312  06F8  008A               	movwf	10
   313  06F9  1283               	bcf	3,5
   314  06FA  1303               	bcf	3,6	;carry unused
   315  06FB  0824               	movf	?_intBit_Display_Num1+2,w
   316  06FC  0724               	addwf	?_intBit_Display_Num1+2,w
   317  06FD  00F3               	movwf	btemp+3
   318  06FE  207E               	call	((_Led_seg1+-1)& (0+2047))| (($)& (0+-204
      +                          8))
   319  06FF  00F2               	movwf	btemp+2
   320  0700  0A73               	incf	btemp+3,w
   321  0701  207E               	call	((_Led_seg1+-1)& (0+2047))| (($)& (0+-204
      +                          8))
   322  0702  00F3               	movwf	btemp+3
   323  0703  3000               	movlw	_Bitmap shr (0+8)
   324  0704  008A               	movwf	10
   325  0705  0822               	movf	?_intBit_Display_Num1,w
   326  0706  0722               	addwf	?_intBit_Display_Num1,w
   327  0707  00F1               	movwf	btemp+1
   328  0708  209F               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   329  0709  00F0               	movwf	btemp
   330  070A  0A71               	incf	btemp+1,w
   331  070B  209F               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   332  070C  00F1               	movwf	btemp+1
   333  070D  0872               	movf	btemp+2,w
   334  070E  07F0               	addwf	btemp
   335  070F  1803               	btfsc	3,0
   336  0710  0AF1               	incf	btemp+1
   337  0711  0873               	movf	btemp+3,w
   338  0712  07F1               	addwf	btemp+1
   339  0713  0870               	movf	btemp,w
   340  0714  00A6               	movwf	?_intWrietCh452
   341  0715  0871               	movf	btemp+1,w
   342  0716  00A7               	movwf	?_intWrietCh452+1
   343  0717  120A  118A  2FB2   	ljmp	_intWrietCh452
   344  071A                     _intBit_Display_Num
   345                           ;ch452ss.h: 191: intWrietCh452(Bitmap[bite]+Led
      +                          _seg[buf]);
   346  071A  3000               	movlw	_Led_seg shr (0+8)
   347  071B  008A               	movwf	10
   348  071C  1283               	bcf	3,5
   349  071D  1303               	bcf	3,6	;carry unused
   350  071E  0824               	movf	?_intBit_Display_Num+2,w
   351  071F  0724               	addwf	?_intBit_Display_Num+2,w
   352  0720  00F3               	movwf	btemp+3
   353  0721  205B               	call	((_Led_seg+-1)& (0+2047))| (($)& (0+-2048
      +                          ))
   354  0722  00F2               	movwf	btemp+2
   355  0723  0A73               	incf	btemp+3,w
   356  0724  205B               	call	((_Led_seg+-1)& (0+2047))| (($)& (0+-2048
      +                          ))
   357  0725  00F3               	movwf	btemp+3
   358  0726  3000               	movlw	_Bitmap shr (0+8)
   359  0727  008A               	movwf	10
   360  0728  0822               	movf	?_intBit_Display_Num,w
   361  0729  0722               	addwf	?_intBit_Display_Num,w
   362  072A  00F1               	movwf	btemp+1
   363  072B  209F               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   364  072C  00F0               	movwf	btemp
   365  072D  0A71               	incf	btemp+1,w
   366  072E  209F               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   367  072F  00F1               	movwf	btemp+1
   368  0730  0872               	movf	btemp+2,w
   369  0731  07F0               	addwf	btemp
   370  0732  1803               	btfsc	3,0
   371  0733  0AF1               	incf	btemp+1
   372  0734  0873               	movf	btemp+3,w
   373  0735  07F1               	addwf	btemp+1
   374  0736  0870               	movf	btemp,w
   375  0737  00A6               	movwf	?_intWrietCh452
   376  0738  0871               	movf	btemp+1,w
   377  0739  00A7               	movwf	?_intWrietCh452+1
   378  073A  120A  118A  2FB2   	ljmp	_intWrietCh452
   379                           ;ch452ss.c: 57: void display()
   380                           ;ch452ss.c: 58: {
   381  073D                     _display
   382                           ;ch452ss.c: 59: intBit_Display_Num(7,s[0]);
   383  073D  3007               	movlw	7
   384  073E  0183               	clrf	3	;select bank 0
   385  073F  00A2               	movwf	?_intBit_Display_Num
   386  0740  01A3               	clrf	?_intBit_Display_Num+1
   387  0741  082A               	movf	_s,w
   388  0742  00A4               	movwf	?_intBit_Display_Num+2
   389  0743  082B               	movf	_s+1,w
   390  0744  00A5               	movwf	?_intBit_Display_Num+3
   391  0745  271A  120A  118A   	fcall	_intBit_Display_Num
   392                           ;ch452ss.c: 60: intBit_Display_Num(6,s[1]);
   393  0748  3006               	movlw	6
   394  0749  00A2               	movwf	?_intBit_Display_Num
   395  074A  01A3               	clrf	?_intBit_Display_Num+1
   396  074B  082C               	movf	_s+2,w
   397  074C  00A4               	movwf	?_intBit_Display_Num+2
   398  074D  082D               	movf	_s+3,w
   399  074E  00A5               	movwf	?_intBit_Display_Num+3
   400  074F  271A  120A  118A   	fcall	_intBit_Display_Num
   401                           ;ch452ss.c: 61: intBit_Display_Num1(5,s[2]);
   402  0752  3005               	movlw	5
   403  0753  00A2               	movwf	?_intBit_Display_Num1
   404  0754  01A3               	clrf	?_intBit_Display_Num1+1
   405  0755  082E               	movf	_s+4,w
   406  0756  00A4               	movwf	?_intBit_Display_Num1+2
   407  0757  082F               	movf	_s+5,w
   408  0758  00A5               	movwf	?_intBit_Display_Num1+3
   409  0759  26F7  120A  118A   	fcall	_intBit_Display_Num1
   410                           ;ch452ss.c: 62: intBit_Display_Num(4,s[3]);
   411  075C  3004               	movlw	4
   412  075D  00A2               	movwf	?_intBit_Display_Num
   413  075E  01A3               	clrf	?_intBit_Display_Num+1
   414  075F  0830               	movf	_s+6,w
   415  0760  00A4               	movwf	?_intBit_Display_Num+2
   416  0761  0831               	movf	_s+7,w
   417  0762  00A5               	movwf	?_intBit_Display_Num+3
   418  0763  271A  120A  118A   	fcall	_intBit_Display_Num
   419                           ;ch452ss.c: 63: intBit_Display_Num1(3,s[4]);
   420  0766  3003               	movlw	3
   421  0767  00A2               	movwf	?_intBit_Display_Num1
   422  0768  01A3               	clrf	?_intBit_Display_Num1+1
   423  0769  0832               	movf	_s+8,w
   424  076A  00A4               	movwf	?_intBit_Display_Num1+2
   425  076B  0833               	movf	_s+9,w
   426  076C  00A5               	movwf	?_intBit_Display_Num1+3
   427  076D  26F7  120A  118A   	fcall	_intBit_Display_Num1
   428                           ;ch452ss.c: 64: intBit_Display_Num(2,s[5]);
   429  0770  3002               	movlw	2
   430  0771  00A2               	movwf	?_intBit_Display_Num
   431  0772  01A3               	clrf	?_intBit_Display_Num+1
   432  0773  0834               	movf	_s+10,w
   433  0774  00A4               	movwf	?_intBit_Display_Num+2
   434  0775  0835               	movf	_s+11,w
   435  0776  00A5               	movwf	?_intBit_Display_Num+3
   436  0777  271A  120A  118A   	fcall	_intBit_Display_Num
   437                           ;ch452ss.c: 65: intBit_Display_Num1(1,s[6]);
   438  077A  01A2               	clrf	?_intBit_Display_Num1
   439  077B  0AA2               	incf	?_intBit_Display_Num1
   440  077C  01A3               	clrf	?_intBit_Display_Num1+1
   441  077D  0836               	movf	_s+12,w
   442  077E  00A4               	movwf	?_intBit_Display_Num1+2
   443  077F  0837               	movf	_s+13,w
   444  0780  00A5               	movwf	?_intBit_Display_Num1+3
   445  0781  26F7  120A  118A   	fcall	_intBit_Display_Num1
   446                           ;ch452ss.c: 66: intBit_Display_Num(0,s[7]);
   447  0784  01A2               	clrf	?_intBit_Display_Num
   448  0785  01A3               	clrf	?_intBit_Display_Num+1
   449  0786  0838               	movf	_s+14,w
   450  0787  00A4               	movwf	?_intBit_Display_Num+2
   451  0788  0839               	movf	_s+15,w
   452  0789  00A5               	movwf	?_intBit_Display_Num+3
   453  078A  2F1A               	ljmp	_intBit_Display_Num
   454                           ;ch452ss.c: 16: void tmint()
   455                           ;ch452ss.c: 17: {
   456  078B                     _tmint
   457                           ;ch452ss.c: 18: T0CS=0;
   458  078B  1683               	bsf	3,5
   459  078C  1303               	bcf	3,6	;carry unused
   460  078D  1281               	bcf	1,5
   461                           ;ch452ss.c: 19: PSA=1;
   462  078E  1581               	bsf	1,3
   463                           ;ch452ss.c: 20: T0IF=0;
   464  078F  110B               	bcf	11,2
   465                           ;ch452ss.c: 21: T0IE=1;
   466  0790  168B               	bsf	11,5
   467                           ;ch452ss.c: 22: }
   468  0791  1283               	bcf	3,5
   469  0792  0008               	return
   470  0793                     _DelayUs
   471                           ;ch452ss.h: 58: asm("nop");
   472  0793  0000               	nop	;#
   473                           ;ch452ss.h: 59: asm("nop");
   474  0794  0000               	nop	;#
   475                           ;ch452ss.h: 60: asm("nop");
   476  0795  0000               	nop	;#
   477                           ;ch452ss.h: 62: }
   478  0796  0183               	clrf	3	;select bank 0
   479  0797  0008               	return
   480  0798                     _WrietCh452
   481                           ;	_iq0 assigned to ?a_WrietCh452+0
   482  0000                     _WrietCh452$iq0	set	?a_WrietCh452
   483                           ;ch452ss.h: 69: uint iq0;
   484  0798  0183               	clrf	3	;select bank 0
   485  0799  1108               	bcf	8,2
   486                           ;ch452ss.h: 72: for(iq0=0;iq0<12;iq0++)
   487  079A  01A4               	clrf	?a_WrietCh452
   488  079B  01A5               	clrf	?a_WrietCh452+1
   489  079C                     l3
   490                           ;ch452ss.h: 73: {
   491                           ;ch452ss.h: 74: if((da&0x0001)==1)
   492  079C  1C22               	btfss	?_WrietCh452,0
   493  079D  2FA0               	goto	l6
   494                           ;ch452ss.h: 75: (RD1=1);
   495  079E  1488               	bsf	8,1
   496                           ;ch452ss.h: 76: else
   497  079F  2FA1               	goto	l7
   498  07A0                     l6
   499                           ;ch452ss.h: 77: (RD1=0);
   500  07A0  1088               	bcf	8,1
   501  07A1                     l7
   502                           ;ch452ss.h: 78: (RD0=0);
   503  07A1  1008               	bcf	8,0
   504                           ;ch452ss.h: 79: da >>=1;
   505  07A2  1003               	bcf	3,0
   506  07A3  0CA3               	rrf	?_WrietCh452+1
   507  07A4  0CA2               	rrf	?_WrietCh452
   508                           ;ch452ss.h: 80: (RD0=1);
   509  07A5  1408               	bsf	8,0
   510                           ;ch452ss.h: 81: }
   511  07A6  0AA4               	incf	?a_WrietCh452
   512  07A7  1903               	btfsc	3,2
   513  07A8  0AA5               	incf	?a_WrietCh452+1
   514  07A9  3000               	movlw	0
   515  07AA  0225               	subwf	?a_WrietCh452+1,w
   516  07AB  300C               	movlw	12
   517  07AC  1903               	btfsc	3,2
   518  07AD  0224               	subwf	?a_WrietCh452,w
   519  07AE  1C03               	btfss	3,0
   520  07AF  2F9C               	goto	l3
   521                           ;ch452ss.h: 82: (RD2=1);
   522  07B0  1508               	bsf	8,2
   523                           ;ch452ss.h: 83: DelayUs();
   524  07B1  2F93               	ljmp	_DelayUs
   525  07B2                     _intWrietCh452
   526                           ;	_iq0 assigned to ?a_intWrietCh452+0
   527  0000                     _intWrietCh452$iq0	set	?a_intWrietCh452
   528                           ;ch452ss.h: 169: uint iq0;
   529  07B2  0183               	clrf	3	;select bank 0
   530  07B3  1108               	bcf	8,2
   531                           ;ch452ss.h: 172: for(iq0=0;iq0<12;iq0++)
   532  07B4  01A8               	clrf	?a_intWrietCh452
   533  07B5  01A9               	clrf	?a_intWrietCh452+1
   534  07B6                     l23
   535                           ;ch452ss.h: 173: {
   536                           ;ch452ss.h: 174: if((da&0x0001)==1)
   537  07B6  1C26               	btfss	?_intWrietCh452,0
   538  07B7  2FBA               	goto	l26
   539                           ;ch452ss.h: 175: (RD1=1);
   540  07B8  1488               	bsf	8,1
   541                           ;ch452ss.h: 176: else
   542  07B9  2FBB               	goto	l27
   543  07BA                     l26
   544                           ;ch452ss.h: 177: (RD1=0);
   545  07BA  1088               	bcf	8,1
   546  07BB                     l27
   547                           ;ch452ss.h: 178: (RD0=0);
   548  07BB  1008               	bcf	8,0
   549                           ;ch452ss.h: 179: da >>=1;
   550  07BC  1003               	bcf	3,0
   551  07BD  0CA7               	rrf	?_intWrietCh452+1
   552  07BE  0CA6               	rrf	?_intWrietCh452
   553                           ;ch452ss.h: 180: (RD0=1);
   554  07BF  1408               	bsf	8,0
   555                           ;ch452ss.h: 181: }
   556  07C0  0AA8               	incf	?a_intWrietCh452
   557  07C1  1903               	btfsc	3,2
   558  07C2  0AA9               	incf	?a_intWrietCh452+1
   559  07C3  3000               	movlw	0
   560  07C4  0229               	subwf	?a_intWrietCh452+1,w
   561  07C5  300C               	movlw	12
   562  07C6  1903               	btfsc	3,2
   563  07C7  0228               	subwf	?a_intWrietCh452,w
   564  07C8  1C03               	btfss	3,0
   565  07C9  2FB6               	goto	l23
   566                           ;ch452ss.h: 182: (RD2=1);
   567  07CA  1508               	bsf	8,2
   568                           ;ch452ss.h: 183: DelayUs();
   569  07CB  2F93               	ljmp	_DelayUs
   570                           ;ch452ss.h: 89: void InitCh452()
   571                           ;ch452ss.h: 90: {
   572  07CC                     _InitCh452
   573                           ;ch452ss.h: 91: WrietCh452(0x0401);
   574  07CC  3001               	movlw	1
   575  07CD  0183               	clrf	3	;select bank 0
   576  07CE  00A2               	movwf	?_WrietCh452
   577  07CF  3004               	movlw	4
   578  07D0  00A3               	movwf	?_WrietCh452+1
   579  07D1  2798  120A  118A   	fcall	_WrietCh452
   580                           ;ch452ss.h: 92: WrietCh452(0x0500);
   581  07D4  01A2               	clrf	?_WrietCh452
   582  07D5  3005               	movlw	5
   583  07D6  00A3               	movwf	?_WrietCh452+1

⌨️ 快捷键说明

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