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

📄 beep.lst

📁 这是一个PIC单片机的实时操作系统
💻 LST
📖 第 1 页 / 共 2 页
字号:


HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-63763                            Sat Jun 14 16:35:56 2008

Licensed to: CHENLIYUN
     1                           	processor	16F877A
     2                           	opt	pw 79
     3                           	psect	__Z63763RS_,global,delta=1
     4                           	psect	text0,local,class=CODE,delta=2
     5                           	psect	text1,local,class=CODE,delta=2
     6                           	psect	rbss_0,global,class=BANK0,space=1,delta=
      +                          1
     7                           	psect	nvram,global,class=BANK0,space=1,delta=1
     8  0000                     
     9  0000                     
    10  0000                     
    11  0000                     
    12  0000                     
    13  0000                     
    14  0000                     
    15  0000                     
    16  0000                     
    17  0000                     
    18                           
    19                           	psect	__Z63763RS_
    20  0190                     
    21  0190                     
    22                           
    23                           	psect	text0
    24  0071                     _beepControl
    25                           ;beep.c: 22: asm("nop");
    26  0071  0000               	nop	;#
    27                           ;beep.c: 23: asm("nop");
    28  0072  0000               	nop	;#
    29                           ;beep.c: 24: asm("nop");
    30  0073  0000               	nop	;#
    31                           ;beep.c: 25: if(beepBuf==BEEP_NULL)
    32  0074  1283               	bcf	3,5
    33  0075  1303               	bcf	3,6	;carry unused
    34  0076  08CE               	movf	_beepBuf
    35  0077  1903               	btfsc	3,2
    36  0078  0008               	return
    37                           ;beep.c: 26: return;
    38                           ;beep.c: 27: if(beepBufBak!=beepBuf)
    39  0079  0870               	movf	_beepBufBak,w	;volatile
    40  007A  064E               	xorwf	_beepBuf,w
    41  007B  1903               	btfsc	3,2
    42  007C  2888               	goto	l3
    43                           ;beep.c: 28: {
    44  007D  184E               	btfsc	_beepBuf,0
    45  007E  2894               	goto	l5
    46                           ;beep.c: 30: {
    47  007F  1CCE               	btfss	_beepBuf,1
    48  0080  2883               	goto	l7
    49                           ;beep.c: 35: {
    50  0081  1687               	bsf	7,5
    51                           ;beep.c: 37: goto open;
    52  0082  2895               	goto	l8
    53  0083                     l7
    54                           ;beep.c: 40: {
    55  0083  084E               	movf	_beepBuf,w
    56  0084  00F0               	movwf	_beepBufBak	;volatile
    57                           ;beep.c: 42: RC5=1;;
    58  0085  1687               	bsf	7,5
    59                           ;beep.c: 43: beepCounter=0;
    60  0086  01F1               	clrf	_beepCounter	;volatile
    61                           ;beep.c: 44: }
    62                           ;beep.c: 46: }
    63  0087  0008               	return
    64  0088                     l3
    65                           ;beep.c: 48: {
    66  0088  0AF1               	incf	_beepCounter	;volatile
    67                           ;beep.c: 50: if((beepBuf&BEEP_LONG)!=0)
    68  0089  1E4E               	btfss	_beepBuf,4
    69  008A  288E               	goto	l11
    70                           ;beep.c: 51: {
    71  008B  0871               	movf	_beepCounter,w	;volatile
    72  008C  3A3C               	xorlw	60
    73  008D  2892               	goto	L1
    74                           ;beep.c: 53: {
    75                           ;beep.c: 55: }
    76                           ;beep.c: 57: else if((beepBuf&BEEP_ONE)!=0)
    77  008E                     l11
    78  008E  1D4E               	btfss	_beepBuf,2
    79  008F  2898               	goto	l14
    80                           ;beep.c: 58: {
    81  0090  0871               	movf	_beepCounter,w	;volatile
    82  0091  3A0A               	xorlw	10
    83  0092                     L1
    84  0092  1D03               	btfss	3,2
    85  0093  0008               	return
    86  0094                     l5
    87                           ;beep.c: 60: {
    88                           ;beep.c: 62: RC5=0;
    89  0094  1287               	bcf	7,5
    90  0095                     l8
    91                           ;beep.c: 63: open:
    92                           ;beep.c: 64: beepBuf=BEEP_NULL;
    93  0095  01CE               	clrf	_beepBuf
    94                           ;beep.c: 65: beepBufBak=BEEP_NULL;
    95  0096  01F0               	clrf	_beepBufBak	;volatile
    96                           ;beep.c: 66: return;
    97  0097  0008               	return
    98                           ;beep.c: 67: }
    99                           ;beep.c: 69: else if((beepBuf&BEEP_THREE)!=0)
   100  0098                     l14
   101  0098  1DCE               	btfss	_beepBuf,3
   102  0099  28AE               	goto	l17
   103                           ;beep.c: 70: {
   104  009A  0871               	movf	_beepCounter,w	;volatile
   105  009B  3A0A               	xorlw	10
   106  009C  1D03               	btfss	3,2
   107  009D  289F               	goto	l18
   108                           ;beep.c: 72: RC5=0;
   109  009E  1287               	bcf	7,5
   110  009F                     l18
   111                           ;beep.c: 73: if(beepCounter==20)
   112  009F  0871               	movf	_beepCounter,w	;volatile
   113  00A0  3A14               	xorlw	20
   114  00A1  1903               	btfsc	3,2
   115                           ;beep.c: 74: RC5=1;
   116  00A2  1687               	bsf	7,5
   117                           ;beep.c: 75: if(beepCounter==30)
   118  00A3  0871               	movf	_beepCounter,w	;volatile
   119  00A4  3A1E               	xorlw	30
   120  00A5  1903               	btfsc	3,2
   121                           ;beep.c: 76: RC5=0;
   122  00A6  1287               	bcf	7,5
   123                           ;beep.c: 77: if(beepCounter==40)
   124  00A7  0871               	movf	_beepCounter,w	;volatile
   125  00A8  3A28               	xorlw	40
   126  00A9  1903               	btfsc	3,2
   127                           ;beep.c: 78: RC5=1;
   128  00AA  1687               	bsf	7,5
   129                           ;beep.c: 79: if(beepCounter==50)
   130  00AB  0871               	movf	_beepCounter,w	;volatile
   131  00AC  3A32               	xorlw	50
   132  00AD  2892               	goto	L1
   133                           ;beep.c: 80: goto close;
   134                           ;beep.c: 81: }
   135                           ;beep.c: 82: else
   136  00AE                     l17
   137                           ;beep.c: 83: {
   138  00AE  0871               	movf	_beepCounter,w	;volatile
   139  00AF  3A14               	xorlw	20
   140  00B0  1903               	btfsc	3,2
   141                           ;beep.c: 85: RC5=0;
   142  00B1  1287               	bcf	7,5
   143                           ;beep.c: 86: if(beepCounter==200)
   144  00B2  0871               	movf	_beepCounter,w	;volatile
   145  00B3  3AC8               	xorlw	-56
   146  00B4  1D03               	btfss	3,2
   147  00B5  0008               	return
   148                           ;beep.c: 87: {
   149  00B6  1687               	bsf	7,5
   150                           ;beep.c: 89: beepCounter=0;
   151  00B7  01F1               	clrf	_beepCounter	;volatile
   152                           ;beep.c: 90: }
   153                           ;beep.c: 92: }
   154                           ;beep.c: 94: }
   155  00B8  0008               	return
   156                           
   157                           	psect	text1
   158  0000                     
   159  0000                     
   160  0000                     
   161  0000                     
   162  0000                     
   163  0000                     
   164  0000                     
   165  0000                     
   166  0000                     
   167  0000                     
   168  0000                     
   169  0000                     
   170  0000                     
   171  0000                     
   172  0000                     
   173  0000                     
   174  0000                     
   175  0000                     
   176  0000                     
   177  0000                     
   178  0000                     
   179  0000                     
   180  0000                     
   181  0000                     
   182  0000                     
   183  0000                     
   184  0000                     
   185  0000                     
   186  0000                     
   187  0000                     
   188  0000                     
   189  0000                     
   190  0000                     
   191  0000                     
   192  0000                     
   193  0000                     
   194  0000                     
   195  0000                     
   196  0000                     
   197  0000                     
   198  0000                     
   199  0000                     
   200  0000                     
   201  0000                     
   202  0000                     
   203  0000                     
   204  0000                     
   205  0000                     
   206  0000                     
   207  0000                     
   208  0000                     
   209  0000                     
   210  0000                     
   211  0000                     
   212  0000                     
   213  0000                     
   214  0000                     
   215  0000                     
   216  0000                     
   217  0000                     
   218  0000                     
   219  0000                     
   220  0000                     
   221  0000                     
   222  0000                     
   223  0000                     

⌨️ 快捷键说明

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