
_RTCC_GenerateDigits:

;RTCC.c,7 :: 		void RTCC_GenerateDigits(char value, char *pos) {
;RTCC.c,8 :: 		*pos = (value / 10) + 48;
	MOVLW       10
	MOVWF       R4 
	MOVF        FARG_RTCC_GenerateDigits_value+0, 0 
	MOVWF       R0 
	CALL        _Div_8X8_U+0, 0
	MOVFF       FARG_RTCC_GenerateDigits_pos+0, FSR1
	MOVFF       FARG_RTCC_GenerateDigits_pos+1, FSR1H
	MOVLW       48
	ADDWF       R0, 0 
	MOVWF       POSTINC1+0 
;RTCC.c,9 :: 		pos++;
	INFSNZ      FARG_RTCC_GenerateDigits_pos+0, 1 
	INCF        FARG_RTCC_GenerateDigits_pos+1, 1 
;RTCC.c,10 :: 		*pos = (value % 10) + 48;
	MOVLW       10
	MOVWF       R4 
	MOVF        FARG_RTCC_GenerateDigits_value+0, 0 
	MOVWF       R0 
	CALL        _Div_8X8_U+0, 0
	MOVF        R8, 0 
	MOVWF       R0 
	MOVFF       FARG_RTCC_GenerateDigits_pos+0, FSR1
	MOVFF       FARG_RTCC_GenerateDigits_pos+1, FSR1H
	MOVLW       48
	ADDWF       R0, 0 
	MOVWF       POSTINC1+0 
;RTCC.c,11 :: 		}
L_end_RTCC_GenerateDigits:
	RETURN      0
; end of _RTCC_GenerateDigits

_RTCC_GenerateDateStringYMD:

;RTCC.c,13 :: 		void RTCC_GenerateDateStringYMD(TDateTime *dt, char *rtccstring) {
;RTCC.c,16 :: 		char sep = '-';
	MOVLW       45
	MOVWF       RTCC_GenerateDateStringYMD_sep_L0+0 
;RTCC.c,17 :: 		pos = rtccstring;
	MOVF        FARG_RTCC_GenerateDateStringYMD_rtccstring+0, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+0 
	MOVF        FARG_RTCC_GenerateDateStringYMD_rtccstring+1, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+1 
;RTCC.c,18 :: 		RTCC_GenerateDigits((*dt).Year, pos);
	MOVFF       FARG_RTCC_GenerateDateStringYMD_dt+0, FSR0
	MOVFF       FARG_RTCC_GenerateDateStringYMD_dt+1, FSR0H
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        FARG_RTCC_GenerateDateStringYMD_rtccstring+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        FARG_RTCC_GenerateDateStringYMD_rtccstring+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,19 :: 		pos += 2; *pos = sep; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringYMD_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringYMD_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVF        RTCC_GenerateDateStringYMD_sep_L0+0, 0 
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringYMD_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringYMD_pos_L0+1, 1 
;RTCC.c,20 :: 		RTCC_GenerateDigits((*dt).Month, pos);
	MOVLW       1
	ADDWF       FARG_RTCC_GenerateDateStringYMD_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateDateStringYMD_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateDateStringYMD_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateDateStringYMD_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,21 :: 		pos += 2; *pos = sep; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringYMD_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringYMD_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVF        RTCC_GenerateDateStringYMD_sep_L0+0, 0 
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringYMD_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringYMD_pos_L0+1, 1 
;RTCC.c,22 :: 		RTCC_GenerateDigits((*dt).Day, pos);
	MOVLW       2
	ADDWF       FARG_RTCC_GenerateDateStringYMD_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateDateStringYMD_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateDateStringYMD_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateDateStringYMD_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,23 :: 		pos += 2;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringYMD_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringYMD_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringYMD_pos_L0+1 
;RTCC.c,24 :: 		*pos = 0;
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	CLRF        POSTINC1+0 
;RTCC.c,25 :: 		}
L_end_RTCC_GenerateDateStringYMD:
	RETURN      0
; end of _RTCC_GenerateDateStringYMD

_RTCC_GenerateDateStringDMY:

