;====Smart Disassembler 智能反编译器======================================= ;========================================================================== ;U51程序编写: 覃远高 ; 版权所有: 覃远高 ; 出品: 开发天地,提供单片机项目开发、单片机逆向工程服务。 ; 主页: http://www.mcusky.com ; 邮箱: qinyg@tom.com ; 电话: 13316529329 0755-82895478 ; 最后更新: 2007.9 ;========================================================================== ;===========Disassemble information======================================== ;========================================================================== ; File Name: D:\18F452.BIN ; IC Body: PIC->PIC ; Date: 2008-11-17 ;========================================================================== #include "P18F452.inc" ;===================================================================== ORG 00000H GOTO Q001B7 DW 0xFFFF DW 0xFFFF GOTO Q001BF ;========================================================================== Q00006: MOVWF 0x00,ACCESS ANDLW 0x7F BTFSC 0x00,6,ACCESS SUBLW 0x80 ADDLW 0x2A MOVWF TBLPTRL,ACCESS CLRF TBLPTRH,ACCESS MOVLW 0x00 ADDWFC TBLPTRH,F,ACCESS CLRF TBLPTRU,ACCESS TBLRD* MOVF TABLAT,W,ACCESS BTFSC 0x00,7,ACCESS SUBLW 0x00 RETURN DW 0x0300 DW 0x0906 DW 0x100C DW 0x1613 DW 0x1C19 DW 0x221F DW 0x2825 DW 0x2E2B DW 0x3331 DW 0x3936 DW 0x3F3C DW 0x4441 DW 0x4947 DW 0x4E4C DW 0x5351 DW 0x5855 DW 0x5C5A DW 0x605E DW 0x6462 DW 0x6866 DW 0x6B6A DW 0x6F6D DW 0x7170 DW 0x7473 DW 0x7675 DW 0x7978 DW 0x7A7A DW 0x7C7B DW 0x7D7D DW 0x7E7E DW 0x7F7E DW 0x7F7F DW 0x007F ;========================================================================== Q00036: ANDLW 0x0F ADDLW 0xA0 MOVWF TBLPTRL,ACCESS CLRF TBLPTRH,ACCESS MOVLW 0x00 ADDWFC TBLPTRH,F,ACCESS CLRF TBLPTRU,ACCESS TBLRD* MOVF TABLAT,W,ACCESS MOVWF 0x00,ACCESS RCALL Q00058 MOVWF 0x43,ACCESS TBLRD* MOVF TABLAT,W,ACCESS MOVWF 0x42,ACCESS SWAPF 0x00,F,ACCESS RCALL Q00058 MOVWF 0x1F,ACCESS TBLRD* MOVF TABLAT,W,ACCESS RCALL Q0006B MOVF 0x5E,W,ACCESS MOVWF 0x03,ACCESS MOVF 0x5D,W,ACCESS GOTO Q00107 DW 0x80A6 DW 0xC0A0 DW 0xA282 DW 0x84C2 DW 0xC4A4 DW 0xC686 DW 0xE2E0 DW 0xE6E4 ;========================================================================== Q00058: MOVF 0x00,W,ACCESS ANDLW 0x0F ADDLW 0xC6 MOVWF TBLPTRL,ACCESS CLRF TBLPTRH,ACCESS MOVLW 0x00 ADDWFC TBLPTRH,F,ACCESS CLRF TBLPTRU,ACCESS TBLRD*+ MOVF TABLAT,W,ACCESS RETURN DW 0xB902 DW 0x0203 DW 0x5403 DW 0xAD03 DW 0xB904 DW 0x3805 DW 0xC505 DW 0x6106 ;========================================================================== Q0006B: MOVWF 0x1E,ACCESS MOVF 0x1F,W,ACCESS SUBWF 0x1E,F,ACCESS BTFSS STATUS,C,ACCESS DECF 0x1F,F,ACCESS MOVF 0x43,W,ACCESS SUBWF 0x42,F,ACCESS BTFSS STATUS,C,ACCESS DECF 0x43,F,ACCESS COMF 0x5F,W,ACCESS MOVWF 0x02,ACCESS COMF 0x28,W,ACCESS MOVWF 0x03,ACCESS INCF 0x02,F,ACCESS BTFSC STATUS,Z,ACCESS INCF 0x03,F,ACCESS MOVLW 0x41 MOVWF 0x58,ACCESS CLRF 0x62,ACCESS CLRF 0x63,ACCESS CLRF 0x64,ACCESS CLRF 0x65,ACCESS CLRF 0x57,ACCESS MOVFF 0x066,FSR0H MOVFF 0x059,FSR0L COMF 0x16,W,ACCESS CALL Q000DF ;========================================================================== Q00089: NOP MOVF 0x1E,W,ACCESS ADDWF 0x62,F,ACCESS BTFSC STATUS,C,ACCESS INCF 0x63,F,ACCESS MOVF 0x1F,W,ACCESS ADDWF 0x63,F,ACCESS MOVF 0x42,W,ACCESS ADDWF 0x64,F,ACCESS BTFSC STATUS,C,ACCESS INCF 0x65,F,ACCESS MOVF 0x43,W,ACCESS ADDWF 0x65,F,ACCESS MOVF 0x63,W,ACCESS CALL Q00006 ADDLW 0x80 MOVWF 0x01,ACCESS MOVF 0x65,W,ACCESS CALL Q00006 ADDLW 0x80 ADDWF 0x01,F,ACCESS RRCF 0x01,W,ACCESS ADDWF 0x57,F,ACCESS MOVFF 0x059,FSR0L MOVF INDF0,W,ACCESS IORWF 0x16,W,ACCESS BTFSS STATUS,C,ACCESS XORWF 0x16,W,ACCESS MOVWF INDF0,ACCESS DECF 0x58,W,ACCESS BTFSC STATUS,Z,ACCESS MOVLW 0x41 MOVWF 0x58,ACCESS BTFSC STATUS,Z,ACCESS INCF 0x02,F,ACCESS BTFSC STATUS,Z,ACCESS INCFSZ 0x03,F,ACCESS BRA Q00089 GOTO Q001B4 ;========================================================================== Q000B4: BTFSC RCSTA,OERR,ACCESS BCF RCSTA,CREN,ACCESS BSF RCSTA,CREN,ACCESS MOVF 0x62,W,ACCESS MOVWF 0x00,ACCESS MOVF 0x63,W,ACCESS MOVWF 0x01,ACCESS CLRF 0x02,ACCESS CLRF 0x03,ACCESS ;========================================================================== Q000BD: NOP BRA Q000BF ;========================================================================== Q000BF: NOP BTFSC PIR1,RCIF,ACCESS BRA Q000D5 MOVLW 0xFF ADDWF 0x02,F,ACCESS BTFSS STATUS,C,ACCESS ADDWF 0x03,F,ACCESS BTFSS STATUS,C,ACCESS ADDWF 0x00,F,ACCESS BTFSS STATUS,C,ACCESS ADDWF 0x01,F,ACCESS BTFSS STATUS,C,ACCESS GOTO Q001B4 INFSNZ 0x02,W,ACCESS INCFSZ 0x03,W,ACCESS BRA Q000BD MOVLW 0xFA MOVWF 0x02,ACCESS MOVLW 0x00 MOVWF 0x03,ACCESS BRA Q000BF ;========================================================================== Q000D5: MOVF RCREG,W,ACCESS BSF STATUS,C,ACCESS GOTO Q001B4 ;========================================================================== Q000D9: BTFSS PIR1,TXIF,ACCESS BRA Q000D9 MOVWF TXREG,ACCESS BSF STATUS,C,ACCESS GOTO Q001B4 ;========================================================================== Q000DF: BSF FSR0L,4,ACCESS INCF FSR0L,F,ACCESS ANDWF PREINC0,F,ACCESS GOTO Q001B4 ;========================================================================== Q000E4: MOVF 0x57,W,ACCESS ANDLW 0x07 ADDLW 0xDE MOVWF TBLPTRL,ACCESS CLRF TBLPTRH,ACCESS MOVLW 0x01 ADDWFC TBLPTRH,F,ACCESS CLRF TBLPTRU,ACCESS TBLRD* MOVF TABLAT,W,ACCESS RETURN DW 0x0201 DW 0x0804 DW 0x2010 DW 0x8040 ;========================================================================== Q000F3: MOVWF EEADR,ACCESS CLRF EECON1,ACCESS BSF EECON1,RD,ACCESS MOVF EEDATA,W,ACCESS GOTO Q001B4 ;========================================================================== Q000F9: MOVWF EEDATA,ACCESS CLRF EECON1,ACCESS BSF EECON1,WREN,ACCESS MOVLW 0x55 MOVWF EECON2,ACCESS MOVLW 0xAA MOVWF EECON2,ACCESS BSF EECON1,WR,ACCESS ;========================================================================== Q00101: BTFSC EECON1,WR,ACCESS BRA Q00101 BCF EECON1,WREN,ACCESS GOTO Q001B4 ;========================================================================== Q00106: CLRF 0x03,ACCESS ;========================================================================== Q00107: MOVWF 0x02,ACCESS ;========================================================================== Q00108: MOVLW 0xFF ADDWF 0x02,F,ACCESS BTFSS STATUS,C,ACCESS ADDWF 0x03,F,ACCESS BTFSS STATUS,C,ACCESS GOTO Q001B4 MOVLW 0x03 MOVWF 0x01,ACCESS MOVLW 0xE6 RCALL Q00115 BRA Q00108 ;========================================================================== Q00114: CLRF 0x01,ACCESS ;========================================================================== Q00115: ADDLW 0xFC MOVWF 0x00,ACCESS COMF 0x01,F,ACCESS BTFSS STATUS,C,ACCESS BRA Q00120 ;========================================================================== Q0011A: MOVLW 0xFF ;========================================================================== Q0011B: NOP ADDWF 0x00,F,ACCESS BTFSC STATUS,C,ACCESS BRA Q0011B ADDWF 0x00,F,ACCESS ;========================================================================== Q00120: NOP INCFSZ 0x01,F,ACCESS BRA Q0011A RETURN ;========================================================================== Q00124: MOVWF 0x57,ACCESS CALL Q000E4 CLRF 0x00,ACCESS CLRF 0x01,ACCESS BTFSS 0x57,3,ACCESS MOVWF 0x00,ACCESS BTFSC 0x57,3,ACCESS MOVWF 0x01,ACCESS MOVF 0x00,W,ACCESS GOTO Q001B4 ;========================================================================== Q00130: BCF STATUS,C,ACCESS RLCF 0x00,F,ACCESS RLCF 0x01,F,ACCESS ;========================================================================== Q00133: ADDLW 0xFF BC Q00130 MOVF 0x00,W,ACCESS GOTO Q001B4 ;========================================================================== Q00138: BCF STATUS,C,ACCESS RRCF 0x01,F,ACCESS RRCF 0x00,F,ACCESS ;========================================================================== Q0013B: ADDLW 0xFF BC Q00138 MOVF 0x00,W,ACCESS GOTO Q001B4 ;========================================================================== Q00140: CLRF 0x01,ACCESS CLRF 0x03,ACCESS ;========================================================================== Q00142: MOVWF 0x02,ACCESS MOVLW 0x02 BRA Q0015D ;========================================================================== Q00145: CLRF 0x01,ACCESS CLRF 0x03,ACCESS MOVWF 0x02,ACCESS MOVLW 0x03 BRA Q0015D ;========================================================================== Q0014A: CLRF 0x01,ACCESS CLRF 0x03,ACCESS ;========================================================================== Q0014C: MOVWF 0x02,ACCESS MOVLW 0x01 BRA Q0015D ;========================================================================== Q0014F: CLRF 0x01,ACCESS CLRF 0x03,ACCESS MOVWF 0x02,ACCESS MOVLW 0x06 BRA Q0015D ;========================================================================== Q00154: CLRF 0x01,ACCESS CLRF 0x03,ACCESS MOVWF 0x02,ACCESS MOVLW 0x04 BRA Q0015D ;========================================================================== Q00159: CLRF 0x01,ACCESS CLRF 0x03,ACCESS ;========================================================================== Q0015B: MOVWF 0x02,ACCESS MOVLW 0x05 ;========================================================================== Q0015D: MOVWF 0x57,ACCESS MOVF 0x03,W,ACCESS SUBWF 0x01,W,ACCESS BNZ Q00163 MOVF 0x02,W,ACCESS SUBWF 0x00,W,ACCESS ;========================================================================== Q00163: MOVLW 0x04 BTFSC STATUS,C,ACCESS MOVLW 0x01 BTFSC STATUS,Z,ACCESS MOVLW 0x02 ANDWF 0x57,W,ACCESS BTFSS STATUS,Z,ACCESS MOVLW 0xFF GOTO Q001B4 ;========================================================================== Q0016D: TSTFSZ WREG,ACCESS MOVLW 0xFF ANDWF 0x00,W,ACCESS BTFSS STATUS,Z,ACCESS MOVLW 0xFF GOTO Q001B4 ;========================================================================== Q00174: IORWF 0x00,W,ACCESS BTFSS STATUS,Z,ACCESS MOVLW 0xFF GOTO Q001B4 ;========================================================================== Q00179: CLRF 0x1F,ACCESS CLRF 0x1E,ACCESS MOVLW 0x10 MOVWF 0x42,ACCESS ;========================================================================== Q0017D: RLCF 0x01,W,ACCESS RLCF 0x1E,F,ACCESS RLCF 0x1F,F,ACCESS MOVF 0x02,W,ACCESS SUBWF 0x1E,F,ACCESS MOVF 0x03,W,ACCESS BTFSS STATUS,C,ACCESS INCFSZ 0x03,W,ACCESS SUBWF 0x1F,F,ACCESS BC Q0018E MOVF 0x02,W,ACCESS ADDWF 0x1E,F,ACCESS MOVF 0x03,W,ACCESS BTFSC STATUS,C,ACCESS INCFSZ 0x03,W,ACCESS ADDWF 0x1F,F,ACCESS BCF STATUS,C,ACCESS ;========================================================================== Q0018E: RLCF 0x00,F,ACCESS RLCF 0x01,F,ACCESS DECFSZ 0x42,F,ACCESS BRA Q0017D MOVF 0x00,W,ACCESS GOTO Q001B4 ;========================================================================== Q00195: MOVF 0x02,W,ACCESS MULWF 0x42,ACCESS MOVFF PRODH,0x01F MOVFF PRODL,0x01E MOVF 0x03,W,ACCESS MULWF 0x43,ACCESS MOVFF PRODH,0x001 MOVFF PRODL,0x000 MOVF 0x02,W,ACCESS MULWF 0x43,ACCESS MOVF PRODL,W,ACCESS ADDWF 0x1F,F,ACCESS MOVF PRODH,W,ACCESS ADDWFC 0x00,F,ACCESS CLRF WREG,ACCESS ADDWFC 0x01,F,ACCESS MOVF 0x03,W,ACCESS MULWF 0x42,ACCESS MOVF PRODL,W,ACCESS ADDWF 0x1F,F,ACCESS MOVF PRODH,W,ACCESS ADDWFC 0x00,F,ACCESS CLRF WREG,ACCESS ADDWFC 0x01,F,ACCESS MOVF 0x1E,W,ACCESS GOTO Q001B4 ;========================================================================== Q001B4: MOVLB 0x00 NOP RETURN ;========================================================================== Q001B7: MOVLW 0x81 MOVWF SPBRG,ACCESS MOVLW 0x20 MOVWF TXSTA,ACCESS MOVLW 0x90 MOVWF RCSTA,ACCESS GOTO Q0050B ;========================================================================== Q001BF: MOVWF 0x05,ACCESS MOVFF STATUS,0x0B5 MOVFF BSR,0x083 MOVFF FSR0L,0x088 MOVFF FSR0H,0x087 MOVFF FSR1L,0x08A MOVFF FSR1H,0x089 MOVFF FSR2L,0x08C MOVFF FSR2H,0x08B MOVLB 0x00 BTFSS INTCON,TMR0IF,ACCESS GOTO Q001D7 MOVLW 0x64 MOVWF TMR0L,ACCESS BSF 0x92,0,BANKED ;========================================================================== Q001D7: BTFSS PIR1,TMR2IF,ACCESS GOTO Q001EF BTFSS PIE1,TMR2IE,ACCESS GOTO Q001EF BSF 0x92,2,BANKED BTFSS 0x9B,0,BANKED GOTO Q001EF BTFSC 0x9B,1,BANKED GOTO Q001EA BTFSC PORTC,2,ACCESS GOTO Q001E8 BSF 0x9B,1,BANKED ;========================================================================== Q001E8: GOTO Q001EF ;========================================================================== Q001EA: BTFSS PORTC,2,ACCESS GOTO Q001EF BCF 0x9B,1,BANKED INCF 0x9C,F,BANKED ;========================================================================== Q001EF: BTFSS 0x92,0,BANKED GOTO Q00397 CLRF FSR1H,ACCESS CLRF FSR2H,ACCESS INCF 0x5C,F,ACCESS INCF 0x6B,F,ACCESS BTFSS 0x07,1,ACCESS GOTO Q00262 MOVF 0x08,F,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00201 MOVLW 0x01 MOVWF 0x0A,ACCESS MOVLW 0xFE MOVWF 0x09,ACCESS ;========================================================================== Q00201: BTFSS 0x07,2,ACCESS GOTO Q00250 BCF 0x07,2,ACCESS MOVLW 0xBE ADDWF 0x08,W,ACCESS MOVWF FSR1L,ACCESS INCF INDF1,F,ACCESS MOVLW 0xC6 ADDWF 0x08,W,ACCESS MOVWF FSR2L,ACCESS MOVF INDF2,W,ACCESS SUBWF INDF1,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q00243 CLRF INDF1,ACCESS BTFSC PORTE,0,ACCESS GOTO Q00227 MOVF 0x0A,W,ACCESS ANDWF 0x0B,W,ACCESS BTFSC STATUS,Z,ACCESS GOTO Q0021E MOVF 0x09,W,ACCESS ANDWF 0x0D,F,ACCESS GOTO Q00243 ;========================================================================== Q0021E: MOVF 0x0A,W,ACCESS ANDWF 0x0D,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00239 MOVF 0x0A,W,ACCESS IORWF 0x0D,F,ACCESS GOTO Q00243 ;========================================================================== Q00227: MOVF 0x0A,W,ACCESS ANDWF 0x0B,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00230 MOVF 0x09,W,ACCESS ANDWF 0x0D,F,ACCESS GOTO Q00243 ;========================================================================== Q00230: MOVF 0x0A,W,ACCESS ANDWF 0x0D,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q0023F MOVF 0x0A,W,ACCESS IORWF 0x0D,F,ACCESS GOTO Q00243 ;========================================================================== Q00239: MOVF 0x0A,W,ACCESS IORWF 0x0B,F,ACCESS MOVF 0x09,W,ACCESS ANDWF 0x0D,F,ACCESS GOTO Q00243 ;========================================================================== Q0023F: MOVF 0x09,W,ACCESS ANDWF 0x0B,F,ACCESS MOVF 0x09,W,ACCESS ANDWF 0x0D,F,ACCESS ;========================================================================== Q00243: RLNCF 0x0A,F,ACCESS RLNCF 0x09,F,ACCESS BSF 0x09,0,ACCESS INCF 0x08,F,ACCESS MOVLW 0x08 SUBWF 0x08,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q00250 CLRF 0x08,ACCESS BCF 0x07,1,ACCESS GOTO Q00262 ;========================================================================== Q00250: BTFSC 0x07,2,ACCESS GOTO Q00262 BSF 0x07,2,ACCESS MOVLW 0xF9 ANDWF PORTA,F,ACCESS MOVLW 0x07 ANDWF 0x08,F,ACCESS MOVF 0x08,W,ACCESS IORWF PORTA,F,ACCESS BTFSS 0x08,0,ACCESS BCF PORTD,2,ACCESS BTFSC 0x08,0,ACCESS BSF PORTD,2,ACCESS BCF PORTA,3,ACCESS BSF PORTA,5,ACCESS GOTO Q002DB ;========================================================================== Q00262: BTFSC 0x07,1,ACCESS GOTO Q002DB MOVF 0x08,F,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q0026D MOVLW 0x01 MOVWF 0x0A,ACCESS MOVLW 0xFE MOVWF 0x09,ACCESS ;========================================================================== Q0026D: BTFSS 0x07,2,ACCESS GOTO Q002CB BCF 0x07,2,ACCESS MOVLW 0xCE ADDWF 0x08,W,ACCESS MOVWF FSR1L,ACCESS INCF INDF1,F,ACCESS MOVLW 0xD6 ADDWF 0x08,W,ACCESS MOVWF FSR2L,ACCESS MOVF INDF2,W,ACCESS SUBWF INDF1,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q002AF CLRF INDF1,ACCESS BTFSC PORTE,0,ACCESS GOTO Q00293 MOVF 0x0A,W,ACCESS ANDWF 0x0C,W,ACCESS BTFSC STATUS,Z,ACCESS GOTO Q0028A MOVF 0x09,W,ACCESS ANDWF 0x0E,F,ACCESS GOTO Q002AF ;========================================================================== Q0028A: MOVF 0x0A,W,ACCESS ANDWF 0x0E,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q002A5 MOVF 0x0A,W,ACCESS IORWF 0x0E,F,ACCESS GOTO Q002AF ;========================================================================== Q00293: MOVF 0x0A,W,ACCESS ANDWF 0x0C,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q0029C MOVF 0x09,W,ACCESS ANDWF 0x0E,F,ACCESS GOTO Q002AF ;========================================================================== Q0029C: MOVF 0x0A,W,ACCESS ANDWF 0x0E,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q002AB MOVF 0x0A,W,ACCESS IORWF 0x0E,F,ACCESS GOTO Q002AF ;========================================================================== Q002A5: MOVF 0x0A,W,ACCESS IORWF 0x0C,F,ACCESS MOVF 0x09,W,ACCESS ANDWF 0x0E,F,ACCESS GOTO Q002AF ;========================================================================== Q002AB: MOVF 0x09,W,ACCESS ANDWF 0x0C,F,ACCESS MOVF 0x09,W,ACCESS ANDWF 0x0E,F,ACCESS ;========================================================================== Q002AF: MOVLW 0x02 SUBWF 0x08,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q002BE BTFSS PORTE,0,ACCESS GOTO Q002B9 MOVLW 0x04 MOVWF 0x54,ACCESS ;========================================================================== Q002B9: BTFSC PORTE,0,ACCESS GOTO Q002BE MOVLW 0x01 MOVWF 0x54,ACCESS ;========================================================================== Q002BE: RLNCF 0x0A,F,ACCESS RLNCF 0x09,F,ACCESS BSF 0x09,0,ACCESS INCF 0x08,F,ACCESS MOVLW 0x08 SUBWF 0x08,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q002CB CLRF 0x08,ACCESS BSF 0x07,1,ACCESS GOTO Q002DB ;========================================================================== Q002CB: BTFSC 0x07,2,ACCESS GOTO Q002DB BSF 0x07,2,ACCESS MOVLW 0xF9 ANDWF PORTA,F,ACCESS MOVLW 0x07 ANDWF 0x08,F,ACCESS MOVF 0x08,W,ACCESS IORWF PORTA,F,ACCESS BTFSS 0x08,0,ACCESS BCF PORTD,2,ACCESS BTFSC 0x08,0,ACCESS BSF PORTD,2,ACCESS BSF PORTA,3,ACCESS BCF PORTA,5,ACCESS ;========================================================================== Q002DB: INCF 0x9D,F,BANKED MOVLW 0x06 SUBWF 0x9D,W,BANKED BTFSS STATUS,C,ACCESS GOTO Q0033A CLRF 0x9D,BANKED INCF 0x3F,F,ACCESS INCF 0x27,F,ACCESS BTFSS 0x68,1,ACCESS GOTO Q002EE INCF 0x6A,F,ACCESS MOVLW 0x0B SUBWF 0x6A,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q0032E BCF 0x68,1,ACCESS ;========================================================================== Q002EE: BTFSS 0x68,2,ACCESS GOTO Q0032E BTFSS 0x67,0,ACCESS GOTO Q002F7 MOVLW 0x80 GOTO Q0031F ;========================================================================== Q002F7: BTFSS 0x67,1,ACCESS GOTO Q002FD MOVF 0x98,W,BANKED GOTO Q0031F ;========================================================================== Q002FD: BTFSS 0x67,2,ACCESS GOTO Q00303 MOVF 0x93,W,BANKED GOTO Q0031F ;========================================================================== Q00303: BTFSS 0x67,3,ACCESS GOTO Q00309 MOVF 0x94,W,BANKED GOTO Q0031F ;========================================================================== Q00309: BTFSS 0x67,4,ACCESS GOTO Q0030F MOVF 0x95,W,BANKED GOTO Q0031F ;========================================================================== Q0030F: BTFSS 0x67,5,ACCESS GOTO Q00315 MOVF 0x96,W,BANKED GOTO Q0031F ;========================================================================== Q00315: BTFSS 0x67,6,ACCESS GOTO Q0031B MOVF 0x97,W,BANKED GOTO Q0031F ;========================================================================== Q0031B: BTFSS 0x67,7,ACCESS GOTO Q0032E MOVF 0x9A,W,BANKED ;========================================================================== Q0031F: BTFSS PIR1,TXIF,ACCESS GOTO Q0032E MOVWF TXREG,ACCESS RLNCF 0x67,F,ACCESS BCF 0x67,0,ACCESS MOVF 0x67,F,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q0032E MOVLW 0x01 MOVWF 0x67,ACCESS BCF 0x68,2,ACCESS BSF 0x68,1,ACCESS CLRF 0x6A,ACCESS ;========================================================================== Q0032E: INCF 0x6E,F,ACCESS BTFSS 0x12,7,ACCESS GOTO Q0033A BTFSS 0x1B,5,ACCESS INCF 0x1B,F,ACCESS MOVLW 0x14 SUBWF 0x1B,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q0033A BCF 0x12,7,ACCESS ;========================================================================== Q0033A: INCF 0x9E,F,BANKED MOVLW 0x10 SUBWF 0x9E,W,BANKED BTFSS STATUS,C,ACCESS GOTO Q00397 CLRF 0x9E,BANKED MOVFF 0x00B,0x04C MOVFF 0x00C,0x04D MOVLW 0x01 MOVWF 0x45,ACCESS MOVLW 0xFE MOVWF 0x44,ACCESS MOVLW 0x08 MOVWF 0x4A,ACCESS ;========================================================================== Q0034B: MOVF 0x45,W,ACCESS ANDWF 0x48,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00359 MOVF 0x45,W,ACCESS ANDWF 0x4C,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00362 MOVF 0x45,W,ACCESS IORWF 0x48,F,ACCESS GOTO Q00362 ;========================================================================== Q00359: MOVF 0x45,W,ACCESS ANDWF 0x4C,W,ACCESS BTFSC STATUS,Z,ACCESS GOTO Q00362 MOVF 0x45,W,ACCESS IORWF 0x46,F,ACCESS MOVF 0x44,W,ACCESS ANDWF 0x48,F,ACCESS ;========================================================================== Q00362: MOVF 0x45,W,ACCESS ANDWF 0x49,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00370 MOVF 0x45,W,ACCESS ANDWF 0x4D,W,ACCESS BTFSC STATUS,Z,ACCESS GOTO Q00379 MOVF 0x45,W,ACCESS IORWF 0x49,F,ACCESS GOTO Q00379 ;========================================================================== Q00370: MOVF 0x45,W,ACCESS ANDWF 0x4D,W,ACCESS BTFSS STATUS,Z,ACCESS GOTO Q00379 MOVF 0x45,W,ACCESS IORWF 0x47,F,ACCESS MOVF 0x44,W,ACCESS ANDWF 0x49,F,ACCESS ;========================================================================== Q00379: RLNCF 0x45,F,ACCESS RLNCF 0x44,F,ACCESS BSF 0x44,0,ACCESS DECFSZ 0x4A,F,ACCESS GOTO Q0034B INCF 0x2A,F,ACCESS MOVLW 0x10 SUBWF 0x2A,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q00387 CLRF 0x2A,ACCESS BSF 0x2C,0,ACCESS ;========================================================================== Q00387: INCF 0x1D,F,BANKED MOVLW 0x1F SUBWF 0x1D,W,BANKED BTFSS STATUS,C,ACCESS GOTO Q0038F CLRF 0x1D,BANKED INCF 0x1C,F,BANKED ;========================================================================== Q0038F: INCF 0x90,F,BANKED MOVLW 0x1F SUBWF 0x90,W,BANKED BTFSS STATUS,C,ACCESS GOTO Q00397 CLRF 0x90,BANKED INCF 0x91,F,BANKED ;========================================================================== Q00397: BTFSS PIR2,TMR3IF,ACCESS GOTO Q00424 BSF 0x92,3,BANKED INCF 0x2F,F,ACCESS INCF 0x2D,F,ACCESS INCF 0x4E,F,ACCESS MOVLW 0x03 SUBWF 0x4E,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q003A6 CLRF 0x4E,ACCESS MOVLW 0xFF MOVWF 0x4F,ACCESS ;========================================================================== Q003A6: INCF 0x52,F,ACCESS MOVLW 0x05 SUBWF 0x52,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q003B4 CLRF 0x52,ACCESS INCF 0x24,F,ACCESS INCF 0x25,F,ACCESS INCF 0x26,F,ACCESS INCF 0x80,F,BANKED INCF 0x22,F,ACCESS MOVLW 0xFF MOVWF 0x53,ACCESS ;========================================================================== Q003B4: INCF 0x30,F,ACCESS MOVLW 0x0A SUBWF 0x30,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q00424 CLRF 0x30,ACCESS BSF 0x12,1,ACCESS INCF 0x15,F,ACCESS INCF 0x14,F,ACCESS INCF 0x40,F,ACCESS INCF 0x17,F,ACCESS INCF 0x23,F,ACCESS INCF 0x39,F,ACCESS INCF 0x5A,F,ACCESS INCF 0x6C,F,ACCESS INCF 0x3B,F,ACCESS INCF 0x39,F,ACCESS INCF 0x10,F,ACCESS INCF 0x18,F,ACCESS INCF 0x19,F,ACCESS INCF 0x23,F,ACCESS INCF 0x21,F,ACCESS MOVLW 0x3C SUBWF 0x3B,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q003D2 CLRF 0x3B,ACCESS INCF 0x3C,F,ACCESS ;========================================================================== Q003D2: MOVLW 0x3C SUBWF 0x39,W,ACCESS BTFSS STATUS,C,ACCESS GOTO Q003D9 CLRF 0x39,ACCESS INCF 0x3A,F,ACCESS