opt subtitle "HI-TECH Software Omniscient Code Generator (Lite mode) build 10920"

opt pagewidth 120

	opt lm

	processor	16F877A
clrc	macro
	bcf	3,0
	endm
clrz	macro
	bcf	3,2
	endm
setc	macro
	bsf	3,0
	endm
setz	macro
	bsf	3,2
	endm
skipc	macro
	btfss	3,0
	endm
skipz	macro
	btfss	3,2
	endm
skipnc	macro
	btfsc	3,0
	endm
skipnz	macro
	btfsc	3,2
	endm
indf	equ	0
indf0	equ	0
pc	equ	2
pcl	equ	2
status	equ	3
fsr	equ	4
fsr0	equ	4
c	equ	1
z	equ	0
pclath	equ	10
	FNCALL	_main,_SysInit
	FNCALL	_main,_DeviceInit
	FNCALL	_main,_IN1307_EEPROM_Test
	FNCALL	_IN1307_EEPROM_Test,_Read_I2C
	FNCALL	_IN1307_EEPROM_Test,___bmul
	FNCALL	_IN1307_EEPROM_Test,_printf
	FNCALL	_DeviceInit,_flilflop_Enable
	FNCALL	_SysInit,_Write_I2C
	FNCALL	_printf,_putch
	FNCALL	_printf,___lwdiv
	FNCALL	_printf,___lwmod
	FNROOT	_main
	global	_dpowers
psect	strings,class=STRING,delta=2
global __pstrings
__pstrings:
;	global	stringdir,stringtab,__stringbase
stringtab:
;	String table - string pointers are 1 byte each
stringcode:stringdir:
movlw high(stringdir)
movwf pclath
movf fsr,w
incf fsr
	addwf pc
__stringbase:
	retlw	0
psect	strings
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\lib\doprnt.c"
	line	350
_dpowers:
	retlw	01h
	retlw	0

	retlw	0Ah
	retlw	0

	retlw	064h
	retlw	0

	retlw	0E8h
	retlw	03h

	retlw	010h
	retlw	027h

	global	_dpowers
	global	IN1307_EEPROM_Test@eeprom_data
	global	IN1307_EEPROM_Test@data
	global	IN1307_EEPROM_Test@data1
	global	IN1307_EEPROM_Test@h
	global	IN1307_EEPROM_Test@m
	global	IN1307_EEPROM_Test@s
	global	IN1307_EEPROM_Test@data2
	global	_ADCON0
_ADCON0	set	31
	global	_PORTB
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_PORTD
_PORTD	set	8
	global	_PORTE
_PORTE	set	9
	global	_RCSTA
_RCSTA	set	24
	global	_SSPBUF
_SSPBUF	set	19
	global	_SSPCON
_SSPCON	set	20
	global	_TXREG
_TXREG	set	25
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_ADCON1
_ADCON1	set	159
	global	_SPBRG
_SPBRG	set	153
	global	_SSPADD
_SSPADD	set	147
	global	_SSPCON2
_SSPCON2	set	145
	global	_SSPSTAT
_SSPSTAT	set	148
	global	_TRISA
_TRISA	set	133
	global	_TRISB
_TRISB	set	134
	global	_TRISC
_TRISC	set	135
	global	_TRISD
_TRISD	set	136
	global	_TRISE
_TRISE	set	137
	global	_TXSTA
_TXSTA	set	152
	global	_ACKSTAT
_ACKSTAT	set	1166
	global	_PEN
_PEN	set	1162
	global	_RCEN
_RCEN	set	1163
	global	_RSEN
_RSEN	set	1161
	global	_SEN
_SEN	set	1160
	global	_TRISC3
_TRISC3	set	1083
	global	_TRISC4
_TRISC4	set	1084
	global	_TRMT
_TRMT	set	1217
	global	_EEADR
_EEADR	set	269
	global	_EEDATA
_EEDATA	set	268
	global	_EECON1
_EECON1	set	396
	global	_EECON2
_EECON2	set	397
	global	_RD
_RD	set	3168
	global	_WR
_WR	set	3169
	global	_WREN
_WREN	set	3170
	
STR_1:	
	retlw	82	;'R'
	retlw	84	;'T'
	retlw	67	;'C'
	retlw	40	;'('
	retlw	104	;'h'
	retlw	111	;'o'
	retlw	117	;'u'
	retlw	114	;'r'
	retlw	58	;':'
	retlw	37	;'%'
	retlw	100	;'d'
	retlw	32	;' '
	retlw	109	;'m'
	retlw	105	;'i'
	retlw	110	;'n'
	retlw	117	;'u'
	retlw	116	;'t'
	retlw	101	;'e'
	retlw	58	;':'
	retlw	37	;'%'
	retlw	100	;'d'
	retlw	32	;' '
	retlw	115	;'s'
	retlw	101	;'e'
	retlw	99	;'c'
	retlw	111	;'o'
	retlw	110	;'n'
	retlw	100	;'d'
	retlw	58	;':'
	retlw	37	;'%'
	retlw	100	;'d'
	retlw	41	;')'
	retlw	32	;' '
	retlw	13
	retlw	10
	retlw	0
psect	strings
	file	"Test.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bssBANK0,class=BANK0,space=1
global __pbssBANK0
__pbssBANK0:
IN1307_EEPROM_Test@eeprom_data:
       ds      2

IN1307_EEPROM_Test@data:
       ds      1

IN1307_EEPROM_Test@data1:
       ds      1

IN1307_EEPROM_Test@h:
       ds      1

IN1307_EEPROM_Test@m:
       ds      1

IN1307_EEPROM_Test@s:
       ds      1

IN1307_EEPROM_Test@data2:
       ds      1

; Clear objects allocated to BANK0
psect cinit,class=CODE,delta=2
	clrf	((__pbssBANK0)+0)&07Fh
	clrf	((__pbssBANK0)+1)&07Fh
	clrf	((__pbssBANK0)+2)&07Fh
	clrf	((__pbssBANK0)+3)&07Fh
	clrf	((__pbssBANK0)+4)&07Fh
	clrf	((__pbssBANK0)+5)&07Fh
	clrf	((__pbssBANK0)+6)&07Fh
	clrf	((__pbssBANK0)+7)&07Fh
psect cinit,class=CODE,delta=2
global end_of_initialization

;End of C runtime variable initialization code

end_of_initialization:
clrf status
ljmp _main	;jump to C main() function
psect	cstackCOMMON,class=COMMON,space=1
global __pcstackCOMMON
__pcstackCOMMON:
	global	?_flilflop_Enable
?_flilflop_Enable:	; 0 bytes @ 0x0
	global	?_Write_I2C
?_Write_I2C:	; 0 bytes @ 0x0
	global	?_putch
?_putch:	; 0 bytes @ 0x0
	global	??_putch
??_putch:	; 0 bytes @ 0x0
	global	?_IN1307_EEPROM_Test
?_IN1307_EEPROM_Test:	; 0 bytes @ 0x0
	global	?_SysInit
?_SysInit:	; 0 bytes @ 0x0
	global	?_DeviceInit
?_DeviceInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?_Read_I2C
?_Read_I2C:	; 1 bytes @ 0x0
	global	?___bmul
?___bmul:	; 1 bytes @ 0x0
	global	?___lwdiv
?___lwdiv:	; 2 bytes @ 0x0
	global	flilflop_Enable@OuputData
flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	global	Read_I2C@addr
Read_I2C@addr:	; 1 bytes @ 0x0
	global	Write_I2C@addr
Write_I2C@addr:	; 1 bytes @ 0x0
	global	putch@byte
putch@byte:	; 1 bytes @ 0x0
	global	___bmul@multiplicand
___bmul@multiplicand:	; 1 bytes @ 0x0
	global	___lwdiv@divisor
___lwdiv@divisor:	; 2 bytes @ 0x0
	ds	1
	global	??_flilflop_Enable
??_flilflop_Enable:	; 0 bytes @ 0x1
	global	??_Read_I2C
??_Read_I2C:	; 0 bytes @ 0x1
	global	??___bmul
??___bmul:	; 0 bytes @ 0x1
	global	Write_I2C@data
Write_I2C@data:	; 1 bytes @ 0x1
	ds	1
	global	??_Write_I2C
??_Write_I2C:	; 0 bytes @ 0x2
	global	flilflop_Enable@Add
flilflop_Enable@Add:	; 1 bytes @ 0x2
	global	Read_I2C@Read_Data
Read_I2C@Read_Data:	; 1 bytes @ 0x2
	global	Write_I2C@ID
Write_I2C@ID:	; 1 bytes @ 0x2
	global	___bmul@product
___bmul@product:	; 1 bytes @ 0x2
	global	___lwdiv@dividend
___lwdiv@dividend:	; 2 bytes @ 0x2
	ds	1
	global	??_SysInit
??_SysInit:	; 0 bytes @ 0x3
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	global	Read_I2C@ID
Read_I2C@ID:	; 1 bytes @ 0x3
	global	___bmul@multiplier
___bmul@multiplier:	; 1 bytes @ 0x3
	ds	1
	global	??___lwdiv
??___lwdiv:	; 0 bytes @ 0x4
	ds	1
	global	___lwdiv@quotient
___lwdiv@quotient:	; 2 bytes @ 0x5
	ds	2
	global	___lwdiv@counter
___lwdiv@counter:	; 1 bytes @ 0x7
	ds	1
	global	?___lwmod
?___lwmod:	; 2 bytes @ 0x8
	global	___lwmod@divisor
___lwmod@divisor:	; 2 bytes @ 0x8
	ds	2
	global	___lwmod@dividend
___lwmod@dividend:	; 2 bytes @ 0xA
	ds	2
	global	??___lwmod
??___lwmod:	; 0 bytes @ 0xC
	ds	1
	global	___lwmod@counter
___lwmod@counter:	; 1 bytes @ 0xD
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0xE
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	?_printf
?_printf:	; 2 bytes @ 0x0
	ds	6
	global	??_printf
??_printf:	; 0 bytes @ 0x6
	ds	3
	global	printf@ap
printf@ap:	; 1 bytes @ 0x9
	ds	1
	global	printf@flag
printf@flag:	; 1 bytes @ 0xA
	ds	1
	global	printf@f
printf@f:	; 1 bytes @ 0xB
	ds	1
	global	printf@prec
printf@prec:	; 1 bytes @ 0xC
	ds	1
	global	printf@_val
printf@_val:	; 4 bytes @ 0xD
	ds	4
	global	printf@c
printf@c:	; 1 bytes @ 0x11
	ds	1
	global	??_IN1307_EEPROM_Test
??_IN1307_EEPROM_Test:	; 0 bytes @ 0x12
	ds	6
;;Data sizes: Strings 36, constant 10, data 0, bss 8, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14     14      14
;; BANK0           80     24      32
;; BANK1           80      0       0
;; BANK3           96      0       0
;; BANK2           96      0       0

;;
;; Pointer list with targets:

;; ?___lwdiv	unsigned int  size(1) Largest target is 0
;;
;; ?___lwmod	unsigned int  size(1) Largest target is 0
;;
;; printf@f	PTR const unsigned char  size(1) Largest target is 36
;;		 -> STR_1(CODE[36]), 
;;
;; ?_printf	int  size(1) Largest target is 0
;;
;; printf@ap	PTR void [1] size(1) Largest target is 2
;;		 -> ?_printf(BANK0[2]), 
;;
;; S1275$_cp	PTR const unsigned char  size(1) Largest target is 0
;;
;; _val._str._cp	PTR const unsigned char  size(1) Largest target is 0
;;


;;
;; Critical Paths under _main in COMMON
;;
;;   _DeviceInit->_flilflop_Enable
;;   _SysInit->_Write_I2C
;;   _printf->___lwmod
;;   ___lwmod->___lwdiv
;;
;; Critical Paths under _main in BANK0
;;
;;   _main->_IN1307_EEPROM_Test
;;   _IN1307_EEPROM_Test->_printf
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _main in BANK3
;;
;;   None.
;;
;; Critical Paths under _main in BANK2
;;
;;   None.

;;
;;Main: autosize = 0, tempsize = 0, incstack = 0, save=0
;;

;;
;;Call Graph Tables:
;;
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (0) _main                                                 0     0      0     986
;;                            _SysInit
;;                         _DeviceInit
;;                 _IN1307_EEPROM_Test
;; ---------------------------------------------------------------------------------
;; (1) _IN1307_EEPROM_Test                                   6     6      0     911
;;                                             18 BANK0      6     6      0
;;                           _Read_I2C
;;                             ___bmul
;;                             _printf
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      30
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              2     2      0      45
;;                                              3 COMMON     2     2      0
;;                          _Write_I2C
;; ---------------------------------------------------------------------------------
;; (2) _printf                                              18    12      6     729
;;                                              0 BANK0     18    12      6
;;                              _putch
;;                            ___lwdiv
;;                            ___lwmod
;; ---------------------------------------------------------------------------------
;; (3) ___lwmod                                              6     2      4     159
;;                                              8 COMMON     6     2      4
;;                            ___lwdiv (ARG)
;; ---------------------------------------------------------------------------------
;; (3) ___lwdiv                                              8     4      4     162
;;                                              0 COMMON     8     4      4
;; ---------------------------------------------------------------------------------
;; (2) ___bmul                                               4     3      1      92
;;                                              0 COMMON     4     3      1
;; ---------------------------------------------------------------------------------
;; (3) _putch                                                1     1      0      22
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (2) _Write_I2C                                            3     1      2      45
;;                                              0 COMMON     3     1      2
;; ---------------------------------------------------------------------------------
;; (2) _Read_I2C                                             4     3      1      90
;;                                              0 COMMON     4     3      1
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      30
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 3
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;     _Write_I2C
;;   _DeviceInit
;;     _flilflop_Enable
;;   _IN1307_EEPROM_Test
;;     _Read_I2C
;;     ___bmul
;;     _printf
;;       _putch
;;       ___lwdiv
;;       ___lwmod
;;         ___lwdiv (ARG)
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BITCOMMON            E      0       0       0        0.0%
;;EEDATA             100      0       0       0        0.0%
;;NULL                 0      0       0       0        0.0%
;;CODE                 0      0       0       0        0.0%
;;COMMON               E      E       E       1      100.0%
;;BITSFR0              0      0       0       1        0.0%
;;SFR0                 0      0       0       1        0.0%
;;BITSFR1              0      0       0       2        0.0%
;;SFR1                 0      0       0       2        0.0%
;;STACK                0      0       3       2        0.0%
;;ABS                  0      0      2E       3        0.0%
;;BITBANK0            50      0       0       4        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;SFR3                 0      0       0       4        0.0%
;;BANK0               50     18      20       5       40.0%
;;BITSFR2              0      0       0       5        0.0%
;;SFR2                 0      0       0       5        0.0%
;;BITBANK1            50      0       0       6        0.0%
;;BANK1               50      0       0       7        0.0%
;;BITBANK3            60      0       0       8        0.0%
;;BANK3               60      0       0       9        0.0%
;;BITBANK2            60      0       0      10        0.0%
;;BANK2               60      0       0      11        0.0%
;;DATA                 0      0      31      12        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 208 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 17F/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels required when called:    3
;; This function calls:
;;		_SysInit
;;		_DeviceInit
;;		_IN1307_EEPROM_Test
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	208
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 5
; Regs used in _main: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	209
	
l3133:	
;test_all_code.c: 209: SysInit();
	fcall	_SysInit
	line	210
;test_all_code.c: 210: DeviceInit();
	fcall	_DeviceInit
	goto	l3135
	line	211
;test_all_code.c: 211: while (1)
	
l785:	
	line	213
	
l3135:	
;test_all_code.c: 212: {
;test_all_code.c: 213: IN1307_EEPROM_Test();
	fcall	_IN1307_EEPROM_Test
	goto	l3135
	line	214
	
l786:	
	line	211
	goto	l3135
	
l787:	
	line	215
	
l788:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_IN1307_EEPROM_Test
psect	text267,local,class=CODE,delta=2
global __ptext267
__ptext267:

;; *************** function _IN1307_EEPROM_Test *****************
;; Defined at:
;;		line 139 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       6       0       0       0
;;      Totals:         0       6       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_Read_I2C
;;		___bmul
;;		_printf
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text267
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	139
	global	__size_of_IN1307_EEPROM_Test
	__size_of_IN1307_EEPROM_Test	equ	__end_of_IN1307_EEPROM_Test-_IN1307_EEPROM_Test
	
_IN1307_EEPROM_Test:	
	opt	stack 5
; Regs used in _IN1307_EEPROM_Test: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	143
	
l3103:	
;test_all_code.c: 140: static unsigned char data, data1, data2 = 0;
;test_all_code.c: 141: static unsigned char h, m, s = 0;
;test_all_code.c: 142: static unsigned eeprom_data = 0;
;test_all_code.c: 143: data = Read_I2C(0Xd0, 0);
	clrf	(?_Read_I2C)
	movlw	(0D0h)
	fcall	_Read_I2C
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data)
	line	144
	
l3105:	
;test_all_code.c: 144: data1 = (data & 0x0f);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	0Fh
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data1)
	line	145
	
l3107:	
;test_all_code.c: 145: data2 = (data & 0x70);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	070h
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	146
	
l3109:	
;test_all_code.c: 146: data2 = (data2 >> 4) * 10;
	movlw	(0Ah)
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?___bmul)
	movf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+1)+0
	movlw	04h
u2865:
	clrc
	rrf	(??_IN1307_EEPROM_Test+1)+0,f
	addlw	-1
	skipz
	goto	u2865
	movf	0+(??_IN1307_EEPROM_Test+1)+0,w
	fcall	___bmul
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+2)+0
	movf	(??_IN1307_EEPROM_Test+2)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	147
	
l3111:	
;test_all_code.c: 147: s = (data2 + data1);
	movf	(IN1307_EEPROM_Test@data1),w
	addwf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@s)
	line	149
	
l3113:	
;test_all_code.c: 149: data = Read_I2C(0Xd0, 1);
	clrf	(?_Read_I2C)
	bsf	status,0
	rlf	(?_Read_I2C),f
	movlw	(0D0h)
	fcall	_Read_I2C
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data)
	line	150
	
l3115:	
;test_all_code.c: 150: data1 = (data & 0x0f);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	0Fh
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data1)
	line	151
	
l3117:	
;test_all_code.c: 151: data2 = (data & 0x70);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	070h
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	152
	
l3119:	
;test_all_code.c: 152: data2 = (data2 >> 4) * 10;
	movlw	(0Ah)
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?___bmul)
	movf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+1)+0
	movlw	04h
u2875:
	clrc
	rrf	(??_IN1307_EEPROM_Test+1)+0,f
	addlw	-1
	skipz
	goto	u2875
	movf	0+(??_IN1307_EEPROM_Test+1)+0,w
	fcall	___bmul
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+2)+0
	movf	(??_IN1307_EEPROM_Test+2)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	153
	
l3121:	
;test_all_code.c: 153: m = (data2 + data1);
	movf	(IN1307_EEPROM_Test@data1),w
	addwf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@m)
	line	155
	
l3123:	
;test_all_code.c: 155: data = Read_I2C(0Xd0, 2);
	movlw	(02h)
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?_Read_I2C)
	movlw	(0D0h)
	fcall	_Read_I2C
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+1)+0
	movf	(??_IN1307_EEPROM_Test+1)+0,w
	movwf	(IN1307_EEPROM_Test@data)
	line	156
	
l3125:	
;test_all_code.c: 156: data1 = (data & 0x0f);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	0Fh
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data1)
	line	157
	
l3127:	
;test_all_code.c: 157: data2 = (data & 0x30);
	movf	(IN1307_EEPROM_Test@data),w
	andlw	030h
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	158
;test_all_code.c: 158: data2 = (data2 >> 4) * 10;
	movlw	(0Ah)
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?___bmul)
	movf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+1)+0
	movlw	04h
u2885:
	clrc
	rrf	(??_IN1307_EEPROM_Test+1)+0,f
	addlw	-1
	skipz
	goto	u2885
	movf	0+(??_IN1307_EEPROM_Test+1)+0,w
	fcall	___bmul
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_IN1307_EEPROM_Test+2)+0
	movf	(??_IN1307_EEPROM_Test+2)+0,w
	movwf	(IN1307_EEPROM_Test@data2)
	line	159
	
l3129:	
;test_all_code.c: 159: h = (data2 + data1);
	movf	(IN1307_EEPROM_Test@data1),w
	addwf	(IN1307_EEPROM_Test@data2),w
	movwf	(??_IN1307_EEPROM_Test+0)+0
	movf	(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(IN1307_EEPROM_Test@h)
	line	160
	
l3131:	
;test_all_code.c: 160: printf("RTC(hour:%d minute:%d second:%d) \r\n", h, m, s);
	movf	(IN1307_EEPROM_Test@h),w
	movwf	(??_IN1307_EEPROM_Test+0)+0
	clrf	(??_IN1307_EEPROM_Test+0)+0+1
	movf	0+(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?_printf)
	movf	1+(??_IN1307_EEPROM_Test+0)+0,w
	movwf	(?_printf+1)
	movf	(IN1307_EEPROM_Test@m),w
	movwf	(??_IN1307_EEPROM_Test+2)+0
	clrf	(??_IN1307_EEPROM_Test+2)+0+1
	movf	0+(??_IN1307_EEPROM_Test+2)+0,w
	movwf	0+(?_printf)+02h
	movf	1+(??_IN1307_EEPROM_Test+2)+0,w
	movwf	1+(?_printf)+02h
	movf	(IN1307_EEPROM_Test@s),w
	movwf	(??_IN1307_EEPROM_Test+4)+0
	clrf	(??_IN1307_EEPROM_Test+4)+0+1
	movf	0+(??_IN1307_EEPROM_Test+4)+0,w
	movwf	0+(?_printf)+04h
	movf	1+(??_IN1307_EEPROM_Test+4)+0,w
	movwf	1+(?_printf)+04h
	movlw	((STR_1-__stringbase))&0ffh
	fcall	_printf
	line	162
	
l776:	
	return
	opt stack 0
GLOBAL	__end_of_IN1307_EEPROM_Test
	__end_of_IN1307_EEPROM_Test:
;; =============== function _IN1307_EEPROM_Test ends ============

	signat	_IN1307_EEPROM_Test,88
	global	_DeviceInit
psect	text268,local,class=CODE,delta=2
global __ptext268
__ptext268:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 196 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_flilflop_Enable
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text268
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	196
	global	__size_of_DeviceInit
	__size_of_DeviceInit	equ	__end_of_DeviceInit-_DeviceInit
	
_DeviceInit:	
	opt	stack 6
; Regs used in _DeviceInit: [wreg+status,2+status,0+pclath+cstack]
	line	198
	
l2927:	
;test_all_code.c: 198: flilflop_Enable(0X00,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	199
;test_all_code.c: 199: flilflop_Enable(0X01,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	200
;test_all_code.c: 200: flilflop_Enable(0X02,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	201
;test_all_code.c: 201: flilflop_Enable(0X03,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	202
;test_all_code.c: 202: flilflop_Enable(0X04,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	203
;test_all_code.c: 203: flilflop_Enable(0X05,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	204
;test_all_code.c: 204: flilflop_Enable(0X06,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	205
;test_all_code.c: 205: flilflop_Enable(0X07,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	206
	
l782:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_SysInit
psect	text269,local,class=CODE,delta=2
global __ptext269
__ptext269:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 164 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          2       0       0       0       0
;;      Totals:         2       0       0       0       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_Write_I2C
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text269
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	164
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 6
; Regs used in _SysInit: [wreg+status,2+status,0+pclath+cstack]
	line	166
	
l2893:	
;test_all_code.c: 166: TRISA = 0X0f;
	movlw	(0Fh)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(133)^080h	;volatile
	line	167
;test_all_code.c: 167: TRISB = 0X01;
	movlw	(01h)
	movwf	(134)^080h	;volatile
	line	168
	
l2895:	
;test_all_code.c: 168: PORTB = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	169
	
l2897:	
;test_all_code.c: 169: TRISC = 0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	170
;test_all_code.c: 170: PORTC = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	171
;test_all_code.c: 171: TRISD = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(136)^080h	;volatile
	line	172
;test_all_code.c: 172: PORTD = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(8)	;volatile
	line	173
;test_all_code.c: 173: TRISE = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(137)^080h	;volatile
	line	174
;test_all_code.c: 174: PORTE = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(9)	;volatile
	line	176
	
l2899:	
;test_all_code.c: 176: TXSTA = 0B00100000;
	movlw	(020h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(152)^080h	;volatile
	line	177
	
l2901:	
;test_all_code.c: 177: RCSTA = 0B10010000;
	movlw	(090h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(24)	;volatile
	line	178
	
l2903:	
;test_all_code.c: 178: SPBRG = 25;
	movlw	(019h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(153)^080h	;volatile
	line	180
	
l2905:	
;test_all_code.c: 180: TRISC3 = 1;
	bsf	(1083/8)^080h,(1083)&7
	line	181
	
l2907:	
;test_all_code.c: 181: TRISC4 = 1;
	bsf	(1084/8)^080h,(1084)&7
	line	182
	
l2909:	
;test_all_code.c: 182: SSPSTAT = 0B00000000;
	clrf	(148)^080h	;volatile
	line	183
;test_all_code.c: 183: SSPCON = 0B00101000;
	movlw	(028h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(20)	;volatile
	line	184
	
l2911:	
;test_all_code.c: 184: SSPCON2 = 0B00000000;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(145)^080h	;volatile
	line	185
	
l2913:	
;test_all_code.c: 185: SSPADD = 9;
	movlw	(09h)
	movwf	(147)^080h	;volatile
	line	187
	
l2915:	
;test_all_code.c: 187: ADCON0 = 0B00000101;
	movlw	(05h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(31)	;volatile
	line	188
	
l2917:	
;test_all_code.c: 188: ADCON1 = 0B10000000;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(159)^080h	;volatile
	line	189
	
l2919:	
;test_all_code.c: 189: Write_I2C(0Xd0, 0x00, 0x00);
	clrf	(?_Write_I2C)
	clrf	0+(?_Write_I2C)+01h
	movlw	(0D0h)
	fcall	_Write_I2C
	line	190
	
l2921:	
;test_all_code.c: 190: Write_I2C(0Xd0, 0x01, 0x03);
	clrf	(?_Write_I2C)
	bsf	status,0
	rlf	(?_Write_I2C),f
	movlw	(03h)
	movwf	(??_SysInit+0)+0
	movf	(??_SysInit+0)+0,w
	movwf	0+(?_Write_I2C)+01h
	movlw	(0D0h)
	fcall	_Write_I2C
	line	191
	
l2923:	
;test_all_code.c: 191: Write_I2C(0Xd0, 0x02, 0x06);
	movlw	(02h)
	movwf	(??_SysInit+0)+0
	movf	(??_SysInit+0)+0,w
	movwf	(?_Write_I2C)
	movlw	(06h)
	movwf	(??_SysInit+1)+0
	movf	(??_SysInit+1)+0,w
	movwf	0+(?_Write_I2C)+01h
	movlw	(0D0h)
	fcall	_Write_I2C
	line	192
	
l2925:	
;test_all_code.c: 192: Write_I2C(0Xd0, 0x07, 0x13);
	movlw	(07h)
	movwf	(??_SysInit+0)+0
	movf	(??_SysInit+0)+0,w
	movwf	(?_Write_I2C)
	movlw	(013h)
	movwf	(??_SysInit+1)+0
	movf	(??_SysInit+1)+0,w
	movwf	0+(?_Write_I2C)+01h
	movlw	(0D0h)
	fcall	_Write_I2C
	line	194
	
l779:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_printf
psect	text270,local,class=CODE,delta=2
global __ptext270
__ptext270:

;; *************** function _printf *****************
;; Defined at:
;;		line 461 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\lib\doprnt.c"
;; Parameters:    Size  Location     Type
;;  f               1    wreg     PTR const unsigned char 
;;		 -> STR_1(36), 
;; Auto vars:     Size  Location     Type
;;  f               1   11[BANK0 ] PTR const unsigned char 
;;		 -> STR_1(36), 
;;  _val            4   13[BANK0 ] struct .
;;  c               1   17[BANK0 ] char 
;;  prec            1   12[BANK0 ] char 
;;  flag            1   10[BANK0 ] unsigned char 
;;  ap              1    9[BANK0 ] PTR void [1]
;;		 -> ?_printf(2), 
;; Return value:  Size  Location     Type
;;                  2    0[BANK0 ] int 
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, btemp+1, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       6       0       0       0
;;      Locals:         0       9       0       0       0
;;      Temps:          0       3       0       0       0
;;      Totals:         0      18       0       0       0
;;Total ram usage:       18 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_putch
;;		___lwdiv
;;		___lwmod
;; This function is called by:
;;		_IN1307_EEPROM_Test
;; This function uses a non-reentrant model
;;
psect	text270
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\doprnt.c"
	line	461
	global	__size_of_printf
	__size_of_printf	equ	__end_of_printf-_printf
	
_printf:	
	opt	stack 5
; Regs used in _printf: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
;printf@f stored from wreg
	line	537
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(printf@f)
	
l3055:	
	movlw	(?_printf)&0ffh
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	movwf	(printf@ap)
	line	540
	goto	l3101
	
l800:	
	line	542
	
l3057:	
	movf	(printf@c),w
	xorlw	025h
	skipnz
	goto	u2781
	goto	u2780
u2781:
	goto	l801
u2780:
	line	545
	
l3059:	
	movf	(printf@c),w
	fcall	_putch
	line	546
	goto	l3101
	line	547
	
l801:	
	line	552
	clrf	(printf@flag)
	line	638
	goto	l3063
	line	640
	
l803:	
	line	641
	goto	l818
	line	700
	
l805:	
	goto	l3065
	line	701
	
l806:	
	line	702
	goto	l3065
	line	805
	
l808:	
	line	816
	goto	l3101
	line	825
	
l3061:	
	goto	l3065
	line	638
	
l802:	
	
l3063:	
	movlw	01h
	addwf	(printf@f),f
	movlw	-01h
	addwf	(printf@f),w
	movwf	fsr0
	fcall	stringdir
	movwf	(printf@c)
	; Switch size 1, requested type "space"
; Number of cases is 3, Range of values is 0 to 105
; switch strategies available:
; Name         Instructions Cycles
; simple_byte           10     6 (average)
; jumptable            260     6 (fixed)
; rangetable           110     6 (fixed)
; spacedrange          218     9 (fixed)
; locatedrange         106     3 (fixed)
;	Chosen strategy is simple_byte

	opt asmopt_off
	xorlw	0^0	; case 0
	skipnz
	goto	l818
	xorlw	100^0	; case 100
	skipnz
	goto	l3065
	xorlw	105^100	; case 105
	skipnz
	goto	l3065
	goto	l3101
	opt asmopt_on

	line	825
	
l807:	
	line	1254
	
l3065:	
	movf	(printf@ap),w
	movwf	fsr0
	bcf	status, 7	;select IRP bank0
	movf	indf,w
	movwf	(printf@_val)
	incf	fsr0,f
	movf	indf,w
	movwf	(printf@_val+1)
	
l3067:	
	movlw	(02h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	addwf	(printf@ap),f
	line	1256
	
l3069:	
	btfss	(printf@_val+1),7
	goto	u2791
	goto	u2790
u2791:
	goto	l3075
u2790:
	line	1257
	
l3071:	
	movlw	(03h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	iorwf	(printf@flag),f
	line	1258
	
l3073:	
	comf	(printf@_val),f
	comf	(printf@_val+1),f
	incf	(printf@_val),f
	skipnz
	incf	(printf@_val+1),f
	goto	l3075
	line	1259
	
l809:	
	line	1300
	
l3075:	
	clrf	(printf@c)
	bsf	status,0
	rlf	(printf@c),f
	
l3077:	
	movf	(printf@c),w
	xorlw	05h
	skipz
	goto	u2801
	goto	u2800
u2801:
	goto	l3081
u2800:
	goto	l3089
	
l3079:	
	goto	l3089
	line	1301
	
l810:	
	
l3081:	
	movf	(printf@c),w
	movwf	(??_printf+0)+0
	addwf	(??_printf+0)+0,w
	addlw	low((_dpowers-__stringbase))
	movwf	fsr0
	fcall	stringdir
	movwf	(??_printf+1)+0
	fcall	stringdir
	movwf	(??_printf+1)+0+1
	movf	1+(??_printf+1)+0,w
	subwf	(printf@_val+1),w
	skipz
	goto	u2815
	movf	0+(??_printf+1)+0,w
	subwf	(printf@_val),w
u2815:
	skipnc
	goto	u2811
	goto	u2810
u2811:
	goto	l3085
u2810:
	goto	l3089
	line	1302
	
l3083:	
	goto	l3089
	
l812:	
	line	1300
	
l3085:	
	movlw	(01h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	addwf	(printf@c),f
	
l3087:	
	movf	(printf@c),w
	xorlw	05h
	skipz
	goto	u2821
	goto	u2820
u2821:
	goto	l3081
u2820:
	goto	l3089
	
l811:	
	line	1433
	
l3089:	
	movf	(printf@flag),w
	andlw	03h
	btfsc	status,2
	goto	u2831
	goto	u2830
u2831:
	goto	l3093
u2830:
	line	1434
	
l3091:	
	movlw	(02Dh)
	fcall	_putch
	goto	l3093
	
l813:	
	line	1467
	
l3093:	
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(printf@c),w
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	movwf	(printf@prec)
	line	1469
	goto	l3099
	
l815:	
	line	1484
	
l3095:	
	movlw	low(0Ah)
	movwf	(?___lwmod)
	movlw	high(0Ah)
	movwf	((?___lwmod))+1
	movf	(printf@prec),w
	movwf	(??_printf+0)+0
	addwf	(??_printf+0)+0,w
	addlw	low((_dpowers-__stringbase))
	movwf	fsr0
	fcall	stringdir
	movwf	(?___lwdiv)
	fcall	stringdir
	movwf	(?___lwdiv+1)
	movf	(printf@_val+1),w
	clrf	1+(?___lwdiv)+02h
	addwf	1+(?___lwdiv)+02h
	movf	(printf@_val),w
	clrf	0+(?___lwdiv)+02h
	addwf	0+(?___lwdiv)+02h

	fcall	___lwdiv
	movf	(1+(?___lwdiv)),w
	clrf	1+(?___lwmod)+02h
	addwf	1+(?___lwmod)+02h
	movf	(0+(?___lwdiv)),w
	clrf	0+(?___lwmod)+02h
	addwf	0+(?___lwmod)+02h

	fcall	___lwmod
	movf	(0+(?___lwmod)),w
	addlw	030h
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_printf+1)+0
	movf	(??_printf+1)+0,w
	movwf	(printf@c)
	line	1516
	
l3097:	
	movf	(printf@c),w
	fcall	_putch
	goto	l3099
	line	1517
	
l814:	
	line	1469
	
l3099:	
	movlw	(-1)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	addwf	(printf@prec),f
	movf	((printf@prec)),w
	xorlw	-1
	skipz
	goto	u2841
	goto	u2840
u2841:
	goto	l3095
u2840:
	goto	l3101
	
l816:	
	goto	l3101
	line	1525
	
l799:	
	line	540
	
l3101:	
	movlw	01h
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	addwf	(printf@f),f
	movlw	-01h
	addwf	(printf@f),w
	movwf	fsr0
	fcall	stringdir
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	movwf	(printf@c)
	movf	((printf@c)),f
	skipz
	goto	u2851
	goto	u2850
u2851:
	goto	l3057
u2850:
	goto	l818
	
l817:	
	goto	l818
	line	1527
	
l804:	
	line	1533
;	Return value of _printf is never used
	
l818:	
	return
	opt stack 0
GLOBAL	__end_of_printf
	__end_of_printf:
;; =============== function _printf ends ============

	signat	_printf,602
	global	___lwmod
psect	text271,local,class=CODE,delta=2
global __ptext271
__ptext271:

;; *************** function ___lwmod *****************
;; Defined at:
;;		line 5 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwmod.c"
;; Parameters:    Size  Location     Type
;;  divisor         2    8[COMMON] unsigned int 
;;  dividend        2   10[COMMON] unsigned int 
;; Auto vars:     Size  Location     Type
;;  counter         1   13[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    8[COMMON] unsigned int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         4       0       0       0       0
;;      Locals:         1       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         6       0       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_printf
;; This function uses a non-reentrant model
;;
psect	text271
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwmod.c"
	line	5
	global	__size_of___lwmod
	__size_of___lwmod	equ	__end_of___lwmod-___lwmod
	
___lwmod:	
	opt	stack 5
; Regs used in ___lwmod: [wreg+status,2+status,0]
	line	8
	
l3033:	
	movf	(___lwmod@divisor+1),w
	iorwf	(___lwmod@divisor),w
	skipnz
	goto	u2721
	goto	u2720
u2721:
	goto	l3051
u2720:
	line	9
	
l3035:	
	clrf	(___lwmod@counter)
	bsf	status,0
	rlf	(___lwmod@counter),f
	line	10
	goto	l3041
	
l1519:	
	line	11
	
l3037:	
	movlw	01h
	
u2735:
	clrc
	rlf	(___lwmod@divisor),f
	rlf	(___lwmod@divisor+1),f
	addlw	-1
	skipz
	goto	u2735
	line	12
	
l3039:	
	movlw	(01h)
	movwf	(??___lwmod+0)+0
	movf	(??___lwmod+0)+0,w
	addwf	(___lwmod@counter),f
	goto	l3041
	line	13
	
l1518:	
	line	10
	
l3041:	
	btfss	(___lwmod@divisor+1),(15)&7
	goto	u2741
	goto	u2740
u2741:
	goto	l3037
u2740:
	goto	l3043
	
l1520:	
	goto	l3043
	line	14
	
l1521:	
	line	15
	
l3043:	
	movf	(___lwmod@divisor+1),w
	subwf	(___lwmod@dividend+1),w
	skipz
	goto	u2755
	movf	(___lwmod@divisor),w
	subwf	(___lwmod@dividend),w
u2755:
	skipc
	goto	u2751
	goto	u2750
u2751:
	goto	l3047
u2750:
	line	16
	
l3045:	
	movf	(___lwmod@divisor),w
	subwf	(___lwmod@dividend),f
	movf	(___lwmod@divisor+1),w
	skipc
	decf	(___lwmod@dividend+1),f
	subwf	(___lwmod@dividend+1),f
	goto	l3047
	
l1522:	
	line	17
	
l3047:	
	movlw	01h
	
u2765:
	clrc
	rrf	(___lwmod@divisor+1),f
	rrf	(___lwmod@divisor),f
	addlw	-1
	skipz
	goto	u2765
	line	18
	
l3049:	
	movlw	low(01h)
	subwf	(___lwmod@counter),f
	btfss	status,2
	goto	u2771
	goto	u2770
u2771:
	goto	l3043
u2770:
	goto	l3051
	
l1523:	
	goto	l3051
	line	19
	
l1517:	
	line	20
	
l3051:	
	movf	(___lwmod@dividend+1),w
	clrf	(?___lwmod+1)
	addwf	(?___lwmod+1)
	movf	(___lwmod@dividend),w
	clrf	(?___lwmod)
	addwf	(?___lwmod)

	goto	l1524
	
l3053:	
	line	21
	
l1524:	
	return
	opt stack 0
GLOBAL	__end_of___lwmod
	__end_of___lwmod:
;; =============== function ___lwmod ends ============

	signat	___lwmod,8314
	global	___lwdiv
psect	text272,local,class=CODE,delta=2
global __ptext272
__ptext272:

;; *************** function ___lwdiv *****************
;; Defined at:
;;		line 5 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwdiv.c"
;; Parameters:    Size  Location     Type
;;  divisor         2    0[COMMON] unsigned int 
;;  dividend        2    2[COMMON] unsigned int 
;; Auto vars:     Size  Location     Type
;;  quotient        2    5[COMMON] unsigned int 
;;  counter         1    7[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    0[COMMON] unsigned int 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         4       0       0       0       0
;;      Locals:         3       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         8       0       0       0       0
;;Total ram usage:        8 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_printf
;; This function uses a non-reentrant model
;;
psect	text272
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\lwdiv.c"
	line	5
	global	__size_of___lwdiv
	__size_of___lwdiv	equ	__end_of___lwdiv-___lwdiv
	
___lwdiv:	
	opt	stack 5
; Regs used in ___lwdiv: [wreg+status,2+status,0]
	line	9
	
l3007:	
	clrf	(___lwdiv@quotient)
	clrf	(___lwdiv@quotient+1)
	line	10
	
l3009:	
	movf	(___lwdiv@divisor+1),w
	iorwf	(___lwdiv@divisor),w
	skipnz
	goto	u2651
	goto	u2650
u2651:
	goto	l3029
u2650:
	line	11
	
l3011:	
	clrf	(___lwdiv@counter)
	bsf	status,0
	rlf	(___lwdiv@counter),f
	line	12
	goto	l3017
	
l1509:	
	line	13
	
l3013:	
	movlw	01h
	
u2665:
	clrc
	rlf	(___lwdiv@divisor),f
	rlf	(___lwdiv@divisor+1),f
	addlw	-1
	skipz
	goto	u2665
	line	14
	
l3015:	
	movlw	(01h)
	movwf	(??___lwdiv+0)+0
	movf	(??___lwdiv+0)+0,w
	addwf	(___lwdiv@counter),f
	goto	l3017
	line	15
	
l1508:	
	line	12
	
l3017:	
	btfss	(___lwdiv@divisor+1),(15)&7
	goto	u2671
	goto	u2670
u2671:
	goto	l3013
u2670:
	goto	l3019
	
l1510:	
	goto	l3019
	line	16
	
l1511:	
	line	17
	
l3019:	
	movlw	01h
	
u2685:
	clrc
	rlf	(___lwdiv@quotient),f
	rlf	(___lwdiv@quotient+1),f
	addlw	-1
	skipz
	goto	u2685
	line	18
	movf	(___lwdiv@divisor+1),w
	subwf	(___lwdiv@dividend+1),w
	skipz
	goto	u2695
	movf	(___lwdiv@divisor),w
	subwf	(___lwdiv@dividend),w
u2695:
	skipc
	goto	u2691
	goto	u2690
u2691:
	goto	l3025
u2690:
	line	19
	
l3021:	
	movf	(___lwdiv@divisor),w
	subwf	(___lwdiv@dividend),f
	movf	(___lwdiv@divisor+1),w
	skipc
	decf	(___lwdiv@dividend+1),f
	subwf	(___lwdiv@dividend+1),f
	line	20
	
l3023:	
	bsf	(___lwdiv@quotient)+(0/8),(0)&7
	goto	l3025
	line	21
	
l1512:	
	line	22
	
l3025:	
	movlw	01h
	
u2705:
	clrc
	rrf	(___lwdiv@divisor+1),f
	rrf	(___lwdiv@divisor),f
	addlw	-1
	skipz
	goto	u2705
	line	23
	
l3027:	
	movlw	low(01h)
	subwf	(___lwdiv@counter),f
	btfss	status,2
	goto	u2711
	goto	u2710
u2711:
	goto	l3019
u2710:
	goto	l3029
	
l1513:	
	goto	l3029
	line	24
	
l1507:	
	line	25
	
l3029:	
	movf	(___lwdiv@quotient+1),w
	clrf	(?___lwdiv+1)
	addwf	(?___lwdiv+1)
	movf	(___lwdiv@quotient),w
	clrf	(?___lwdiv)
	addwf	(?___lwdiv)

	goto	l1514
	
l3031:	
	line	26
	
l1514:	
	return
	opt stack 0
GLOBAL	__end_of___lwdiv
	__end_of___lwdiv:
;; =============== function ___lwdiv ends ============

	signat	___lwdiv,8314
	global	___bmul
psect	text273,local,class=CODE,delta=2
global __ptext273
__ptext273:

;; *************** function ___bmul *****************
;; Defined at:
;;		line 3 in file "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\bmul.c"
;; Parameters:    Size  Location     Type
;;  multiplier      1    wreg     unsigned char 
;;  multiplicand    1    0[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  multiplier      1    3[COMMON] unsigned char 
;;  product         1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         1       0       0       0       0
;;      Locals:         2       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         4       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_IN1307_EEPROM_Test
;; This function uses a non-reentrant model
;;
psect	text273
	file	"C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\bmul.c"
	line	3
	global	__size_of___bmul
	__size_of___bmul	equ	__end_of___bmul-___bmul
	
___bmul:	
	opt	stack 6
; Regs used in ___bmul: [wreg+status,2+status,0]
;___bmul@multiplier stored from wreg
	movwf	(___bmul@multiplier)
	line	4
	
l2993:	
	clrf	(___bmul@product)
	line	6
	
l1495:	
	line	7
	btfss	(___bmul@multiplier),(0)&7
	goto	u2631
	goto	u2630
u2631:
	goto	l2997
u2630:
	line	8
	
l2995:	
	movf	(___bmul@multiplicand),w
	movwf	(??___bmul+0)+0
	movf	(??___bmul+0)+0,w
	addwf	(___bmul@product),f
	goto	l2997
	
l1496:	
	line	9
	
l2997:	
	clrc
	rlf	(___bmul@multiplicand),f

	line	10
	
l2999:	
	clrc
	rrf	(___bmul@multiplier),f

	line	11
	
l3001:	
	movf	(___bmul@multiplier),f
	skipz
	goto	u2641
	goto	u2640
u2641:
	goto	l1495
u2640:
	goto	l3003
	
l1497:	
	line	12
	
l3003:	
	movf	(___bmul@product),w
	goto	l1498
	
l3005:	
	line	13
	
l1498:	
	return
	opt stack 0
GLOBAL	__end_of___bmul
	__end_of___bmul:
;; =============== function ___bmul ends ============

	signat	___bmul,8313
	global	_putch
psect	text274,local,class=CODE,delta=2
global __ptext274
__ptext274:

;; *************** function _putch *****************
;; Defined at:
;;		line 132 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  byte            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  byte            1    0[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         1       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         1       0       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_printf
;; This function uses a non-reentrant model
;;
psect	text274
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	132
	global	__size_of_putch
	__size_of_putch	equ	__end_of_putch-_putch
	
_putch:	
	opt	stack 5
; Regs used in _putch: [wreg]
;putch@byte stored from wreg
	movwf	(putch@byte)
	line	134
	
l2989:	
;test_all_code.c: 134: while (!TRMT)
	goto	l756
	
l757:	
	line	135
;test_all_code.c: 135: continue;
	
l756:	
	line	134
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfss	(1217/8)^080h,(1217)&7
	goto	u2621
	goto	u2620
u2621:
	goto	l756
u2620:
	goto	l2991
	
l758:	
	line	136
	
l2991:	
;test_all_code.c: 136: TXREG = byte;
	movf	(putch@byte),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(25)	;volatile
	line	137
	
l759:	
	return
	opt stack 0
GLOBAL	__end_of_putch
	__end_of_putch:
;; =============== function _putch ends ============

	signat	_putch,4216
	global	_Write_I2C
psect	text275,local,class=CODE,delta=2
global __ptext275
__ptext275:

;; *************** function _Write_I2C *****************
;; Defined at:
;;		line 91 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  ID              1    wreg     unsigned char 
;;  addr            1    0[COMMON] unsigned char 
;;  data            1    1[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  ID              1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         2       0       0       0       0
;;      Locals:         1       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         3       0       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_SysInit
;; This function uses a non-reentrant model
;;
psect	text275
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	91
	global	__size_of_Write_I2C
	__size_of_Write_I2C	equ	__end_of_Write_I2C-_Write_I2C
	
_Write_I2C:	
	opt	stack 6
; Regs used in _Write_I2C: [wreg]
;Write_I2C@ID stored from wreg
	line	93
	movwf	(Write_I2C@ID)
	
l1959:	
;test_all_code.c: 93: SEN = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1160/8)^080h,(1160)&7
	line	94
;test_all_code.c: 94: while (SEN)
	goto	l723
	
l724:	
	line	95
;test_all_code.c: 95: ;
	
l723:	
	line	94
	btfsc	(1160/8)^080h,(1160)&7
	goto	u111
	goto	u110
u111:
	goto	l723
u110:
	goto	l1961
	
l725:	
	line	98
	
l1961:	
;test_all_code.c: 98: SSPBUF = ID;
	movf	(Write_I2C@ID),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	100
;test_all_code.c: 100: while (SSPSTAT&0x04)
	goto	l726
	
l727:	
	line	101
;test_all_code.c: 101: ;
	
l726:	
	line	100
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u121
	goto	u120
u121:
	goto	l726
u120:
	goto	l729
	
l728:	
	line	102
;test_all_code.c: 102: while (ACKSTAT)
	goto	l729
	
l730:	
	line	103
;test_all_code.c: 103: ;
	
l729:	
	line	102
	btfsc	(1166/8)^080h,(1166)&7
	goto	u131
	goto	u130
u131:
	goto	l729
u130:
	goto	l1963
	
l731:	
	line	106
	
l1963:	
;test_all_code.c: 106: SSPBUF = addr;
	movf	(Write_I2C@addr),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	108
;test_all_code.c: 108: while (SSPSTAT&0x04)
	goto	l732
	
l733:	
	line	109
;test_all_code.c: 109: ;
	
l732:	
	line	108
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u141
	goto	u140
u141:
	goto	l732
u140:
	goto	l735
	
l734:	
	line	110
;test_all_code.c: 110: while (ACKSTAT)
	goto	l735
	
l736:	
	line	111
;test_all_code.c: 111: ;
	
l735:	
	line	110
	btfsc	(1166/8)^080h,(1166)&7
	goto	u151
	goto	u150
u151:
	goto	l735
u150:
	goto	l1965
	
l737:	
	line	114
	
l1965:	
;test_all_code.c: 114: SSPBUF = data;
	movf	(Write_I2C@data),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	116
;test_all_code.c: 116: while (SSPSTAT&0x04)
	goto	l738
	
l739:	
	line	117
;test_all_code.c: 117: ;
	
l738:	
	line	116
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u161
	goto	u160
u161:
	goto	l738
u160:
	goto	l741
	
l740:	
	line	118
;test_all_code.c: 118: while (ACKSTAT)
	goto	l741
	
l742:	
	line	119
;test_all_code.c: 119: ;
	
l741:	
	line	118
	btfsc	(1166/8)^080h,(1166)&7
	goto	u171
	goto	u170
u171:
	goto	l741
u170:
	
l743:	
	line	122
;test_all_code.c: 122: PEN = 1;
	bsf	(1162/8)^080h,(1162)&7
	line	123
;test_all_code.c: 123: while (PEN)
	goto	l744
	
l745:	
	line	124
;test_all_code.c: 124: ;
	
l744:	
	line	123
	btfsc	(1162/8)^080h,(1162)&7
	goto	u181
	goto	u180
u181:
	goto	l744
u180:
	goto	l747
	
l746:	
	line	125
	
l747:	
	return
	opt stack 0
GLOBAL	__end_of_Write_I2C
	__end_of_Write_I2C:
;; =============== function _Write_I2C ends ============

	signat	_Write_I2C,12408
	global	_Read_I2C
psect	text276,local,class=CODE,delta=2
global __ptext276
__ptext276:

;; *************** function _Read_I2C *****************
;; Defined at:
;;		line 39 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  ID              1    wreg     unsigned char 
;;  addr            1    0[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  ID              1    3[COMMON] unsigned char 
;;  Read_Data       1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;                  1    wreg      unsigned char 
;; Registers used:
;;		wreg, status,2
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         1       0       0       0       0
;;      Locals:         2       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         4       0       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_IN1307_EEPROM_Test
;; This function uses a non-reentrant model
;;
psect	text276
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	39
	global	__size_of_Read_I2C
	__size_of_Read_I2C	equ	__end_of_Read_I2C-_Read_I2C
	
_Read_I2C:	
	opt	stack 6
; Regs used in _Read_I2C: [wreg+status,2]
;Read_I2C@ID stored from wreg
	movwf	(Read_I2C@ID)
	line	40
	
l2973:	
;test_all_code.c: 40: BYTE Read_Data = 0;
	clrf	(Read_I2C@Read_Data)
	line	42
;test_all_code.c: 42: SEN = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1160/8)^080h,(1160)&7
	line	43
;test_all_code.c: 43: while (SEN)
	goto	l690
	
l691:	
	line	44
;test_all_code.c: 44: ;
	
l690:	
	line	43
	btfsc	(1160/8)^080h,(1160)&7
	goto	u2521
	goto	u2520
u2521:
	goto	l690
u2520:
	goto	l2975
	
l692:	
	line	47
	
l2975:	
;test_all_code.c: 47: SSPBUF = ID;
	movf	(Read_I2C@ID),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	49
;test_all_code.c: 49: while (SSPSTAT&0x04)
	goto	l693
	
l694:	
	line	50
;test_all_code.c: 50: ;
	
l693:	
	line	49
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u2531
	goto	u2530
u2531:
	goto	l693
u2530:
	goto	l696
	
l695:	
	line	51
;test_all_code.c: 51: while (ACKSTAT)
	goto	l696
	
l697:	
	line	52
;test_all_code.c: 52: ;
	
l696:	
	line	51
	btfsc	(1166/8)^080h,(1166)&7
	goto	u2541
	goto	u2540
u2541:
	goto	l696
u2540:
	goto	l2977
	
l698:	
	line	55
	
l2977:	
;test_all_code.c: 55: SSPBUF = addr;
	movf	(Read_I2C@addr),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	57
;test_all_code.c: 57: while (SSPSTAT&0x04)
	goto	l699
	
l700:	
	line	58
;test_all_code.c: 58: ;
	
l699:	
	line	57
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u2551
	goto	u2550
u2551:
	goto	l699
u2550:
	goto	l702
	
l701:	
	line	59
;test_all_code.c: 59: while (ACKSTAT)
	goto	l702
	
l703:	
	line	60
;test_all_code.c: 60: ;
	
l702:	
	line	59
	btfsc	(1166/8)^080h,(1166)&7
	goto	u2561
	goto	u2560
u2561:
	goto	l702
u2560:
	
l704:	
	line	64
;test_all_code.c: 64: RSEN = 1;
	bsf	(1161/8)^080h,(1161)&7
	line	65
;test_all_code.c: 65: while (RSEN)
	goto	l705
	
l706:	
	line	66
;test_all_code.c: 66: ;
	
l705:	
	line	65
	btfsc	(1161/8)^080h,(1161)&7
	goto	u2571
	goto	u2570
u2571:
	goto	l705
u2570:
	goto	l2979
	
l707:	
	line	69
	
l2979:	
;test_all_code.c: 69: SSPBUF = ID | 1;
	movf	(Read_I2C@ID),w
	iorlw	01h
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(19)	;volatile
	line	71
;test_all_code.c: 71: while (SSPSTAT&0x04)
	goto	l708
	
l709:	
	line	72
;test_all_code.c: 72: ;
	
l708:	
	line	71
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfsc	(148)^080h,(2)&7
	goto	u2581
	goto	u2580
u2581:
	goto	l708
u2580:
	goto	l711
	
l710:	
	line	73
;test_all_code.c: 73: while (ACKSTAT)
	goto	l711
	
l712:	
	line	74
;test_all_code.c: 74: ;
	
l711:	
	line	73
	btfsc	(1166/8)^080h,(1166)&7
	goto	u2591
	goto	u2590
u2591:
	goto	l711
u2590:
	
l713:	
	line	77
;test_all_code.c: 77: RCEN = 1;
	bsf	(1163/8)^080h,(1163)&7
	line	78
;test_all_code.c: 78: while (RCEN)
	goto	l714
	
l715:	
	line	79
;test_all_code.c: 79: ;
	
l714:	
	line	78
	btfsc	(1163/8)^080h,(1163)&7
	goto	u2601
	goto	u2600
u2601:
	goto	l714
u2600:
	goto	l2981
	
l716:	
	line	81
	
l2981:	
;test_all_code.c: 81: Read_Data = SSPBUF;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(19),w	;volatile
	movwf	(??_Read_I2C+0)+0
	movf	(??_Read_I2C+0)+0,w
	movwf	(Read_I2C@Read_Data)
	line	84
	
l2983:	
;test_all_code.c: 84: PEN = 1;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bsf	(1162/8)^080h,(1162)&7
	line	85
;test_all_code.c: 85: while (PEN)
	goto	l717
	
l718:	
	line	86
;test_all_code.c: 86: ;
	
l717:	
	line	85
	btfsc	(1162/8)^080h,(1162)&7
	goto	u2611
	goto	u2610
u2611:
	goto	l717
u2610:
	goto	l2985
	
l719:	
	line	88
	
l2985:	
;test_all_code.c: 88: return (Read_Data);
	movf	(Read_I2C@Read_Data),w
	goto	l720
	
l2987:	
	line	89
	
l720:	
	return
	opt stack 0
GLOBAL	__end_of_Read_I2C
	__end_of_Read_I2C:
;; =============== function _Read_I2C ends ============

	signat	_Read_I2C,8313
	global	_flilflop_Enable
psect	text277,local,class=CODE,delta=2
global __ptext277
__ptext277:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 32 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  Add             1    wreg     unsigned char 
;;  OuputData       1    0[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  Add             1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         1       0       0       0       0
;;      Locals:         1       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         3       0       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_DeviceInit
;; This function uses a non-reentrant model
;;
psect	text277
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH08_RTCEEPROM\test_all_code.c"
	line	32
	global	__size_of_flilflop_Enable
	__size_of_flilflop_Enable	equ	__end_of_flilflop_Enable-_flilflop_Enable
	
_flilflop_Enable:	
	opt	stack 6
; Regs used in _flilflop_Enable: [wreg+status,2+status,0]
;flilflop_Enable@Add stored from wreg
	movwf	(flilflop_Enable@Add)
	line	33
	
l1935:	
;test_all_code.c: 33: PORTD = OuputData;PORTB |= 0X10;
	movf	(flilflop_Enable@OuputData),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(8)	;volatile
	
l1937:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	34
;test_all_code.c: 34: PORTC = Add;
	movf	(flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	35
	
l1939:	
;test_all_code.c: 35: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??_flilflop_Enable+0)+0
	movf	(??_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	36
	
l1941:	
;test_all_code.c: 36: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	37
	
l687:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
psect	text278,local,class=CODE,delta=2
global __ptext278
__ptext278:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