;RTCC.c,27 :: 		void RTCC_GenerateDateStringDMY(TDateTime *dt, char *rtccstring) {
;RTCC.c,30 :: 		char sep = '/';
	MOVLW       47
	MOVWF       RTCC_GenerateDateStringDMY_sep_L0+0 
;RTCC.c,31 :: 		pos = rtccstring;
	MOVF        FARG_RTCC_GenerateDateStringDMY_rtccstring+0, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+0 
	MOVF        FARG_RTCC_GenerateDateStringDMY_rtccstring+1, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+1 
;RTCC.c,32 :: 		RTCC_GenerateDigits((*dt).Day, pos);
	MOVLW       2
	ADDWF       FARG_RTCC_GenerateDateStringDMY_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateDateStringDMY_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        FARG_RTCC_GenerateDateStringDMY_rtccstring+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        FARG_RTCC_GenerateDateStringDMY_rtccstring+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,33 :: 		pos += 2; *pos = sep; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringDMY_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringDMY_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVF        RTCC_GenerateDateStringDMY_sep_L0+0, 0 
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringDMY_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringDMY_pos_L0+1, 1 
;RTCC.c,34 :: 		RTCC_GenerateDigits((*dt).Month, pos);
	MOVLW       1
	ADDWF       FARG_RTCC_GenerateDateStringDMY_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateDateStringDMY_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateDateStringDMY_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateDateStringDMY_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,35 :: 		pos += 2; *pos = sep; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringDMY_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringDMY_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVF        RTCC_GenerateDateStringDMY_sep_L0+0, 0 
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringDMY_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringDMY_pos_L0+1, 1 
;RTCC.c,36 :: 		*pos = '2'; pos++;
	MOVFF       RTCC_GenerateDateStringDMY_pos_L0+0, FSR1
	MOVFF       RTCC_GenerateDateStringDMY_pos_L0+1, FSR1H
	MOVLW       50
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringDMY_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringDMY_pos_L0+1, 1 
;RTCC.c,37 :: 		*pos = '0'; pos++;
	MOVFF       RTCC_GenerateDateStringDMY_pos_L0+0, FSR1
	MOVFF       RTCC_GenerateDateStringDMY_pos_L0+1, FSR1H
	MOVLW       48
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateDateStringDMY_pos_L0+0, 1 
	INCF        RTCC_GenerateDateStringDMY_pos_L0+1, 1 
;RTCC.c,38 :: 		RTCC_GenerateDigits((*dt).Year, pos);
	MOVFF       FARG_RTCC_GenerateDateStringDMY_dt+0, FSR0
	MOVFF       FARG_RTCC_GenerateDateStringDMY_dt+1, FSR0H
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateDateStringDMY_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateDateStringDMY_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,39 :: 		pos += 2;
	MOVLW       2
	ADDWF       RTCC_GenerateDateStringDMY_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateDateStringDMY_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateDateStringDMY_pos_L0+1 
;RTCC.c,40 :: 		*pos = 0;
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	CLRF        POSTINC1+0 
;RTCC.c,41 :: 		}
L_end_RTCC_GenerateDateStringDMY:
	RETURN      0
; end of _RTCC_GenerateDateStringDMY

_RTCC_GenerateTimeString:

