CCS PCM C Compiler, Version 4.058s, 42064               04-V-08 15:14

               Filename: C:\RS\Prog\off\off.lst

               ROM used: 91 words (1%)
                         Largest free fragment is 2048
               RAM used: 7 (2%) at main() level
                         7 (2%) worst case
               Stack:    0 locations

*
0000:  MOVLW  00
0001:  MOVWF  0A
0002:  GOTO   004
0003:  NOP
.................... #include "C:\RS\Prog\off\off.h" 
.................... #include <16F873A.h> 
.................... //////// Standard Header file for the PIC16F873A device //////////////// 
.................... #device PIC16F877A 
.................... #list 
....................  
.................... #device adc=8 
....................  
.................... #FUSES NOWDT                    //No Watch Dog Timer 
.................... #FUSES HS                       //High speed Osc (> 4mhz) 
.................... #FUSES NOPUT                    //No Power Up Timer 
.................... #FUSES NOPROTECT                //Code not protected from reading 
.................... #FUSES NODEBUG                  //No Debug mode for ICD 
.................... #FUSES BROWNOUT                 //Reset when brownout detected 
.................... #FUSES LVP                      //Low Voltage Programming on B3(PIC16) or B5(PIC18) 
.................... #FUSES NOCPD                    //No EE protection 
.................... #FUSES NOWRT                    //Program memory not write protected 
....................  
.................... #use delay(clock=20000000,RESTART_WDT) 
.................... #use rs232(baud=1200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) 
....................  
....................  
....................  
.................... void main() 
.................... { 
0004:  CLRF   04
0005:  BCF    03.7
0006:  MOVLW  1F
0007:  ANDWF  03,F
0008:  MOVLW  FF
0009:  BSF    03.5
000A:  MOVWF  19
000B:  MOVLW  A2
000C:  MOVWF  18
000D:  MOVLW  90
000E:  BCF    03.5
000F:  MOVWF  18
0010:  BSF    03.5
0011:  BSF    1F.0
0012:  BSF    1F.1
0013:  BSF    1F.2
0014:  BCF    1F.3
0015:  MOVLW  07
0016:  MOVWF  1C
....................  
....................    port_b_pullups(TRUE); 
*
001A:  BSF    03.5
001B:  BCF    01.7
....................    setup_adc_ports(NO_ANALOGS); 
001C:  BSF    1F.0
001D:  BSF    1F.1
001E:  BSF    1F.2
001F:  BCF    1F.3
....................    setup_adc(ADC_OFF); 
0020:  BCF    03.5
0021:  BCF    1F.0
....................    setup_spi(SPI_SS_DISABLED); 
*
0017:  MOVLW  FF
0018:  BCF    03.5
0019:  MOVWF  20
*
0022:  BCF    14.5
0023:  BCF    20.5
0024:  MOVF   20,W
0025:  BSF    03.5
0026:  MOVWF  07
0027:  BCF    03.5
0028:  BSF    20.4
0029:  MOVF   20,W
002A:  BSF    03.5
002B:  MOVWF  07
002C:  BCF    03.5
002D:  BCF    20.3
002E:  MOVF   20,W
002F:  BSF    03.5
0030:  MOVWF  07
0031:  MOVLW  01
0032:  BCF    03.5
0033:  MOVWF  14
0034:  MOVLW  00
0035:  BSF    03.5
0036:  MOVWF  14
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
0037:  MOVF   01,W
0038:  ANDLW  C7
0039:  IORLW  08
003A:  MOVWF  01
....................    setup_timer_1(T1_DISABLED); 
003B:  BCF    03.5
003C:  CLRF   10
....................    setup_timer_2(T2_DISABLED,0,1); 
003D:  MOVLW  00
003E:  MOVWF  78
003F:  MOVWF  12
0040:  MOVLW  00
0041:  BSF    03.5
0042:  MOVWF  12
....................    setup_comparator(NC_NC_NC_NC); 
0043:  MOVLW  07
0044:  MOVWF  1C
0045:  MOVF   05,W
0046:  CLRWDT
0047:  MOVLW  10
0048:  MOVWF  77
0049:  DECFSZ 77,F
004A:  GOTO   049
004B:  MOVF   1C,W
004C:  BCF    03.5
004D:  BCF    0D.6
....................    setup_vref(FALSE); 
004E:  BSF    03.5
004F:  CLRF   1D
....................     
....................    while(TRUE) 
....................       { 
....................       if(input(PIN_B0)) 
0050:  BSF    06.0
0051:  BCF    03.5
0052:  BTFSS  06.0
0053:  GOTO   058
....................       printf("A"); 
0054:  MOVLW  41
0055:  BTFSS  0C.4
0056:  GOTO   055
0057:  MOVWF  19
....................       } 
0058:  BSF    03.5
0059:  GOTO   050
....................  
.................... } 
005A:  SLEEP

Configuration Fuses:
   Word  1: 3FFA   HS NOWDT NOPUT NODEBUG NOPROTECT BROWNOUT LVP NOCPD NOWRT