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

📄 ch452xs.lst

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


HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-49394                            Sat Apr 21 16:56:26 2007

Licensed to: ONE
     1                           	processor	16F877A
     2                           	opt	pw 79
     3                           	psect	__Z49394RS_,global,delta=1
     4                           	psect	rdata_0,global,class=BANK0,space=1,delta
      +                          =1
     5                           	psect	idata_0,global,class=CODE,delta=2
     6                           	psect	text0,local,class=CODE,delta=2
     7                           	psect	text3,local,class=CODE,delta=2
     8                           	psect	text4,local,class=CODE,delta=2
     9                           	psect	text5,local,class=CODE,delta=2
    10                           	psect	text6,local,class=CODE,delta=2
    11                           	psect	text7,local,class=CODE,delta=2
    12                           	psect	text9,local,class=CODE,delta=2
    13                           	psect	text12,local,class=CODE,delta=2
    14                           	psect	intcode,global,class=CODE,delta=2
    15                           	psect	intsave_0,global,ovrld,class=COMBANK,spa
      +                          ce=1,delta=1
    16                           	psect	intret,global,class=CODE,delta=2
    17                           	psect	intentry,global,class=CODE,delta=2
    18                           	psect	intsave,global,class=BANK0,space=1,delta
      +                          =1
    19                           	psect	temp,global,ovrld,class=BANK0,space=1,de
      +                          lta=1
    20  0000                     
    21  0000                     
    22  0000                     
    23  0000                     
    24  0000                     
    25  0000                     
    26  0000                     
    27  0000                     
    28  0000                     
    29  0000                     
    30                           
    31                           	psect	__Z49394RS_
    32  0190                     
    33  0190                     
    34                           
    35                           	psect	rdata_0
    36  0032                     _Led_seg
    37  0032                     	ds	2
    38  0034                     	ds	2
    39  0036                     	ds	2
    40  0038                     	ds	2
    41  003A                     	ds	2
    42  003C                     	ds	2
    43  003E                     	ds	2
    44  0040                     	ds	2
    45  0042                     	ds	2
    46  0044                     	ds	2
    47  0046                     	ds	2
    48  0048                     	ds	2
    49  004A                     	ds	2
    50  004C                     	ds	2
    51  004E                     	ds	2
    52  0050                     	ds	2
    53  0052                     	ds	2
    54  0054                     	ds	2
    55  0056                     _Bitmap
    56  0056                     	ds	2
    57  0058                     	ds	2
    58  005A                     	ds	2
    59  005C                     	ds	2
    60  005E                     	ds	2
    61  0060                     	ds	2
    62  0062                     	ds	2
    63  0064                     	ds	2
    64                           
    65                           	psect	idata_0
    66  07CC  34FC               	retlw	252
    67  07CD  3400               	retlw	0
    68  07CE  3460               	retlw	96
    69  07CF  3400               	retlw	0
    70  07D0  34DA               	retlw	218
    71  07D1  3400               	retlw	0
    72  07D2  34F2               	retlw	242
    73  07D3  3400               	retlw	0
    74  07D4  3466               	retlw	102
    75  07D5  3400               	retlw	0
    76  07D6  34B6               	retlw	182
    77  07D7  3400               	retlw	0
    78  07D8  34BE               	retlw	190
    79  07D9  3400               	retlw	0
    80  07DA  34E0               	retlw	224
    81  07DB  3400               	retlw	0
    82  07DC  34FE               	retlw	254
    83  07DD  3400               	retlw	0
    84  07DE  34F6               	retlw	246
    85  07DF  3400               	retlw	0
    86  07E0  34EE               	retlw	238
    87  07E1  3400               	retlw	0
    88  07E2  343E               	retlw	62
    89  07E3  3400               	retlw	0
    90  07E4  349C               	retlw	156
    91  07E5  3400               	retlw	0
    92  07E6  347A               	retlw	122
    93  07E7  3400               	retlw	0
    94  07E8  349E               	retlw	158
    95  07E9  3400               	retlw	0
    96  07EA  348E               	retlw	142
    97  07EB  3400               	retlw	0
    98  07EC  3402               	retlw	2
    99  07ED  3400               	retlw	0
   100  07EE  3401               	retlw	1
   101  07EF  3400               	retlw	0
   102  07F0  3400               	retlw	0
   103  07F1  340C               	retlw	12
   104  07F2  3400               	retlw	0
   105  07F3  340D               	retlw	13
   106  07F4  3400               	retlw	0
   107  07F5  340E               	retlw	14
   108  07F6  3400               	retlw	0
   109  07F7  340F               	retlw	15
   110  07F8  3400               	retlw	0
   111  07F9  3408               	retlw	8
   112  07FA  3400               	retlw	0
   113  07FB  3409               	retlw	9
   114  07FC  3400               	retlw	0
   115  07FD  340A               	retlw	10
   116  07FE  3400               	retlw	0
   117  07FF  340B               	retlw	11
   118                           
   119                           	psect	text0
   120  0770                     _DelayUs
   121                           ;ch452.h: 57: asm("nop");
   122  0770  0000               	nop	;#
   123                           ;ch452.h: 58: asm("nop");
   124  0771  0000               	nop	;#
   125                           ;ch452.h: 59: asm("nop");
   126  0772  0000               	nop	;#
   127                           ;ch452.h: 61: }
   128  0773  0183               	clrf	3	;select bank 0
   129  0774  0008               	return
   130  0775                     _WrietCh452
   131                           ;	_iq0 assigned to ?a_WrietCh452+0
   132  0000                     _WrietCh452$iq0	set	?a_WrietCh452
   133                           ;ch452.h: 68: uint iq0;
   134  0775  0183               	clrf	3	;select bank 0
   135  0776  1108               	bcf	8,2
   136                           ;ch452.h: 71: for(iq0=0;iq0<12;iq0++)
   137  0777  01A2               	clrf	?a_WrietCh452
   138  0778  01A3               	clrf	?a_WrietCh452+1
   139  0779                     l3
   140                           ;ch452.h: 72: {
   141                           ;ch452.h: 73: if((da&0x0001)==1)
   142  0779  1C20               	btfss	?_WrietCh452,0
   143  077A  2F7D               	goto	l6
   144                           ;ch452.h: 74: (RD1=1);
   145  077B  1488               	bsf	8,1
   146                           ;ch452.h: 75: else
   147  077C  2F7E               	goto	l7
   148  077D                     l6
   149                           ;ch452.h: 76: (RD1=0);
   150  077D  1088               	bcf	8,1
   151  077E                     l7
   152                           ;ch452.h: 77: (RD0=0);
   153  077E  1008               	bcf	8,0
   154                           ;ch452.h: 78: da >>=1;
   155  077F  1003               	bcf	3,0
   156  0780  0CA1               	rrf	?_WrietCh452+1
   157  0781  0CA0               	rrf	?_WrietCh452
   158                           ;ch452.h: 79: (RD0=1);
   159  0782  1408               	bsf	8,0
   160                           ;ch452.h: 80: }
   161  0783  0AA2               	incf	?a_WrietCh452
   162  0784  1903               	btfsc	3,2
   163  0785  0AA3               	incf	?a_WrietCh452+1
   164  0786  3000               	movlw	0
   165  0787  0223               	subwf	?a_WrietCh452+1,w
   166  0788  300C               	movlw	12
   167  0789  1903               	btfsc	3,2
   168  078A  0222               	subwf	?a_WrietCh452,w
   169  078B  1C03               	btfss	3,0
   170  078C  2F79               	goto	l3
   171                           ;ch452.h: 81: (RD2=1);
   172  078D  1508               	bsf	8,2
   173                           ;ch452.h: 82: DelayUs();
   174  078E  2F70               	ljmp	_DelayUs
   175  078F                     _intWrietCh452
   176                           ;	_iq0 assigned to ?a_intWrietCh452+0
   177  0000                     _intWrietCh452$iq0	set	?a_intWrietCh452
   178                           ;ch452.h: 168: uint iq0;
   179  078F  0183               	clrf	3	;select bank 0
   180  0790  1108               	bcf	8,2
   181                           ;ch452.h: 171: for(iq0=0;iq0<12;iq0++)
   182  0791  01B0               	clrf	?a_intWrietCh452
   183  0792  01B1               	clrf	?a_intWrietCh452+1
   184  0793                     l23
   185                           ;ch452.h: 172: {
   186                           ;ch452.h: 173: if((da&0x0001)==1)
   187  0793  1C2E               	btfss	?_intWrietCh452,0
   188  0794  2F97               	goto	l26
   189                           ;ch452.h: 174: (RD1=1);
   190  0795  1488               	bsf	8,1
   191                           ;ch452.h: 175: else
   192  0796  2F98               	goto	l27
   193  0797                     l26
   194                           ;ch452.h: 176: (RD1=0);
   195  0797  1088               	bcf	8,1
   196  0798                     l27
   197                           ;ch452.h: 177: (RD0=0);
   198  0798  1008               	bcf	8,0
   199                           ;ch452.h: 178: da >>=1;
   200  0799  1003               	bcf	3,0
   201  079A  0CAF               	rrf	?_intWrietCh452+1
   202  079B  0CAE               	rrf	?_intWrietCh452
   203                           ;ch452.h: 179: (RD0=1);
   204  079C  1408               	bsf	8,0
   205                           ;ch452.h: 180: }
   206  079D  0AB0               	incf	?a_intWrietCh452
   207  079E  1903               	btfsc	3,2
   208  079F  0AB1               	incf	?a_intWrietCh452+1
   209  07A0  3000               	movlw	0
   210  07A1  0231               	subwf	?a_intWrietCh452+1,w
   211  07A2  300C               	movlw	12
   212  07A3  1903               	btfsc	3,2
   213  07A4  0230               	subwf	?a_intWrietCh452,w
   214  07A5  1C03               	btfss	3,0
   215  07A6  2F93               	goto	l23
   216                           ;ch452.h: 181: (RD2=1);
   217  07A7  1508               	bsf	8,2
   218                           ;ch452.h: 182: DelayUs();
   219  07A8  2F70               	ljmp	_DelayUs
   220                           ;ch452.h: 88: void InitCh452()
   221                           ;ch452.h: 89: {
   222  07A9                     _InitCh452
   223                           ;ch452.h: 90: WrietCh452(0x0423);
   224  07A9  3023               	movlw	35
   225  07AA  0183               	clrf	3	;select bank 0
   226  07AB  00A0               	movwf	?_WrietCh452
   227  07AC  3004               	movlw	4
   228  07AD  00A1               	movwf	?_WrietCh452+1
   229  07AE  2775  120A  118A   	fcall	_WrietCh452
   230                           ;ch452.h: 91: WrietCh452(0x0500);
   231  07B1  01A0               	clrf	?_WrietCh452
   232  07B2  3005               	movlw	5
   233  07B3  00A1               	movwf	?_WrietCh452+1
   234  07B4  2F75               	ljmp	_WrietCh452
   235                           ;ch452xs.c: 5: void initial()
   236                           ;ch452xs.c: 6: {
   237  07B5                     _initial
   238                           ;ch452xs.c: 7: INTCON=0x00;
   239  07B5  018B               	clrf	11	;volatile
   240                           ;ch452xs.c: 8: ADCON1=0x07;
   241  07B6  3007               	movlw	7
   242  07B7  1683               	bsf	3,5
   243  07B8  1303               	bcf	3,6	;carry unused
   244  07B9  009F               	movwf	31	;volatile
   245                           ;ch452xs.c: 9: PIE1=0;
   246  07BA  018C               	clrf	12	;volatile
   247                           ;ch452xs.c: 10: PIE2=0;
   248  07BB  018D               	clrf	13	;volatile
   249                           ;ch452xs.c: 11: }
   250  07BC  1283               	bcf	3,5
   251  07BD  0008               	return
   252                           ;ch452xs.c: 13: void main()
   253                           ;ch452xs.c: 14: {
   254  07BE                     _main
   255                           ;ch452xs.c: 16: TRISD=0x00;
   256  07BE  1683               	bsf	3,5
   257  07BF  1303               	bcf	3,6	;carry unused
   258  07C0  0188               	clrf	8	;volatile
   259                           ;ch452xs.c: 17: TRISB=0XFF;
   260  07C1  30FF               	movlw	-1
   261  07C2  0086               	movwf	6	;volatile
   262                           ;ch452xs.c: 18: INTEDG=0;
   263  07C3  1301               	bcf	1,6
   264                           ;ch452xs.c: 19: (INTF=0);
   265  07C4  108B               	bcf	11,1
   266                           ;ch452xs.c: 20: initial();
   267  07C5  27B5               	fcall	_initial
   268                           ;ch452xs.c: 21: InitCh452();
   269  07C6  27A9  120A  118A   	fcall	_InitCh452
   270                           ;ch452xs.c: 22: GIE=1;
   271  07C9  178B               	bsf	11,7
   272                           ;ch452xs.c: 23: (INTE=1);
   273  07CA  160B               	bsf	11,4
   274                           ;ch452xs.c: 25: while(1);
   275  07CB                     l31
   276  07CB  2FCB               	goto	l31
   277                           
   278                           	psect	text3
   279  0720                     _Bit_Display_Num
   280                           ;ch452.h: 102: WrietCh452(Bitmap[bite]+Led_seg[
      +                          buf]);
   281  0720  0183               	clrf	3	;select bank 0
   282  0721  0822               	movf	?_Bit_Display_Num+2,w
   283  0722  0722               	addwf	?_Bit_Display_Num+2,w
   284  0723  3E32               	addlw	_Led_seg

⌨️ 快捷键说明

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