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,_ADC_Test
	FNCALL	_main,_printf
	FNCALL	_printf,_putch
	FNCALL	_printf,___lwdiv
	FNCALL	_printf,___lwmod
	FNCALL	_DeviceInit,_flilflop_Enable
	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	_ad_buff
	global	_ADCON0
_ADCON0	set	31
	global	_ADRESH
_ADRESH	set	30
	global	_INTCON
_INTCON	set	11
	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	_TXREG
_TXREG	set	25
	global	_ADCS0
_ADCS0	set	254
	global	_ADCS1
_ADCS1	set	255
	global	_ADIF
_ADIF	set	102
	global	_ADON
_ADON	set	248
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_GO_DONE
_GO_DONE	set	250
	global	_ADCON1
_ADCON1	set	159
	global	_ADRESL
_ADRESL	set	158
	global	_PIE1
_PIE1	set	140
	global	_SPBRG
_SPBRG	set	153
	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	_PCFG0
_PCFG0	set	1272
	global	_PCFG1
_PCFG1	set	1273
	global	_PCFG2
_PCFG2	set	1274
	global	_PCFG3
_PCFG3	set	1275
	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	86	;'V'
	retlw	82	;'R'
	retlw	49	;'1'
	retlw	48	;'0'
	retlw	107	;'k'
	retlw	58	;':'
	retlw	37	;'%'
	retlw	100	;'d'
	retlw	32	;' '
	retlw	32	;' '
	retlw	67	;'C'
	retlw	68	;'D'
	retlw	83	;'S'
	retlw	58	;':'
	retlw	37	;'%'
	retlw	100	;'d'
	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:
_ad_buff:
       ds      4

; 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
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	?_putch
?_putch:	; 0 bytes @ 0x0
	global	??_putch
??_putch:	; 0 bytes @ 0x0
	global	?_SysInit
?_SysInit:	; 0 bytes @ 0x0
	global	??_SysInit
??_SysInit:	; 0 bytes @ 0x0
	global	?_DeviceInit
?_DeviceInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?_ADC_Test
?_ADC_Test:	; 2 bytes @ 0x0
	global	?___lwdiv
?___lwdiv:	; 2 bytes @ 0x0
	global	flilflop_Enable@OuputData
flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	global	putch@byte
putch@byte:	; 1 bytes @ 0x0
	global	___lwdiv@divisor
___lwdiv@divisor:	; 2 bytes @ 0x0
	ds	1
	global	??_flilflop_Enable
??_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	??_ADC_Test
??_ADC_Test:	; 0 bytes @ 0x2
	global	flilflop_Enable@Add
flilflop_Enable@Add:	; 1 bytes @ 0x2
	global	___lwdiv@dividend
___lwdiv@dividend:	; 2 bytes @ 0x2
	ds	1
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	ds	1
	global	??___lwdiv
??___lwdiv:	; 0 bytes @ 0x4
	global	ADC_Test@data2
ADC_Test@data2:	; 2 bytes @ 0x4
	ds	1
	global	___lwdiv@quotient
___lwdiv@quotient:	; 2 bytes @ 0x5
	ds	1
	global	ADC_Test@adc_input
ADC_Test@adc_input:	; 1 bytes @ 0x6
	ds	1
	global	___lwdiv@counter
___lwdiv@counter:	; 1 bytes @ 0x7
	global	ADC_Test@data
ADC_Test@data:	; 2 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
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	?_printf
?_printf:	; 2 bytes @ 0x0
	ds	4
	global	??_printf
??_printf:	; 0 bytes @ 0x4
	ds	3
	global	printf@ap
printf@ap:	; 1 bytes @ 0x7
	ds	1
	global	printf@flag
printf@flag:	; 1 bytes @ 0x8
	ds	1
	global	printf@f
printf@f:	; 1 bytes @ 0x9
	ds	1
	global	printf@prec
printf@prec:	; 1 bytes @ 0xA
	ds	1
	global	printf@_val
printf@_val:	; 4 bytes @ 0xB
	ds	4
	global	printf@c
printf@c:	; 1 bytes @ 0xF
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0x10
	ds	1
	global	main@i
main@i:	; 2 bytes @ 0x11
	ds	2
;;Data sizes: Strings 20, constant 10, data 0, bss 4, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14     14      14
;; BANK0           80     19      23
;; 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
;;
;; ?_ADC_Test	unsigned int  size(1) Largest target is 0
;;
;; printf@f	PTR const unsigned char  size(1) Largest target is 20
;;		 -> STR_1(CODE[20]), 
;;
;; ?_printf	int  size(1) Largest target is 0
;;
;; printf@ap	PTR void [1] size(1) Largest target is 2
;;		 -> ?_printf(BANK0[2]), 
;;
;; S1270$_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
;;
;;   _printf->___lwmod
;;   _DeviceInit->_flilflop_Enable
;;   ___lwmod->___lwdiv
;;
;; Critical Paths under _main in BANK0
;;
;;   _main->_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 = 1, incstack = 0, save=0
;;

;;
;;Call Graph Tables:
;;
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (0) _main                                                 3     3      0     935
;;                                             16 BANK0      3     3      0
;;                            _SysInit
;;                         _DeviceInit
;;                           _ADC_Test
;;                             _printf
;; ---------------------------------------------------------------------------------
;; (1) _printf                                              16    12      4     729
;;                                              0 BANK0     16    12      4
;;                              _putch
;;                            ___lwdiv
;;                            ___lwmod
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      44
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _ADC_Test                                             9     7      2      71
;;                                              0 COMMON     9     7      2
;; ---------------------------------------------------------------------------------
;; (2) ___lwmod                                              6     2      4     159
;;                                              8 COMMON     6     2      4
;;                            ___lwdiv (ARG)
;; ---------------------------------------------------------------------------------
;; (2) ___lwdiv                                              8     4      4     162
;;                                              0 COMMON     8     4      4
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _putch                                                1     1      0      22
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      44
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;   _DeviceInit
;;     _flilflop_Enable
;;   _ADC_Test
;;   _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       2       2        0.0%
;;ABS                  0      0      25       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     13      17       5       28.8%
;;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      27      12        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 113 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  i               2   17[BANK0 ] int 
;; 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       2       0       0       0
;;      Temps:          0       1       0       0       0
;;      Totals:         0       3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_SysInit
;;		_DeviceInit
;;		_ADC_Test
;;		_printf
;; 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\CH05_ADC\test_all_code.c"
	line	113
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 6
; Regs used in _main: [wreg-fsr0h+status,2+status,0+btemp+1+pclath+cstack]
	line	114
	
l2993:	
;test_all_code.c: 114: SysInit();
	fcall	_SysInit
	line	115
;test_all_code.c: 115: DeviceInit();
	fcall	_DeviceInit
	goto	l2995
	line	116
;test_all_code.c: 116: while (1)
	
l721:	
	line	118
	
