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

📄 event.lst

📁 PIC串口程序  可以帮助你编写串口程序  里面还有我自己做的协议 很方便
💻 LST
📖 第 1 页 / 共 2 页
字号:


HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-88888                            Thu Dec 11 14:01:25 2008

Licensed to: ONE TWO
     1                           	processor	16F688
     2                           	opt	pw 79
     3                           	psect	__Z88888RS_,global,delta=1
     4                           	psect	text0,local,class=CODE,delta=2
     5                           	psect	text2,local,class=CODE,delta=2
     6                           	psect	rbss_0,global,class=BANK0,space=1,delta=
      +                          1
     7                           	psect	temp,global,ovrld,class=BANK0,space=1,de
      +                          lta=1
     8  0000                     
     9  0000                     
    10  0000                     
    11  0000                     
    12  0000                     
    13  0000                     
    14  0000                     
    15  0000                     
    16  0000                     
    17  0000                     
    18                           
    19                           	psect	__Z88888RS_
    20  0120                     
    21  0120                     
    22                           
    23                           	psect	text0
    24  034B                     _checkEventWaitTimeOut
    25                           ;	_ntime assigned to ?a_checkEventWaitTimeOut+0
    26  0000                     _checkEventWaitTimeOut$ntime	set	?a_checkEventW
      +                          aitTimeOut
    27                           ;event.c: 24: if (EVENT.tWait==0)
    28  034B  0183               	clrf	3	;select bank 0
    29  034C  0824               	movf	_EVENT+3,w
    30  034D  0423               	iorwf	_EVENT+2,w
    31  034E  0422               	iorwf	_EVENT+1,w
    32  034F  0421               	iorwf	_EVENT,w
    33  0350  1903               	btfsc	3,2
    34                           ;event.c: 25: return(0);
    35  0351  3400               	retlw	0
    36                           ;event.c: 27: { ntime=loadSystemTime(6);
    37  0352  3006               	movlw	6
    38  0353  118A  22EF  118A   	fcall	_loadSystemTime
    39  0356  0870               	movf	btemp,w
    40  0357  00C7               	movwf	?a_checkEventWaitTimeOut
    41  0358  0871               	movf	btemp+1,w
    42  0359  00C8               	movwf	?a_checkEventWaitTimeOut+1
    43  035A  0872               	movf	btemp+2,w
    44  035B  00C9               	movwf	?a_checkEventWaitTimeOut+2
    45  035C  0873               	movf	btemp+3,w
    46  035D  00CA               	movwf	?a_checkEventWaitTimeOut+3
    47                           ;event.c: 28: if (ntime-EVENT.wsTime>=EVENT.tWa
      +                          it)
    48  035E  0826               	movf	_EVENT+5,w
    49  035F  0247               	subwf	?a_checkEventWaitTimeOut,w
    50  0360  00F0               	movwf	btemp
    51  0361  0848               	movf	?a_checkEventWaitTimeOut+1,w
    52  0362  00F1               	movwf	btemp+1
    53  0363  0827               	movf	_EVENT+6,w
    54  0364  1C03               	btfss	3,0
    55  0365  0F27               	incfsz	_EVENT+6,w
    56  0366  02F1               	subwf	btemp+1
    57  0367  0849               	movf	?a_checkEventWaitTimeOut+2,w
    58  0368  00F2               	movwf	btemp+2
    59  0369  0828               	movf	_EVENT+7,w
    60  036A  1C03               	btfss	3,0
    61  036B  0F28               	incfsz	_EVENT+7,w
    62  036C  02F2               	subwf	btemp+2
    63  036D  084A               	movf	?a_checkEventWaitTimeOut+3,w
    64  036E  00F3               	movwf	btemp+3
    65  036F  0829               	movf	_EVENT+8,w
    66  0370  1C03               	btfss	3,0
    67  0371  0F29               	incfsz	_EVENT+8,w
    68  0372  02F3               	subwf	btemp+3
    69  0373  0824               	movf	_EVENT+3,w
    70  0374  0273               	subwf	btemp+3,w
    71  0375  1D03               	btfss	3,2
    72  0376  2B81               	goto	u25
    73  0377  0823               	movf	_EVENT+2,w
    74  0378  0272               	subwf	btemp+2,w
    75  0379  1D03               	btfss	3,2
    76  037A  2B81               	goto	u25
    77  037B  0822               	movf	_EVENT+1,w
    78  037C  0271               	subwf	btemp+1,w
    79  037D  1D03               	btfss	3,2
    80  037E  2B81               	goto	u25
    81  037F  0821               	movf	_EVENT,w
    82  0380  0270               	subwf	btemp,w
    83  0381                     u25
    84  0381  1803               	btfsc	3,0
    85                           ;event.c: 29: return(1);
    86  0382  3401               	retlw	1
    87  0383  3400               	retlw	0
    88  0384                     _EventBurstWait
    89                           ;	_event assigned to ?a_EventBurstWait+0
    90  0000                     _EventBurstWait$event	set	?a_EventBurstWait
    91                           ;event.c: 36: unsigned char event=255;
    92  0384  30FF               	movlw	-1
    93  0385  0183               	clrf	3	;select bank 0
    94  0386  00C6               	movwf	?a_EventBurstWait
    95                           ;event.c: 37: EVENT.tWait=tWait;
    96  0387  0843               	movf	?_EventBurstWait,w
    97  0388  00A1               	movwf	_EVENT
    98  0389  0844               	movf	?_EventBurstWait+1,w
    99  038A  00A2               	movwf	_EVENT+1
   100  038B  01A3               	clrf	_EVENT+2
   101  038C  01A4               	clrf	_EVENT+3
   102                           ;event.c: 38: EVENT.wsTime=loadSystemTime(6);
   103  038D  3006               	movlw	6
   104  038E  118A  22EF  118A   	fcall	_loadSystemTime
   105  0391  0870               	movf	btemp,w
   106  0392  00A6               	movwf	_EVENT+5
   107  0393  0871               	movf	btemp+1,w
   108  0394  00A7               	movwf	_EVENT+6
   109  0395  0872               	movf	btemp+2,w
   110  0396  00A8               	movwf	_EVENT+7
   111  0397  0873               	movf	btemp+3,w
   112  0398  00A9               	movwf	_EVENT+8
   113                           ;event.c: 43: break;}
   114  0399  2BA8               	goto	l13
   115  039A                     l15
   116                           ;event.c: 44: event =checkKeyEvent();
   117  039A  118A  225B  118A   	fcall	_checkKeyEvent
   118  039D  00C6               	movwf	?a_EventBurstWait
   119                           ;event.c: 45: if (event!=255)
   120  039E  0A46               	incf	?a_EventBurstWait,w
   121  039F  1903               	btfsc	3,2
   122  03A0  2BA8               	goto	l13
   123                           ;event.c: 46: { if (wEvent!=255)
   124  03A1  0A45               	incf	?_EventBurstWait+2,w
   125  03A2  1903               	btfsc	3,2
   126  03A3  2BB0               	goto	l14
   127                           ;event.c: 47: { if (event==wEvent)
   128  03A4  0846               	movf	?a_EventBurstWait,w
   129  03A5  0645               	xorwf	?_EventBurstWait+2,w
   130  03A6  1903               	btfsc	3,2
   131  03A7  2BB0               	goto	l14
   132                           ;event.c: 48: break;}
   133                           ;event.c: 49: else break;
   134  03A8                     l13
   135                           ;event.c: 39: while(1)
   136                           ;event.c: 40: { OS_SCHEDULE();
   137  03A8  118A  231D  118A   	fcall	_OS_SCHEDULE
   138                           ;event.c: 41: if (checkEventWaitTimeOut()==1)
   139  03AB  234B               	fcall	_checkEventWaitTimeOut
   140  03AC  3A01               	xorlw	1
   141  03AD  1D03               	btfss	3,2
   142  03AE  2B9A               	goto	l15
   143                           ;event.c: 42: { event=0;
   144  03AF  01C6               	clrf	?a_EventBurstWait
   145  03B0                     l14
   146                           ;event.c: 52: return(event);
   147  03B0  0846               	movf	?a_EventBurstWait,w
   148                           ;event.c: 53: }
   149  03B1  0008               	return
   150                           
   151                           	psect	text2
   152  0000                     
   153  0000                     
   154  0000                     
   155  0000                     
   156  0000                     
   157  0000                     
   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                     

⌨️ 快捷键说明

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