;RTCC.c,43 :: 		void RTCC_GenerateTimeString(TDateTime *dt, char *rtccstring, char incl_sec) {
;RTCC.c,46 :: 		pos = rtccstring;
	MOVF        FARG_RTCC_GenerateTimeString_rtccstring+0, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+0 
	MOVF        FARG_RTCC_GenerateTimeString_rtccstring+1, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+1 
;RTCC.c,47 :: 		RTCC_GenerateDigits((*dt).Hour, pos);
	MOVLW       3
	ADDWF       FARG_RTCC_GenerateTimeString_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateTimeString_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        FARG_RTCC_GenerateTimeString_rtccstring+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        FARG_RTCC_GenerateTimeString_rtccstring+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,48 :: 		pos += 2; *pos = ':'; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateTimeString_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateTimeString_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       58
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateTimeString_pos_L0+0, 1 
	INCF        RTCC_GenerateTimeString_pos_L0+1, 1 
;RTCC.c,49 :: 		RTCC_GenerateDigits((*dt).Minute, pos);
	MOVLW       4
	ADDWF       FARG_RTCC_GenerateTimeString_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateTimeString_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateTimeString_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateTimeString_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,50 :: 		if (incl_sec) {
	MOVF        FARG_RTCC_GenerateTimeString_incl_sec+0, 1 
	BTFSC       STATUS+0, 2 
	GOTO        L_RTCC_GenerateTimeString0
;RTCC.c,51 :: 		pos += 2; *pos = ':'; pos++;
	MOVLW       2
	ADDWF       RTCC_GenerateTimeString_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateTimeString_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+1 
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	MOVLW       58
	MOVWF       POSTINC1+0 
	INFSNZ      RTCC_GenerateTimeString_pos_L0+0, 1 
	INCF        RTCC_GenerateTimeString_pos_L0+1, 1 
;RTCC.c,52 :: 		RTCC_GenerateDigits((*dt).Second, pos);
	MOVLW       5
	ADDWF       FARG_RTCC_GenerateTimeString_dt+0, 0 
	MOVWF       FSR0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateTimeString_dt+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_value+0 
	MOVF        RTCC_GenerateTimeString_pos_L0+0, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+0 
	MOVF        RTCC_GenerateTimeString_pos_L0+1, 0 
	MOVWF       FARG_RTCC_GenerateDigits_pos+1 
	CALL        _RTCC_GenerateDigits+0, 0
;RTCC.c,53 :: 		}
L_RTCC_GenerateTimeString0:
;RTCC.c,54 :: 		pos += 2;
	MOVLW       2
	ADDWF       RTCC_GenerateTimeString_pos_L0+0, 0 
	MOVWF       R0 
	MOVLW       0
	ADDWFC      RTCC_GenerateTimeString_pos_L0+1, 0 
	MOVWF       R1 
	MOVF        R0, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+0 
	MOVF        R1, 0 
	MOVWF       RTCC_GenerateTimeString_pos_L0+1 
;RTCC.c,55 :: 		*pos = 0;
	MOVFF       R0, FSR1
	MOVFF       R1, FSR1H
	CLRF        POSTINC1+0 
;RTCC.c,56 :: 		}
L_end_RTCC_GenerateTimeString:
	RETURN      0
; end of _RTCC_GenerateTimeString

_RTCC_GenerateString:

;RTCC.c,58 :: 		void RTCC_GenerateString(TDateTime *dt, char *rtccstring) {
;RTCC.c,59 :: 		RTCC_GenerateDateStringDMY(dt, rtccstring);
	MOVF        FARG_RTCC_GenerateString_dt+0, 0 
	MOVWF       FARG_RTCC_GenerateDateStringDMY_dt+0 
	MOVF        FARG_RTCC_GenerateString_dt+1, 0 
	MOVWF       FARG_RTCC_GenerateDateStringDMY_dt+1 
	MOVF        FARG_RTCC_GenerateString_rtccstring+0, 0 
	MOVWF       FARG_RTCC_GenerateDateStringDMY_rtccstring+0 
	MOVF        FARG_RTCC_GenerateString_rtccstring+1, 0 
	MOVWF       FARG_RTCC_GenerateDateStringDMY_rtccstring+1 
	CALL        _RTCC_GenerateDateStringDMY+0, 0
;RTCC.c,60 :: 		rtccstring[10] = ' ';
	MOVLW       10
	ADDWF       FARG_RTCC_GenerateString_rtccstring+0, 0 
	MOVWF       FSR1 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateString_rtccstring+1, 0 
	MOVWF       FSR1H 
	MOVLW       32
	MOVWF       POSTINC1+0 
;RTCC.c,61 :: 		RTCC_GenerateTimeString(dt, rtccstring + 11, 0);
	MOVF        FARG_RTCC_GenerateString_dt+0, 0 
	MOVWF       FARG_RTCC_GenerateTimeString_dt+0 
	MOVF        FARG_RTCC_GenerateString_dt+1, 0 
	MOVWF       FARG_RTCC_GenerateTimeString_dt+1 
	MOVLW       11
	ADDWF       FARG_RTCC_GenerateString_rtccstring+0, 0 
	MOVWF       FARG_RTCC_GenerateTimeString_rtccstring+0 
	MOVLW       0
	ADDWFC      FARG_RTCC_GenerateString_rtccstring+1, 0 
	MOVWF       FARG_RTCC_GenerateTimeString_rtccstring+1 
	CLRF        FARG_RTCC_GenerateTimeString_incl_sec+0 
	CALL        _RTCC_GenerateTimeString+0, 0
;RTCC.c,62 :: 		}
L_end_RTCC_GenerateString:
	RETURN      0
; end of _RTCC_GenerateString