l2995:	
;test_all_code.c: 117: {
;test_all_code.c: 118: int i = 0;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(main@i)
	clrf	(main@i+1)
	line	119
	
l2997:	
;test_all_code.c: 119: for (i = 0;i < 2;i++)
	clrf	(main@i)
	clrf	(main@i+1)
	
l2999:	
	movf	(main@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(02h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2595
	movlw	low(02h)
	subwf	(main@i),w
u2595:

	skipc
	goto	u2591
	goto	u2590
u2591:
	goto	l3003
u2590:
	goto	l2995
	
l3001:	
	goto	l2995
	line	120
	
l722:	
	line	121
	
l3003:	
;test_all_code.c: 120: {
;test_all_code.c: 121: ad_buff[i] = ADC_Test(i);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@i),w
	fcall	_ADC_Test
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(main@i),w
	movwf	(??_main+0)+0
	addwf	(??_main+0)+0,w
	addlw	_ad_buff&0ffh
	movwf	fsr0
	movf	(0+(?_ADC_Test)),w
	bcf	status, 7	;select IRP bank0
	movwf	indf
	incf	fsr0,f
	movf	(1+(?_ADC_Test)),w
	movwf	indf
	line	122
	
l3005:	
;test_all_code.c: 122: printf("VR10k:%d  CDS:%d \r\n", ad_buff[0], ad_buff[1]);
	movf	(_ad_buff+1),w
	clrf	(?_printf+1)
	addwf	(?_printf+1)
	movf	(_ad_buff),w
	clrf	(?_printf)
	addwf	(?_printf)

	movf	1+(_ad_buff)+02h,w
	clrf	1+(?_printf)+02h
	addwf	1+(?_printf)+02h
	movf	0+(_ad_buff)+02h,w
	clrf	0+(?_printf)+02h
	addwf	0+(?_printf)+02h

	movlw	((STR_1-__stringbase))&0ffh
	fcall	_printf
	line	119
	
l3007:	
	movlw	low(01h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	addwf	(main@i),f
	skipnc
	incf	(main@i+1),f
	movlw	high(01h)
	addwf	(main@i+1),f
	movf	(main@i+1),w
	xorlw	80h
	movwf	btemp+1
	movlw	(high(02h))^80h
	subwf	btemp+1,w
	skipz
	goto	u2605
	movlw	low(02h)
	subwf	(main@i),w
u2605:

	skipc
	goto	u2601
	goto	u2600
u2601:
	goto	l3003
u2600:
	goto	l2995
	
l723:	
	goto	l2995
	line	124
	
l724:	
	line	116
	goto	l2995
	
l725:	
	line	125
	
l726:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_printf
psect	text227,local,class=CODE,delta=2
global __ptext227
__ptext227:

;; *************** 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(20), 
;; Auto vars:     Size  Location     Type
;;  f               1    9[BANK0 ] PTR const unsigned char 
;;		 -> STR_1(20), 
;;  _val            4   11[BANK0 ] struct .
;;  c               1   15[BANK0 ] char 
;;  prec            1   10[BANK0 ] char 
;;  flag            1    8[BANK0 ] unsigned char 
;;  ap              1    7[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       4       0       0       0
;;      Locals:         0       9       0       0       0
;;      Temps:          0       3       0       0       0
;;      Totals:         0      16       0       0       0
;;Total ram usage:       16 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		_putch
;;		___lwdiv
;;		___lwmod
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text227
	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 6
; 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)
	
l2945:	
	movlw	(?_printf)&0ffh
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	movwf	(printf@ap)
	line	540
	goto	l2991
	
l738:	
	line	542
	
l2947:	
	movf	(printf@c),w
	xorlw	025h
	skipnz
	goto	u2511
	goto	u2510
u2511:
	goto	l739
u2510:
	line	545
	
l2949:	
	movf	(printf@c),w
	fcall	_putch
	line	546
	goto	l2991
	line	547
	
l739:	
	line	552
	clrf	(printf@flag)
	line	638
	goto	l2953
	line	640
	
l741:	
	line	641
	goto	l756
	line	700
	
l743:	
	goto	l2955
	line	701
	
l744:	
	line	702
	goto	l2955
	line	805
	
l746:	
	line	816
	goto	l2991
	line	825
	
l2951:	
	goto	l2955
	line	638
	
l740:	
	
l2953:	
	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	l756
	xorlw	100^0	; case 100
	skipnz
	goto	l2955
	xorlw	105^100	; case 105
	skipnz
	goto	l2955
	goto	l2991
	opt asmopt_on

	line	825
	
l745:	
	line	1254
	
l2955:	
	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)
	
l2957:	
	movlw	(02h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	addwf	(printf@ap),f
	line	1256
	
l2959:	
	btfss	(printf@_val+1),7
	goto	u2521
	goto	u2520
u2521:
	goto	l2965
u2520:
	line	1257
	
l2961:	
	movlw	(03h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	iorwf	(printf@flag),f
	line	1258
	
l2963:	
	comf	(printf@_val),f
	comf	(printf@_val+1),f
	incf	(printf@_val),f
	skipnz
	incf	(printf@_val+1),f
	goto	l2965
	line	1259
	
l747:	
	line	1300
	
l2965:	
	clrf	(printf@c)
	bsf	status,0
	rlf	(printf@c),f
	
l2967:	
	movf	(printf@c),w
	xorlw	05h
	skipz
	goto	u2531
	goto	u2530
u2531:
	goto	l2971
u2530:
	goto	l2979
	
l2969:	
	goto	l2979
	line	1301
	
l748:	
	
l2971:	
	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	u2545
	movf	0+(??_printf+1)+0,w
	subwf	(printf@_val),w
u2545:
	skipnc
	goto	u2541
	goto	u2540
u2541:
	goto	l2975
u2540:
	goto	l2979
	line	1302
	
l2973:	
	goto	l2979
	
l750:	
	line	1300
	
l2975:	
	movlw	(01h)
	movwf	(??_printf+0)+0
	movf	(??_printf+0)+0,w
	addwf	(printf@c),f
	
l2977:	
	movf	(printf@c),w
	xorlw	05h
	skipz
	goto	u2551
	goto	u2550
u2551:
	goto	l2971
u2550:
	goto	l2979
	
l749:	
	line	1433
	
l2979:	
	movf	(printf@flag),w
	andlw	03h
	btfsc	status,2
	goto	u2561
	goto	u2560
u2561:
	goto	l2983
u2560:
	line	1434
	
l2981:	
	movlw	(02Dh)
	fcall	_putch
	goto	l2983
	
l751:	
	line	1467
	
l2983:	
	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	l2989
	
l753:	
	line	1484
	
l2985:	
	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
	
l2987:	
	movf	(printf@c),w
	fcall	_putch
	goto	l2989
	line	1517
	
l752:	
	line	1469
	
l2989:	
	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	u2571
	goto	u2570
u2571:
	goto	l2985
u2570:
	goto	l2991
	
l754:	
	goto	l2991
	line	1525
	
l737:	
	line	540
	
l2991:	
	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	u2581
	goto	u2580
u2581:
	goto	l2947
u2580:
	goto	l756
	
l755:	
	goto	l756
	line	1527
	
l742:	
	line	1533
;	Return value of _printf is never used
	
l756:	
	return
	opt stack 0
GLOBAL	__end_of_printf
	__end_of_printf:
;; =============== function _printf ends ============

	signat	_printf,602
	global	_DeviceInit
psect	text228,local,class=CODE,delta=2
global __ptext228
__ptext228:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 101 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\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	text228
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
	line	101
	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	103
	
l2943:	
;test_all_code.c: 103: flilflop_Enable(0X00,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	104
;test_all_code.c: 104: flilflop_Enable(0X01,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	105
;test_all_code.c: 105: flilflop_Enable(0X02,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	106
;test_all_code.c: 106: flilflop_Enable(0X03,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	107
;test_all_code.c: 107: flilflop_Enable(0X04,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	108
;test_all_code.c: 108: flilflop_Enable(0X05,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	109
;test_all_code.c: 109: flilflop_Enable(0X06,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	110
;test_all_code.c: 110: flilflop_Enable(0X07,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	111
	
l718:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_ADC_Test
psect	text229,local,class=CODE,delta=2
global __ptext229
__ptext229:

;; *************** function _ADC_Test *****************
;; Defined at:
;;		line 73 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  adc_input       1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  adc_input       1    6[COMMON] unsigned char 
;;  data            2    7[COMMON] unsigned int 
;;  data2           2    4[COMMON] unsigned int 
;; 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:         2       0       0       0       0
;;      Locals:         5       0       0       0       0
;;      Temps:          2       0       0       0       0
;;      Totals:         9       0       0       0       0
;;Total ram usage:        9 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text229
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
	line	73
	global	__size_of_ADC_Test
	__size_of_ADC_Test	equ	__end_of_ADC_Test-_ADC_Test
	
_ADC_Test:	
	opt	stack 7
; Regs used in _ADC_Test: [wreg+status,2+status,0]
;ADC_Test@adc_input stored from wreg
	line	75
	movwf	(ADC_Test@adc_input)
	
l2913:	
;test_all_code.c: 75: unsigned int data = 0;
	clrf	(ADC_Test@data)
	clrf	(ADC_Test@data+1)
	line	76
;test_all_code.c: 76: unsigned int data, data2 = 0;
	clrf	(ADC_Test@data2)
	clrf	(ADC_Test@data2+1)
	line	78
	
l2915:	
;test_all_code.c: 78: PCFG0 = 0;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	bcf	(1272/8)^080h,(1272)&7
	line	79
	
l2917:	
;test_all_code.c: 79: PCFG1 = 0;
	bcf	(1273/8)^080h,(1273)&7
	line	80
	
l2919:	
;test_all_code.c: 80: PCFG2 = 0;
	bcf	(1274/8)^080h,(1274)&7
	line	81
	
l2921:	
;test_all_code.c: 81: PCFG3 = 0;
	bcf	(1275/8)^080h,(1275)&7
	line	83
	
l2923:	
;test_all_code.c: 83: ADCON0 = (adc_input << 3 & 0x38);
	movf	(ADC_Test@adc_input),w
	movwf	(??_ADC_Test+0)+0
	movlw	(03h)-1
u2495:
	clrc
	rlf	(??_ADC_Test+0)+0,f
	addlw	-1
	skipz
	goto	u2495
	clrc
	rlf	(??_ADC_Test+0)+0,w
	andlw	038h
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(31)	;volatile
	line	85
	
l2925:	
;test_all_code.c: 85: ADON = 1;
	bsf	(248/8),(248)&7
	line	87
	
l2927:	
;test_all_code.c: 87: ADCS0 = 0;
	bcf	(254/8),(254)&7
	line	88
	
l2929:	
;test_all_code.c: 88: ADCS1 = 0;
	bcf	(255/8),(255)&7
	line	89
	
l2931:	
;test_all_code.c: 89: _delay((unsigned long)((10)*(16000000/4000000.0)));
	opt asmopt_off
movlw	13
movwf	(??_ADC_Test+0)+0,f
u2617:
decfsz	(??_ADC_Test+0)+0,f
	goto	u2617
opt asmopt_on

	line	90
	
l2933:	
;test_all_code.c: 90: GO_DONE = 1;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	bsf	(250/8),(250)&7
	line	91
;test_all_code.c: 91: while (!GO_DONE)
	goto	l712
	
l713:	
	line	92
;test_all_code.c: 92: ;
	
l712:	
	line	91
	btfss	(250/8),(250)&7
	goto	u2501
	goto	u2500
u2501:
	goto	l712
u2500:
	goto	l2935
	
l714:	
	line	93
	
l2935:	
;test_all_code.c: 93: data = ADRESH;
	movf	(30),w	;volatile
	movwf	(??_ADC_Test+0)+0
	clrf	(??_ADC_Test+0)+0+1
	movf	0+(??_ADC_Test+0)+0,w
	movwf	(ADC_Test@data)
	movf	1+(??_ADC_Test+0)+0,w
	movwf	(ADC_Test@data+1)
	line	94
;test_all_code.c: 94: data = (data << 8);
	movf	(ADC_Test@data),w
	movwf	(??_ADC_Test+0)+0+1
	clrf	(??_ADC_Test+0)+0
	movf	0+(??_ADC_Test+0)+0,w
	movwf	(ADC_Test@data)
	movf	1+(??_ADC_Test+0)+0,w
	movwf	(ADC_Test@data+1)
	line	95
;test_all_code.c: 95: data |= ADRESL;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movf	(158)^080h,w	;volatile
	movwf	(??_ADC_Test+0)+0
	clrf	(??_ADC_Test+0)+0+1
	movf	0+(??_ADC_Test+0)+0,w
	iorwf	(ADC_Test@data),f
	movf	1+(??_ADC_Test+0)+0,w
	iorwf	(ADC_Test@data+1),f
	line	96
	
l2937:	
;test_all_code.c: 96: ADIF = 0;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	bcf	(102/8),(102)&7
	line	97
	
l2939:	
;test_all_code.c: 97: return data;
	movf	(ADC_Test@data+1),w
	clrf	(?_ADC_Test+1)
	addwf	(?_ADC_Test+1)
	movf	(ADC_Test@data),w
	clrf	(?_ADC_Test)
	addwf	(?_ADC_Test)

	goto	l715
	
l2941:	
	line	99
	
l715:	
	return
	opt stack 0
GLOBAL	__end_of_ADC_Test
	__end_of_ADC_Test:
;; =============== function _ADC_Test ends ============

	signat	_ADC_Test,4218
	global	___lwmod
psect	text230,local,class=CODE,delta=2
global __ptext230
__ptext230:

;; *************** 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	text230
	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 6
; Regs used in ___lwmod: [wreg+status,2+status,0]
	line	8
	
l2891:	
	movf	(___lwmod@divisor+1),w
	iorwf	(___lwmod@divisor),w
	skipnz
	goto	u2431
	goto	u2430
u2431:
	goto	l2909
u2430:
	line	9
	
l2893:	
	clrf	(___lwmod@counter)
	bsf	status,0
	rlf	(___lwmod@counter),f
	line	10
	goto	l2899
	
l1457:	
	line	11
	
l2895:	
	movlw	01h
	
u2445:
	clrc
	rlf	(___lwmod@divisor),f
	rlf	(___lwmod@divisor+1),f
	addlw	-1
	skipz
	goto	u2445
	line	12
	
l2897:	
	movlw	(01h)
	movwf	(??___lwmod+0)+0
	movf	(??___lwmod+0)+0,w
	addwf	(___lwmod@counter),f
	goto	l2899
	line	13
	
l1456:	
	line	10
	
l2899:	
	btfss	(___lwmod@divisor+1),(15)&7
	goto	u2451
	goto	u2450
u2451:
	goto	l2895
u2450:
	goto	l2901
	
l1458:	
	goto	l2901
	line	14
	
l1459:	
	line	15
	
l2901:	
	movf	(___lwmod@divisor+1),w
	subwf	(___lwmod@dividend+1),w
	skipz
	goto	u2465
	movf	(___lwmod@divisor),w
	subwf	(___lwmod@dividend),w
u2465:
	skipc
	goto	u2461
	goto	u2460
u2461:
	goto	l2905
u2460:
	line	16
	
l2903:	
	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	l2905
	
l1460:	
	line	17
	
l2905:	
	movlw	01h
	
u2475:
	clrc
	rrf	(___lwmod@divisor+1),f
	rrf	(___lwmod@divisor),f
	addlw	-1
	skipz
	goto	u2475
	line	18
	
l2907:	
	movlw	low(01h)
	subwf	(___lwmod@counter),f
	btfss	status,2
	goto	u2481
	goto	u2480
u2481:
	goto	l2901
u2480:
	goto	l2909
	
l1461:	
	goto	l2909
	line	19
	
l1455:	
	line	20
	
l2909:	
	movf	(___lwmod@dividend+1),w
	clrf	(?___lwmod+1)
	addwf	(?___lwmod+1)
	movf	(___lwmod@dividend),w
	clrf	(?___lwmod)
	addwf	(?___lwmod)

	goto	l1462
	
l2911:	
	line	21
	
l1462:	
	return
	opt stack 0
GLOBAL	__end_of___lwmod
	__end_of___lwmod:
;; =============== function ___lwmod ends ============

	signat	___lwmod,8314
	global	___lwdiv
psect	text231,local,class=CODE,delta=2
global __ptext231
__ptext231:

;; *************** 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	text231
	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 6
; Regs used in ___lwdiv: [wreg+status,2+status,0]
	line	9
	
l2865:	
	clrf	(___lwdiv@quotient)
	clrf	(___lwdiv@quotient+1)
	line	10
	
l2867:	
	movf	(___lwdiv@divisor+1),w
	iorwf	(___lwdiv@divisor),w
	skipnz
	goto	u2361
	goto	u2360
u2361:
	goto	l2887
u2360:
	line	11
	
l2869:	
	clrf	(___lwdiv@counter)
	bsf	status,0
	rlf	(___lwdiv@counter),f
	line	12
	goto	l2875
	
l1447:	
	line	13
	
l2871:	
	movlw	01h
	
u2375:
	clrc
	rlf	(___lwdiv@divisor),f
	rlf	(___lwdiv@divisor+1),f
	addlw	-1
	skipz
	goto	u2375
	line	14
	
l2873:	
	movlw	(01h)
	movwf	(??___lwdiv+0)+0
	movf	(??___lwdiv+0)+0,w
	addwf	(___lwdiv@counter),f
	goto	l2875
	line	15
	
l1446:	
	line	12
	
l2875:	
	btfss	(___lwdiv@divisor+1),(15)&7
	goto	u2381
	goto	u2380
u2381:
	goto	l2871
u2380:
	goto	l2877
	
l1448:	
	goto	l2877
	line	16
	
l1449:	
	line	17
	
l2877:	
	movlw	01h
	
u2395:
	clrc
	rlf	(___lwdiv@quotient),f
	rlf	(___lwdiv@quotient+1),f
	addlw	-1
	skipz
	goto	u2395
	line	18
	movf	(___lwdiv@divisor+1),w
	subwf	(___lwdiv@dividend+1),w
	skipz
	goto	u2405
	movf	(___lwdiv@divisor),w
	subwf	(___lwdiv@dividend),w
u2405:
	skipc
	goto	u2401
	goto	u2400
u2401:
	goto	l2883
u2400:
	line	19
	
l2879:	
	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
	
l2881:	
	bsf	(___lwdiv@quotient)+(0/8),(0)&7
	goto	l2883
	line	21
	
l1450:	
	line	22
	
l2883:	
	movlw	01h
	
u2415:
	clrc
	rrf	(___lwdiv@divisor+1),f
	rrf	(___lwdiv@divisor),f
	addlw	-1
	skipz
	goto	u2415
	line	23
	
l2885:	
	movlw	low(01h)
	subwf	(___lwdiv@counter),f
	btfss	status,2
	goto	u2421
	goto	u2420
u2421:
	goto	l2877
u2420:
	goto	l2887
	
l1451:	
	goto	l2887
	line	24
	
l1445:	
	line	25
	
l2887:	
	movf	(___lwdiv@quotient+1),w
	clrf	(?___lwdiv+1)
	addwf	(?___lwdiv+1)
	movf	(___lwdiv@quotient),w
	clrf	(?___lwdiv)
	addwf	(?___lwdiv)

	goto	l1452
	
l2889:	
	line	26
	
l1452:	
	return
	opt stack 0
GLOBAL	__end_of___lwdiv
	__end_of___lwdiv:
;; =============== function ___lwdiv ends ============

	signat	___lwdiv,8314
	global	_SysInit
psect	text232,local,class=CODE,delta=2
global __ptext232
__ptext232:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 48 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\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
;; 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
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text232
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
	line	48
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 7
; Regs used in _SysInit: [wreg+status,2]
	line	50
	
l2845:	
;test_all_code.c: 50: TRISA = 0X03;
	movlw	(03h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(133)^080h	;volatile
	line	51
;test_all_code.c: 51: TRISB = 0X01;
	movlw	(01h)
	movwf	(134)^080h	;volatile
	line	52
	
l2847:	
;test_all_code.c: 52: PORTB = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	53
	
l2849:	
;test_all_code.c: 53: TRISC = 0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	54
;test_all_code.c: 54: PORTC = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	55
;test_all_code.c: 55: TRISD = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(136)^080h	;volatile
	line	56
;test_all_code.c: 56: PORTD = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(8)	;volatile
	line	57
;test_all_code.c: 57: TRISE = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(137)^080h	;volatile
	line	58
;test_all_code.c: 58: PORTE = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(9)	;volatile
	line	61
	
l2851:	
;test_all_code.c: 61: TXSTA = 0B00100000;
	movlw	(020h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(152)^080h	;volatile
	line	62
	
l2853:	
;test_all_code.c: 62: RCSTA = 0B10010000;
	movlw	(090h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(24)	;volatile
	line	63
	
l2855:	
;test_all_code.c: 63: SPBRG = 25;
	movlw	(019h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(153)^080h	;volatile
	line	64
	
l2857:	
;test_all_code.c: 64: PIE1 = 0B00100000;
	movlw	(020h)
	movwf	(140)^080h	;volatile
	line	65
	
l2859:	
;test_all_code.c: 65: INTCON = 0B11100100;
	movlw	(0E4h)
	movwf	(11)	;volatile
	line	68
	
l2861:	
;test_all_code.c: 68: ADCON0 = 0B00000101;
	movlw	(05h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(31)	;volatile
	line	69
	
l2863:	
;test_all_code.c: 69: ADCON1 = 0B10000000;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(159)^080h	;volatile
	line	71
	
l709:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_putch
psect	text233,local,class=CODE,delta=2
global __ptext233
__ptext233:

;; *************** function _putch *****************
;; Defined at:
;;		line 41 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\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	text233
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
	line	41
	global	__size_of_putch
	__size_of_putch	equ	__end_of_putch-_putch
	
_putch:	
	opt	stack 6
; Regs used in _putch: [wreg]
;putch@byte stored from wreg
	movwf	(putch@byte)
	line	43
	
l2841:	
;test_all_code.c: 43: while (!TRMT)
	goto	l703
	
l704:	
	line	44
;test_all_code.c: 44: continue;
	
l703:	
	line	43
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	btfss	(1217/8)^080h,(1217)&7
	goto	u2351
	goto	u2350
u2351:
	goto	l703
u2350:
	goto	l2843
	
l705:	
	line	45
	
l2843:	
;test_all_code.c: 45: TXREG = byte;
	movf	(putch@byte),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(25)	;volatile
	line	46
	
l706:	
	return
	opt stack 0
GLOBAL	__end_of_putch
	__end_of_putch:
;; =============== function _putch ends ============

	signat	_putch,4216
	global	_flilflop_Enable
psect	text234,local,class=CODE,delta=2
global __ptext234
__ptext234:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 28 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\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	text234
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH05_ADC\test_all_code.c"
	line	28
	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	29
	
l2833:	
;test_all_code.c: 29: 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
	
l2835:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	30
;test_all_code.c: 30: PORTC = Add;
	movf	(flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	31
	
l2837:	
;test_all_code.c: 31: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??_flilflop_Enable+0)+0
	movf	(??_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	32
	
l2839:	
;test_all_code.c: 32: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	33
	
l691:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
psect	text235,local,class=CODE,delta=2
global __ptext235
__ptext235:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
