Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;--------------------------------------------------------
- ; File Created by SDCC : free open source ANSI-C Compiler
- ; Version 3.9.4 #11411 (MINGW64)
- ;--------------------------------------------------------
- ; PIC port for the 14-bit core
- ;--------------------------------------------------------
- ; .file "main.c"
- list p=16f84a
- radix dec
- include "p16f84a.inc"
- ;--------------------------------------------------------
- ; external declarations
- ;--------------------------------------------------------
- extern _STATUSbits
- extern _PORTAbits
- extern _PORTBbits
- extern _INTCONbits
- extern _OPTION_REGbits
- extern _TRISAbits
- extern _TRISBbits
- extern _EECON1bits
- extern _INDF
- extern _TMR0
- extern _PCL
- extern _STATUS
- extern _FSR
- extern _PORTA
- extern _PORTB
- extern _EEDATA
- extern _EEADR
- extern _PCLATH
- extern _INTCON
- extern _OPTION_REG
- extern _TRISA
- extern _TRISB
- extern _EECON1
- extern _EECON2
- extern __sdcc_gsinit_startup
- ;--------------------------------------------------------
- ; global declarations
- ;--------------------------------------------------------
- global _Delays
- global _Delayus
- global _RF01_RDFIFO
- global _WriteCMD
- global _Write1
- global _Write0
- global _RF1_Init
- global _main
- global _RF_RXBUF
- global PSAVE
- global SSAVE
- global WSAVE
- global STK12
- global STK11
- global STK10
- global STK09
- global STK08
- global STK07
- global STK06
- global STK05
- global STK04
- global STK03
- global STK02
- global STK01
- global STK00
- sharebank udata_ovr 0x000C
- PSAVE res 1
- SSAVE res 1
- WSAVE res 1
- STK12 res 1
- STK11 res 1
- STK10 res 1
- STK09 res 1
- STK08 res 1
- STK07 res 1
- STK06 res 1
- STK05 res 1
- STK04 res 1
- STK03 res 1
- STK02 res 1
- STK01 res 1
- STK00 res 1
- ;--------------------------------------------------------
- ; global definitions
- ;--------------------------------------------------------
- UD_main_0 udata
- _RF_RXBUF res 19
- ;--------------------------------------------------------
- ; absolute symbol definitions
- ;--------------------------------------------------------
- ;--------------------------------------------------------
- ; compiler-defined variables
- ;--------------------------------------------------------
- UDL_main_0 udata
- r0x1022 res 1
- r0x1023 res 1
- r0x1024 res 1
- r0x1025 res 1
- r0x1026 res 1
- r0x1027 res 1
- r0x1028 res 1
- r0x1029 res 1
- r0x101F res 1
- r0x101E res 1
- r0x1020 res 1
- r0x1021 res 1
- r0x101B res 1
- r0x101C res 1
- r0x101D res 1
- r0x1014 res 1
- r0x1013 res 1
- r0x1015 res 1
- r0x1016 res 1
- r0x1017 res 1
- r0x1018 res 1
- r0x1019 res 1
- r0x101A res 1
- ;--------------------------------------------------------
- ; initialized data
- ;--------------------------------------------------------
- ;--------------------------------------------------------
- ; overlayable items in internal ram
- ;--------------------------------------------------------
- ; udata_ovr
- ;--------------------------------------------------------
- ; reset vector
- ;--------------------------------------------------------
- STARTUP code 0x0000
- nop
- pagesel __sdcc_gsinit_startup
- goto __sdcc_gsinit_startup
- ;--------------------------------------------------------
- ; code
- ;--------------------------------------------------------
- code_main code
- ;***
- ; pBlock Stats: dbName = M
- ;***
- ;has an exit
- ;functions called:
- ; _Delays
- ; _RF1_Init
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _RF01_RDFIFO
- ; _WriteCMD
- ; _WriteCMD
- ; _Delayus
- ; _Delays
- ; _RF1_Init
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _WriteCMD
- ; _RF01_RDFIFO
- ; _WriteCMD
- ; _WriteCMD
- ; _Delayus
- ;9 compiler assigned registers:
- ; r0x1022
- ; STK00
- ; r0x1023
- ; r0x1024
- ; r0x1025
- ; r0x1026
- ; r0x1027
- ; r0x1028
- ; r0x1029
- ;; Starting pCode block
- S_main__main code
- _main:
- ; 2 exit points
- ; .line 41; "main.c" uchar i=0,j=0;
- CLRF r0x1022
- ; .line 43; "main.c" Delays();
- PAGESEL _Delays
- CALL _Delays
- PAGESEL $
- ; .line 44; "main.c" RF1_Init( );
- PAGESEL _RF1_Init
- CALL _RF1_Init
- PAGESEL $
- ; .line 45; "main.c" WriteCMD(0x0000);
- MOVLW 0x00
- MOVWF STK00
- MOVLW 0x00
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 46; "main.c" WriteCMD(0x898A);//433BAND,134kHz
- MOVLW 0x8a
- MOVWF STK00
- MOVLW 0x89
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 47; "main.c" WriteCMD(0xA640);//434MHz
- MOVLW 0x40
- MOVWF STK00
- MOVLW 0xa6
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 48; "main.c" WriteCMD(0xC847);//4.8kbps
- MOVLW 0x47
- MOVWF STK00
- MOVLW 0xc8
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 49; "main.c" WriteCMD(0xC69B);//AFC setting
- MOVLW 0x9b
- MOVWF STK00
- MOVLW 0xc6
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 50; "main.c" WriteCMD(0xC42A);//Clock recovery manual control,Digital filter,DQD=4
- MOVLW 0x2a
- MOVWF STK00
- MOVLW 0xc4
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 51; "main.c" WriteCMD(0xC240);//output 1.66MHz
- MOVLW 0x40
- MOVWF STK00
- MOVLW 0xc2
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 52; "main.c" WriteCMD(0xC080);
- MOVLW 0x80
- MOVWF STK00
- MOVLW 0xc0
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 53; "main.c" WriteCMD(0xCE88);//use FIFO
- MOVLW 0x88
- MOVWF STK00
- MOVLW 0xce
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 54; "main.c" WriteCMD(0xCE8B);
- MOVLW 0x8b
- MOVWF STK00
- MOVLW 0xce
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 55; "main.c" WriteCMD(0xC081);//OPEN RX
- MOVLW 0x81
- MOVWF STK00
- MOVLW 0xc0
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- _00114_DS_:
- ; .line 58; "main.c" while(!nIRQ)
- BANKSEL _PORTBbits
- BTFSC _PORTBbits,1
- GOTO _00114_DS_
- ; .line 60; "main.c" RF_RXBUF[i++]=RF01_RDFIFO();
- MOVF r0x1022,W
- MOVWF r0x1023
- INCF r0x1022,F
- MOVF r0x1023,W
- ADDLW (_RF_RXBUF + 0)
- MOVWF r0x1023
- MOVLW high (_RF_RXBUF + 0)
- BTFSC STATUS,0
- ADDLW 0x01
- MOVWF r0x1024
- PAGESEL _RF01_RDFIFO
- CALL _RF01_RDFIFO
- PAGESEL $
- MOVWF r0x1025
- MOVF r0x1023,W
- MOVWF FSR
- BCF STATUS,7
- BTFSC r0x1024,0
- BSF STATUS,7
- MOVF r0x1025,W
- MOVWF INDF
- ; .line 61; "main.c" if(i==17)
- MOVF r0x1022,W
- XORLW 0x11
- BTFSS STATUS,2
- GOTO _00114_DS_
- ; .line 63; "main.c" i=0;
- CLRF r0x1022
- ; .line 64; "main.c" WriteCMD(0xCE88);
- MOVLW 0x88
- MOVWF STK00
- MOVLW 0xce
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 65; "main.c" WriteCMD(0xCE8B);
- MOVLW 0x8b
- MOVWF STK00
- MOVLW 0xce
- PAGESEL _WriteCMD
- CALL _WriteCMD
- PAGESEL $
- ; .line 66; "main.c" CheckSum=0;
- CLRF r0x1023
- CLRF r0x1024
- ; .line 67; "main.c" for(j=0;j<16;j++)
- CLRF r0x1025
- _00120_DS_:
- ; .line 68; "main.c" CheckSum+=RF_RXBUF[j]; //add 0x30-----0x3F
- MOVF r0x1025,W
- ADDLW (_RF_RXBUF + 0)
- MOVWF r0x1026
- MOVLW high (_RF_RXBUF + 0)
- BTFSC STATUS,0
- ADDLW 0x01
- MOVWF r0x1027
- MOVF r0x1026,W
- MOVWF FSR
- BCF STATUS,7
- BTFSC r0x1027,0
- BSF STATUS,7
- MOVF INDF,W
- MOVWF r0x1028
- MOVWF r0x1026
- CLRF r0x1027
- ;;99 MOVF r0x1026,W
- MOVLW 0x00
- MOVWF r0x1029
- MOVF r0x1028,W
- ADDWF r0x1023,F
- MOVF r0x1029,W
- BTFSC STATUS,0
- INCFSZ r0x1029,W
- ADDWF r0x1024,F
- ; .line 67; "main.c" for(j=0;j<16;j++)
- INCF r0x1025,F
- ;;unsigned compare: left < lit(0x10=16), size=1
- MOVLW 0x10
- SUBWF r0x1025,W
- BTFSS STATUS,0
- GOTO _00120_DS_
- ;;genSkipc:3257: created from rifx:00000000047857B0
- ; .line 69; "main.c" CheckSum&=0x0FF;
- CLRF r0x1024
- ; .line 70; "main.c" if(CheckSum==RF_RXBUF[16])
- MOVF (_RF_RXBUF + 16),W
- MOVWF r0x1025
- MOVWF r0x1026
- CLRF r0x1027
- MOVF r0x1026,W
- XORWF r0x1023,W
- BTFSS STATUS,2
- GOTO _00001_DS_
- MOVF r0x1027,W
- ; .line 72; "main.c" LED=1;
- XORWF r0x1024,W
- ; .line 74; "main.c" Delayus(1);
- BTFSS STATUS,2
- GOTO _00001_DS_
- BANKSEL _PORTAbits
- BSF _PORTAbits,0
- _00001_DS_:
- MOVLW 0x01
- MOVWF STK00
- MOVLW 0x00
- PAGESEL _Delayus
- CALL _Delayus
- PAGESEL $
- ; .line 75; "main.c" LED=0;
- BANKSEL _PORTAbits
- BCF _PORTAbits,0
- GOTO _00114_DS_
- ; .line 79; "main.c" }
- RETURN
- ; exit point of _main
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _Delayus
- ; _Delayus
- ;3 compiler assigned registers:
- ; r0x1019
- ; r0x101A
- ; STK00
- ;; Starting pCode block
- S_main__Delays code
- _Delays:
- ; 2 exit points
- ; .line 190; "main.c" while(i--)
- MOVLW 0x0a
- MOVWF r0x1019
- _00165_DS_:
- MOVF r0x1019,W
- MOVWF r0x101A
- DECF r0x1019,F
- MOVF r0x101A,W
- BTFSC STATUS,2
- GOTO _00168_DS_
- ; .line 192; "main.c" Delayus(1);
- MOVLW 0x01
- MOVWF STK00
- MOVLW 0x00
- PAGESEL _Delayus
- CALL _Delayus
- PAGESEL $
- GOTO _00165_DS_
- _00168_DS_:
- ; .line 194; "main.c" }
- RETURN
- ; exit point of _Delays
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _NOP
- ; _NOP
- ;7 compiler assigned registers:
- ; r0x1013
- ; STK00
- ; r0x1014
- ; r0x1015
- ; r0x1016
- ; r0x1017
- ; r0x1018
- ;; Starting pCode block
- S_main__Delayus code
- _Delayus:
- ; 2 exit points
- ; .line 175; "main.c" void Delayus( uint us )
- MOVWF r0x1013
- MOVF STK00,W
- MOVWF r0x1014
- _00157_DS_:
- ; .line 178; "main.c" while( us-- )
- MOVF r0x1014,W
- MOVWF r0x1015
- MOVF r0x1013,W
- MOVWF r0x1016
- MOVLW 0xff
- ADDWF r0x1014,F
- BTFSS STATUS,0
- DECF r0x1013,F
- MOVF r0x1015,W
- IORWF r0x1016,W
- BTFSC STATUS,2
- GOTO _00160_DS_
- ; .line 181; "main.c" while( i-- )
- MOVLW 0xe8
- MOVWF r0x1015
- MOVLW 0x03
- MOVWF r0x1016
- _00154_DS_:
- MOVF r0x1015,W
- MOVWF r0x1017
- MOVF r0x1016,W
- MOVWF r0x1018
- MOVLW 0xff
- ADDWF r0x1015,F
- BTFSS STATUS,0
- DECF r0x1016,F
- MOVF r0x1017,W
- IORWF r0x1018,W
- BTFSC STATUS,2
- GOTO _00157_DS_
- ; .line 183; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- GOTO _00154_DS_
- _00160_DS_:
- ; .line 186; "main.c" }
- RETURN
- ; exit point of _Delayus
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ;3 compiler assigned registers:
- ; r0x101B
- ; r0x101C
- ; r0x101D
- ;; Starting pCode block
- S_main__RF01_RDFIFO code
- _RF01_RDFIFO:
- ; 2 exit points
- ; .line 145; "main.c" SCK=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,4
- ; .line 146; "main.c" SDI=0;
- BCF _PORTBbits,5
- ; .line 147; "main.c" nSEL=0;
- BCF _PORTBbits,7
- ; .line 148; "main.c" for(i=0;i<16;i++)
- CLRF r0x101B
- _00147_DS_:
- ; .line 150; "main.c" SCK=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,4
- ; .line 151; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 152; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 153; "main.c" SCK=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,4
- ; .line 154; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 155; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 148; "main.c" for(i=0;i<16;i++)
- INCF r0x101B,F
- ;;unsigned compare: left < lit(0x10=16), size=1
- MOVLW 0x10
- SUBWF r0x101B,W
- BTFSS STATUS,0
- GOTO _00147_DS_
- ;;genSkipc:3257: created from rifx:00000000047857B0
- ; .line 157; "main.c" Result=0;
- CLRF r0x101B
- ; .line 158; "main.c" for(i=0;i<8;i++)
- CLRF r0x101C
- _00149_DS_:
- ; .line 160; "main.c" Result=Result<<1;
- MOVF r0x101B,W
- MOVWF r0x101D
- BCF STATUS,0
- RLF r0x101D,W
- ; .line 161; "main.c" if(SDO)
- MOVWF r0x101B
- ; .line 163; "main.c" Result|=1;
- BANKSEL _PORTBbits
- BTFSC _PORTBbits,2
- ; .line 165; "main.c" SCK=1;
- BSF r0x101B,0
- BSF _PORTBbits,4
- ; .line 166; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 167; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 168; "main.c" SCK=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,4
- ; .line 169; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 170; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 158; "main.c" for(i=0;i<8;i++)
- INCF r0x101C,F
- ;;unsigned compare: left < lit(0x8=8), size=1
- MOVLW 0x08
- SUBWF r0x101C,W
- BTFSS STATUS,0
- GOTO _00149_DS_
- ;;genSkipc:3257: created from rifx:00000000047857B0
- ; .line 172; "main.c" nSEL=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,7
- ; .line 173; "main.c" return(Result);
- MOVF r0x101B,W
- ; .line 174; "main.c" }
- RETURN
- ; exit point of _RF01_RDFIFO
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _Write1
- ; _Write0
- ; _Write1
- ; _Write0
- ;5 compiler assigned registers:
- ; r0x101E
- ; STK00
- ; r0x101F
- ; r0x1020
- ; r0x1021
- ;; Starting pCode block
- S_main__WriteCMD code
- _WriteCMD:
- ; 2 exit points
- ; .line 126; "main.c" void WriteCMD( uint CMD )
- MOVWF r0x101E
- MOVF STK00,W
- MOVWF r0x101F
- ; .line 129; "main.c" SCK=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,4
- ; .line 130; "main.c" nSEL=0;
- BCF _PORTBbits,7
- ; .line 131; "main.c" while(n--)
- MOVLW 0x10
- MOVWF r0x1020
- _00136_DS_:
- MOVF r0x1020,W
- MOVWF r0x1021
- DECF r0x1020,F
- MOVF r0x1021,W
- BTFSC STATUS,2
- GOTO _00138_DS_
- ; .line 133; "main.c" if(CMD&0x8000)
- BTFSS r0x101E,7
- GOTO _00134_DS_
- ; .line 134; "main.c" Write1();
- PAGESEL _Write1
- CALL _Write1
- PAGESEL $
- GOTO _00135_DS_
- _00134_DS_:
- ; .line 136; "main.c" Write0();
- PAGESEL _Write0
- CALL _Write0
- PAGESEL $
- _00135_DS_:
- ; .line 137; "main.c" CMD=CMD<<1;
- BCF STATUS,0
- RLF r0x101F,F
- RLF r0x101E,F
- GOTO _00136_DS_
- _00138_DS_:
- ; .line 139; "main.c" SCK=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,4
- ; .line 140; "main.c" nSEL=1;
- BSF _PORTBbits,7
- ; .line 141; "main.c" }
- RETURN
- ; exit point of _WriteCMD
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ;; Starting pCode block
- S_main__Write1 code
- _Write1:
- ; 2 exit points
- ; .line 105; "main.c" SDI=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,5
- ; .line 106; "main.c" SCK=0;
- BCF _PORTBbits,4
- ; .line 107; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 108; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 109; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 110; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 111; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 112; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 113; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 114; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 115; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 116; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 117; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 118; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 119; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 120; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 121; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 122; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 123; "main.c" SCK=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,4
- ; .line 124; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 125; "main.c" }
- RETURN
- ; exit point of _Write1
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;functions called:
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ; _NOP
- ;; Starting pCode block
- S_main__Write0 code
- _Write0:
- ; 2 exit points
- ; .line 82; "main.c" SDI=0;
- BANKSEL _PORTBbits
- BCF _PORTBbits,5
- ; .line 83; "main.c" SCK=0;
- BCF _PORTBbits,4
- ; .line 84; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 85; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 86; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 87; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 88; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 89; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 90; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 91; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 92; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 93; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 94; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 95; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 96; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 97; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 98; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 99; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 100; "main.c" SCK=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,4
- ; .line 101; "main.c" NOP();
- PAGESEL _NOP
- CALL _NOP
- PAGESEL $
- ; .line 102; "main.c" }
- RETURN
- ; exit point of _Write0
- ;***
- ; pBlock Stats: dbName = C
- ;***
- ;has an exit
- ;; Starting pCode block
- S_main__RF1_Init code
- _RF1_Init:
- ; 2 exit points
- ; .line 28; "main.c" nSEL=1;
- BANKSEL _PORTBbits
- BSF _PORTBbits,7
- ; .line 29; "main.c" SDI=1;
- BSF _PORTBbits,5
- ; .line 30; "main.c" SCK=0;
- BCF _PORTBbits,4
- ; .line 31; "main.c" nSEL_OUT();
- BANKSEL _TRISBbits
- BCF _TRISBbits,7
- ; .line 32; "main.c" SDI_OUT();
- BCF _TRISBbits,5
- ; .line 33; "main.c" SDO_IN();
- BSF _TRISBbits,2
- ; .line 34; "main.c" nIRQ_IN();
- BSF _TRISBbits,1
- ; .line 35; "main.c" SCK_OUT();
- BCF _TRISBbits,4
- ; .line 36; "main.c" LED_OUT();
- BCF _TRISAbits,0
- ; .line 37; "main.c" LED=0;
- BANKSEL _PORTAbits
- BCF _PORTAbits,0
- ; .line 38; "main.c" }
- RETURN
- ; exit point of _RF1_Init
- ; code size estimation:
- ; 298+ 144 = 442 instructions ( 1172 byte)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement