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

📄 nch452.lst

📁 PIC单片机控制CH452的数码管显示程序
💻 LST
📖 第 1 页 / 共 4 页
字号:


HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-49394                            Sat May 19 21:52:09 2007

Licensed to: ONE
     1                           	processor	16F877A
     2                           	opt	pw 79
     3                           	psect	__Z49394RS_,global,delta=1
     4                           	psect	strings,global,class=STRING,delta=2
     5                           	psect	const1,local,class=CONST,delta=2
     6                           	psect	const2,local,class=CONST,delta=2
     7                           	psect	const3,local,class=CONST,delta=2
     8                           	psect	text0,local,class=CODE,delta=2
     9                           	psect	text1,local,class=CODE,delta=2
    10                           	psect	text8,local,class=CODE,delta=2
    11                           	psect	text12,local,class=CODE,delta=2
    12                           	psect	rbss_0,global,class=BANK0,space=1,delta=
      +                          1
    13                           	psect	temp,global,ovrld,class=BANK0,space=1,de
      +                          lta=1
    14  0000                     
    15  0000                     
    16  0000                     
    17  0000                     
    18  0000                     
    19  0000                     
    20  0000                     
    21  0000                     
    22  0000                     
    23  0000                     
    24                           
    25                           	psect	__Z49394RS_
    26  0190                     
    27  0190                     
    28                           
    29                           	psect	const1
    30  0013  0782               	addwf	2
    31  0014                     _Led_seg
    32  0014  34FC               	retlw	252
    33  0015  3400               	retlw	0
    34  0016  3460               	retlw	96
    35  0017  3400               	retlw	0
    36  0018  34DA               	retlw	218
    37  0019  3400               	retlw	0
    38  001A  34F2               	retlw	242
    39  001B  3400               	retlw	0
    40  001C  3466               	retlw	102
    41  001D  3400               	retlw	0
    42  001E  34B6               	retlw	182
    43  001F  3400               	retlw	0
    44  0020  34BE               	retlw	190
    45  0021  3400               	retlw	0
    46  0022  34E0               	retlw	224
    47  0023  3400               	retlw	0
    48  0024  34FE               	retlw	254
    49  0025  3400               	retlw	0
    50  0026  34F6               	retlw	246
    51  0027  3400               	retlw	0
    52  0028  34EE               	retlw	238
    53  0029  3400               	retlw	0
    54  002A  343E               	retlw	62
    55  002B  3400               	retlw	0
    56  002C  349C               	retlw	156
    57  002D  3400               	retlw	0
    58  002E  347A               	retlw	122
    59  002F  3400               	retlw	0
    60  0030  349E               	retlw	158
    61  0031  3400               	retlw	0
    62  0032  348E               	retlw	142
    63  0033  3400               	retlw	0
    64  0034  3402               	retlw	2
    65  0035  3400               	retlw	0
    66  0036  3401               	retlw	1
    67  0037  3400               	retlw	0
    68                           
    69                           	psect	const2
    70  0038  0782               	addwf	2
    71  0039                     _Led_seg1
    72  0039  34FD               	retlw	253
    73  003A  3400               	retlw	0
    74  003B  3461               	retlw	97
    75  003C  3400               	retlw	0
    76  003D  34DB               	retlw	219
    77  003E  3400               	retlw	0
    78  003F  34F3               	retlw	243
    79  0040  3400               	retlw	0
    80  0041  3467               	retlw	103
    81  0042  3400               	retlw	0
    82  0043  34B7               	retlw	183
    83  0044  3400               	retlw	0
    84  0045  34BF               	retlw	191
    85  0046  3400               	retlw	0
    86  0047  34E1               	retlw	225
    87  0048  3400               	retlw	0
    88  0049  34FF               	retlw	255
    89  004A  3400               	retlw	0
    90  004B  34F7               	retlw	247
    91  004C  3400               	retlw	0
    92  004D  34EF               	retlw	239
    93  004E  3400               	retlw	0
    94  004F  343F               	retlw	63
    95  0050  3400               	retlw	0
    96  0051  349D               	retlw	157
    97  0052  3400               	retlw	0
    98  0053  347B               	retlw	123
    99  0054  3400               	retlw	0
   100  0055  349F               	retlw	159
   101  0056  3400               	retlw	0
   102  0057  348F               	retlw	143
   103  0058  3400               	retlw	0
   104                           
   105                           	psect	const3
   106  0059  0782               	addwf	2
   107  005A                     _Bitmap
   108  005A  3400               	retlw	0
   109  005B  3400               	retlw	0
   110  005C  3400               	retlw	0
   111  005D  340C               	retlw	12
   112  005E  3400               	retlw	0
   113  005F  340D               	retlw	13
   114  0060  3400               	retlw	0
   115  0061  340E               	retlw	14
   116  0062  3400               	retlw	0
   117  0063  340F               	retlw	15
   118  0064  3400               	retlw	0
   119  0065  3408               	retlw	8
   120  0066  3400               	retlw	0
   121  0067  3409               	retlw	9
   122  0068  3400               	retlw	0
   123  0069  340A               	retlw	10
   124  006A  3400               	retlw	0
   125  006B  340B               	retlw	11
   126                           
   127                           	psect	text0
   128  057A                     _DelayUs
   129                           ;nch452.h: 58: asm("nop");
   130  057A  0000               	nop	;#
   131                           ;nch452.h: 59: asm("nop");
   132  057B  0000               	nop	;#
   133                           ;nch452.h: 60: asm("nop");
   134  057C  0000               	nop	;#
   135                           ;nch452.h: 62: }
   136  057D  0183               	clrf	3	;select bank 0
   137  057E  0008               	return
   138                           
   139                           	psect	text1
   140  05AA                     _load
   141                           ;nch452.h: 68: (RD2=0);
   142  05AA  0183               	clrf	3	;select bank 0
   143  05AB  1108               	bcf	8,2
   144                           ;nch452.h: 70: (RD2=1);
   145  05AC  1508               	bsf	8,2
   146                           ;nch452.h: 72: }
   147  05AD  0008               	return
   148  05AE                     _WrietCh452
   149                           ;	_iq0 assigned to ?a_WrietCh452+0
   150  0000                     _WrietCh452$iq0	set	?a_WrietCh452
   151                           ;nch452.h: 79: uint iq0;
   152  05AE  0183               	clrf	3	;select bank 0
   153  05AF  1508               	bsf	8,2
   154                           ;nch452.h: 82: for(iq0=0;iq0<12;iq0++)
   155  05B0  01B4               	clrf	?a_WrietCh452
   156  05B1  01B5               	clrf	?a_WrietCh452+1
   157  05B2                     l4
   158                           ;nch452.h: 83: {
   159                           ;nch452.h: 84: if((da&0x0001)==1)
   160  05B2  1C32               	btfss	?_WrietCh452,0
   161  05B3  2DB6               	goto	l7
   162                           ;nch452.h: 85: (RD1=1);
   163  05B4  1488               	bsf	8,1
   164                           ;nch452.h: 86: else
   165  05B5  2DB7               	goto	l8
   166  05B6                     l7
   167                           ;nch452.h: 87: (RD1=0);
   168  05B6  1088               	bcf	8,1
   169  05B7                     l8
   170                           ;nch452.h: 88: (RD0=0);
   171  05B7  1008               	bcf	8,0
   172                           ;nch452.h: 89: da >>=1;
   173  05B8  1003               	bcf	3,0
   174  05B9  0CB3               	rrf	?_WrietCh452+1
   175  05BA  0CB2               	rrf	?_WrietCh452
   176                           ;nch452.h: 90: (RD0=1);
   177  05BB  1408               	bsf	8,0
   178                           ;nch452.h: 92: }
   179  05BC  0AB4               	incf	?a_WrietCh452
   180  05BD  1903               	btfsc	3,2
   181  05BE  0AB5               	incf	?a_WrietCh452+1
   182  05BF  3000               	movlw	0
   183  05C0  0235               	subwf	?a_WrietCh452+1,w
   184  05C1  300C               	movlw	12
   185  05C2  1903               	btfsc	3,2
   186  05C3  0234               	subwf	?a_WrietCh452,w
   187  05C4  1803               	btfsc	3,0
   188  05C5  0008               	return
   189  05C6  2DB2               	goto	l4
   190                           ;nch452.h: 100: void InitCh452()
   191                           ;nch452.h: 101: {
   192  05C7                     _InitCh452
   193                           ;nch452.h: 103: WrietCh452(0x0401);
   194  05C7  3001               	movlw	1
   195  05C8  0183               	clrf	3	;select bank 0
   196  05C9  00B2               	movwf	?_WrietCh452
   197  05CA  3004               	movlw	4
   198  05CB  00B3               	movwf	?_WrietCh452+1
   199  05CC  25AE               	fcall	_WrietCh452
   200                           ;nch452.h: 104: WrietCh452(0x0401);
   201  05CD  3001               	movlw	1
   202  05CE  00B2               	movwf	?_WrietCh452
   203  05CF  3004               	movlw	4
   204  05D0  00B3               	movwf	?_WrietCh452+1
   205  05D1  25AE               	fcall	_WrietCh452
   206                           ;nch452.h: 105: load();
   207  05D2  25AA               	fcall	_load
   208                           ;nch452.h: 108: WrietCh452(0x0500);
   209  05D3  01B2               	clrf	?_WrietCh452
   210  05D4  3005               	movlw	5
   211  05D5  00B3               	movwf	?_WrietCh452+1
   212  05D6  25AE               	fcall	_WrietCh452
   213                           ;nch452.h: 109: WrietCh452(0x0500);
   214  05D7  01B2               	clrf	?_WrietCh452
   215  05D8  3005               	movlw	5
   216  05D9  00B3               	movwf	?_WrietCh452+1
   217  05DA  2DAE               	ljmp	_WrietCh452
   218  05DB                     _Bit_Display_Num
   219                           ;nch452.h: 121: WrietCh452(Bitmap[bite1]+Led_se
      +                          g[buf1]);
   220  05DB  3000               	movlw	_Led_seg shr (0+8)
   221  05DC  008A               	movwf	10
   222  05DD  1283               	bcf	3,5
   223  05DE  1303               	bcf	3,6	;carry unused
   224  05DF  0830               	movf	?_Bit_Display_Num+6,w
   225  05E0  0730               	addwf	?_Bit_Display_Num+6,w
   226  05E1  00F3               	movwf	btemp+3
   227  05E2  2013               	call	((_Led_seg+-1)& (0+2047))| (($)& (0+-2048
      +                          ))
   228  05E3  00F2               	movwf	btemp+2
   229  05E4  0A73               	incf	btemp+3,w
   230  05E5  2013               	call	((_Led_seg+-1)& (0+2047))| (($)& (0+-2048
      +                          ))
   231  05E6  00F3               	movwf	btemp+3
   232  05E7  3000               	movlw	_Bitmap shr (0+8)
   233  05E8  008A               	movwf	10
   234  05E9  082E               	movf	?_Bit_Display_Num+4,w
   235  05EA  072E               	addwf	?_Bit_Display_Num+4,w
   236  05EB  00F1               	movwf	btemp+1
   237  05EC  2059               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   238  05ED  00F0               	movwf	btemp
   239  05EE  0A71               	incf	btemp+1,w
   240  05EF  2059               	call	((_Bitmap+-1)& (0+2047))| (($)& (0+-2048)
      +                          )
   241  05F0  00F1               	movwf	btemp+1
   242  05F1  0872               	movf	btemp+2,w
   243  05F2  07F0               	addwf	btemp
   244  05F3  1803               	btfsc	3,0
   245  05F4  0AF1               	incf	btemp+1
   246  05F5  0873               	movf	btemp+3,w
   247  05F6  07F1               	addwf	btemp+1
   248  05F7  0870               	movf	btemp,w
   249  05F8  00B2               	movwf	?_WrietCh452
   250  05F9  0871               	movf	btemp+1,w
   251  05FA  00B3               	movwf	?_WrietCh452+1

⌨️ 快捷键说明

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