Subversion Repositories svnkaklik

Rev

Rev 6 | Blame | Last modification | View Log | Download

CCS PCW C Compiler, Version 3.110, 15448

               Filename: d:\@kaklik\programy\pic_c\mereni\zavora\main.LST

               ROM used: 58 (6%)
                         Largest free fragment is 966
               RAM used: 2 (3%) at main() level
                         3 (4%) worst case
               Stack:    1 locations

*
0000:  MOVLW  00
0001:  MOVWF  0A
0002:  GOTO   019
0003:  NOP
....................  #include "D:\@Kaklik\programy\PIC_C\mereni\zavora\main.h" 
....................  #include <16F84.h> 
....................  //////// Standard Header file for the PIC16F84 device ////////////////  
.................... #device PIC16F84  
.................... #list  
....................  
.................... #use delay(clock=4000000)  
0004:  MOVLW  0F
0005:  MOVWF  04
0006:  MOVF   00,W
0007:  BTFSC  03.2
0008:  GOTO   018
0009:  MOVLW  01
000A:  MOVWF  0D
000B:  CLRF   0C
000C:  DECFSZ 0C,F
000D:  GOTO   00C
000E:  DECFSZ 0D,F
000F:  GOTO   00B
0010:  MOVLW  4A
0011:  MOVWF  0C
0012:  DECFSZ 0C,F
0013:  GOTO   012
0014:  NOP
0015:  NOP
0016:  DECFSZ 00,F
0017:  GOTO   009
0018:  RETLW  00
.................... #fuses XT,NOWDT  
....................   
....................  
....................   
....................   
.................... void main()  
.................... {  
0019:  CLRF   04
001A:  MOVLW  1F
001B:  ANDWF  03,F
....................    output_high(PIN_A3);  
001C:  BSF    03.5
001D:  BCF    05.3
001E:  BCF    03.5
001F:  BSF    05.3
....................    Delay_ms(250);  
0020:  MOVLW  FA
0021:  MOVWF  0F
0022:  CALL   004
....................    output_low(PIN_A3);  
0023:  BSF    03.5
0024:  BCF    05.3
0025:  BCF    03.5
0026:  BCF    05.3
....................    Delay_ms(250);  
0027:  MOVLW  FA
0028:  MOVWF  0F
0029:  CALL   004
....................      
....................    while(true)  
....................    {  
....................       if(input(PIN_A4)) output_low(PIN_A3);  
002A:  BSF    03.5
002B:  BSF    05.4
002C:  BCF    03.5
002D:  BTFSS  05.4
002E:  GOTO   034
002F:  BSF    03.5
0030:  BCF    05.3
0031:  BCF    03.5
0032:  BCF    05.3
....................       else output_high(PIN_A3);  
0033:  GOTO   038
0034:  BSF    03.5
0035:  BCF    05.3
0036:  BCF    03.5
0037:  BSF    05.3
....................    }  
0038:  GOTO   02A
.................... }  
....................  
0039:  SLEEP