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	_DeviceInit,_flilflop_Enable
	FNROOT	_main
	FNCALL	_HIGH_ISR,_LedTest
	FNCALL	_LedTest,i1_flilflop_Enable
	FNCALL	intlevel1,_HIGH_ISR
	global	intlevel1
	FNROOT	intlevel1
	global	HIGH_ISR@cnt
	global	LedTest@output
	global	_INTCON
psect	text192,local,class=CODE,delta=2
global __ptext192
__ptext192:
_INTCON	set	11
	global	_PORTB
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_PORTD
_PORTD	set	8
	global	_PORTE
_PORTE	set	9
	global	_TMR0
_TMR0	set	1
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_OPTION_REG
_OPTION_REG	set	129
	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	_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
	file	"Test.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bssCOMMON,class=COMMON,space=1
global __pbssCOMMON
__pbssCOMMON:
HIGH_ISR@cnt:
       ds      2

LedTest@output:
       ds      1

; Clear objects allocated to COMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbssCOMMON)+0)&07Fh
	clrf	((__pbssCOMMON)+1)&07Fh
	clrf	((__pbssCOMMON)+2)&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	?_LedTest
?_LedTest:	; 0 bytes @ 0x0
	global	?_HIGH_ISR
?_HIGH_ISR:	; 0 bytes @ 0x0
	global	?_SysInit
?_SysInit:	; 0 bytes @ 0x0
	global	?_DeviceInit
?_DeviceInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?i1_flilflop_Enable
?i1_flilflop_Enable:	; 0 bytes @ 0x0
	global	i1flilflop_Enable@OuputData
i1flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	ds	1
	global	??i1_flilflop_Enable
??i1_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	i1flilflop_Enable@Add
i1flilflop_Enable@Add:	; 1 bytes @ 0x2
	ds	1
	global	??_LedTest
??_LedTest:	; 0 bytes @ 0x3
	ds	1
	global	??_HIGH_ISR
??_HIGH_ISR:	; 0 bytes @ 0x4
	ds	5
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	?_flilflop_Enable
?_flilflop_Enable:	; 0 bytes @ 0x0
	global	??_SysInit
??_SysInit:	; 0 bytes @ 0x0
	global	flilflop_Enable@OuputData
flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	ds	1
	global	??_flilflop_Enable
??_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	flilflop_Enable@Add
flilflop_Enable@Add:	; 1 bytes @ 0x2
	ds	1
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	global	??_main
??_main:	; 0 bytes @ 0x3
	global	main@cnt2
main@cnt2:	; 2 bytes @ 0x3
	ds	2
	global	main@cnt
main@cnt:	; 2 bytes @ 0x5
	ds	2
;;Data sizes: Strings 0, constant 0, data 0, bss 3, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      9      12
;; BANK0           80      7       7
;; BANK1           80      0       0
;; BANK3           96      0       0
;; BANK2           96      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in COMMON
;;
;;   _HIGH_ISR->_LedTest
;;   _LedTest->i1_flilflop_Enable
;;
;; Critical Paths under _main in BANK0
;;
;;   _DeviceInit->_flilflop_Enable
;;
;; Critical Paths under _HIGH_ISR in BANK0
;;
;;   None.
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in BANK1
;;
;;   None.
;;
;; Critical Paths under _main in BANK3
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in BANK3
;;
;;   None.
;;
;; Critical Paths under _main in BANK2
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR 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                                                 4     4      0      46
;;                                              3 BANK0      4     4      0
;;                            _SysInit
;;                         _DeviceInit
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      44
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      44
;;                                              0 BANK0      3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (3) _HIGH_ISR                                             5     5      0     146
;;                                              4 COMMON     5     5      0
;;                            _LedTest
;; ---------------------------------------------------------------------------------
;; (4) _LedTest                                              1     1      0     146
;;                                              3 COMMON     1     1      0
;;                  i1_flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (5) i1_flilflop_Enable                                    3     2      1     146
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 5
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;   _DeviceInit
;;     _flilflop_Enable
;;
;; _HIGH_ISR (ROOT)
;;   _LedTest
;;     i1_flilflop_Enable
;;

;; 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      9       C       1       85.7%
;;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       8       2        0.0%
;;ABS                  0      0      13       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      7       7       5        8.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      1B      12        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 79 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;  cnt             2    5[BANK0 ] unsigned int 
;;  cnt2            2    3[BANK0 ] unsigned int 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, 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       4       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       4       0       0       0
;;Total ram usage:        4 bytes
;; Hardware stack levels required when called:    5
;; This function calls:
;;		_SysInit
;;		_DeviceInit
;; 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\CH15_TimerInterrupt\test_all_code.c"
	line	79
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 3
; Regs used in _main: [wreg+status,2+status,0+pclath+cstack]
	line	81
	
l2713:	
;test_all_code.c: 81: unsigned int cnt2 = 0;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(main@cnt2)
	clrf	(main@cnt2+1)
	line	82
;test_all_code.c: 82: unsigned int cnt = 0;
	clrf	(main@cnt)
	clrf	(main@cnt+1)
	line	84
	
l2715:	
;test_all_code.c: 84: SysInit();
	fcall	_SysInit
	line	85
	
l2717:	
;test_all_code.c: 85: DeviceInit();
	fcall	_DeviceInit
	line	87
	
l2719:	
;test_all_code.c: 87: OPTION_REG = 0b00000100;
	movlw	(04h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(129)^080h	;volatile
	line	92
	
l2721:	
;test_all_code.c: 92: INTCON = 0b10100100;
	movlw	(0A4h)
	movwf	(11)	;volatile
	line	95
	
l2723:	
;test_all_code.c: 95: TMR0 = 0X83;
	movlw	(083h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(1)	;volatile
	goto	l706
	line	97
;test_all_code.c: 97: while (1)
	
l705:	
	line	99
;test_all_code.c: 98: {
	
l706:	
	line	97
	goto	l706
	
l707:	
	line	100
	
l708:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_DeviceInit
psect	text193,local,class=CODE,delta=2
global __ptext193
__ptext193:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 66 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\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:    4
;; This function calls:
;;		_flilflop_Enable
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text193
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	66
	global	__size_of_DeviceInit
	__size_of_DeviceInit	equ	__end_of_DeviceInit-_DeviceInit
	
_DeviceInit:	
	opt	stack 3
; Regs used in _DeviceInit: [wreg+status,2+status,0+pclath+cstack]
	line	68
	
l2711:	
;test_all_code.c: 68: flilflop_Enable(0X00,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	69
;test_all_code.c: 69: flilflop_Enable(0X01,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	70
;test_all_code.c: 70: flilflop_Enable(0X02,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	71
;test_all_code.c: 71: flilflop_Enable(0X03,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	72
;test_all_code.c: 72: flilflop_Enable(0X04,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	73
;test_all_code.c: 73: flilflop_Enable(0X05,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	74
;test_all_code.c: 74: flilflop_Enable(0X06,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	75
;test_all_code.c: 75: flilflop_Enable(0X07,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	76
	
l702:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_SysInit
psect	text194,local,class=CODE,delta=2
global __ptext194
__ptext194:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 54 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\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
;; Hardware stack levels required when called:    3
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text194
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	54
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 4
; Regs used in _SysInit: [wreg+status,2]
	line	55
	
l2697:	
;test_all_code.c: 55: TRISA = 0X0f;
	movlw	(0Fh)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(133)^080h	;volatile
	line	56
;test_all_code.c: 56: TRISB = 0X01;
	movlw	(01h)
	movwf	(134)^080h	;volatile
	line	57
	
l2699:	
;test_all_code.c: 57: PORTB = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	58
	
l2701:	
;test_all_code.c: 58: TRISC = 0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	59
;test_all_code.c: 59: PORTC = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	60
;test_all_code.c: 60: TRISD = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(136)^080h	;volatile
	line	61
;test_all_code.c: 61: PORTD = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(8)	;volatile
	line	62
;test_all_code.c: 62: TRISE = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(137)^080h	;volatile
	line	63
;test_all_code.c: 63: PORTE = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(9)	;volatile
	line	64
	
l699:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_flilflop_Enable
psect	text195,local,class=CODE,delta=2
global __ptext195
__ptext195:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 26 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  Add             1    wreg     unsigned char 
;;  OuputData       1    0[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  Add             1    2[BANK0 ] 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:         0       1       0       0       0
;;      Locals:         0       1       0       0       0
;;      Temps:          0       1       0       0       0
;;      Totals:         0       3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_DeviceInit
;; This function uses a non-reentrant model
;;
psect	text195
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	26
	global	__size_of_flilflop_Enable
	__size_of_flilflop_Enable	equ	__end_of_flilflop_Enable-_flilflop_Enable
	
_flilflop_Enable:	
	opt	stack 3
; Regs used in _flilflop_Enable: [wreg+status,2+status,0]
;flilflop_Enable@Add stored from wreg
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(flilflop_Enable@Add)
	line	27
	
l2673:	
;test_all_code.c: 27: PORTD = OuputData;PORTB |= 0X10;
	movf	(flilflop_Enable@OuputData),w
	movwf	(8)	;volatile
	
l2675:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	28
;test_all_code.c: 28: PORTC = Add;
	movf	(flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	29
	
l2677:	
;test_all_code.c: 29: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??_flilflop_Enable+0)+0
	movf	(??_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	30
	
l2679:	
;test_all_code.c: 30: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	31
	
l685:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
	global	_HIGH_ISR
psect	text196,local,class=CODE,delta=2
global __ptext196
__ptext196:

;; *************** function _HIGH_ISR *****************
;; Defined at:
;;		line 39 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\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:          5       0       0       0       0
;;      Totals:         5       0       0       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_LedTest
;; This function is called by:
;;		Interrupt level 1
;; This function uses a non-reentrant model
;;
psect	text196
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	39
	global	__size_of_HIGH_ISR
	__size_of_HIGH_ISR	equ	__end_of_HIGH_ISR-_HIGH_ISR
	
_HIGH_ISR:	
	opt	stack 3
; Regs used in _HIGH_ISR: [wreg+status,2+status,0+pclath+cstack]
psect	intentry,class=CODE,delta=2
global __pintentry
__pintentry:
global interrupt_function
interrupt_function:
	global saved_w
	saved_w	set	btemp+0
	movwf	saved_w
	swapf	status,w
	movwf	(??_HIGH_ISR+1)
	movf	fsr0,w
	movwf	(??_HIGH_ISR+2)
	movf	pclath,w
	movwf	(??_HIGH_ISR+3)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	btemp+1,w
	movwf	(??_HIGH_ISR+4)
	ljmp	_HIGH_ISR
psect	text196
	line	41
	
i1l2685:	
;test_all_code.c: 41: INTCON &= ~0X04;
	movlw	(0FBh)
	movwf	(??_HIGH_ISR+0)+0
	movf	(??_HIGH_ISR+0)+0,w
	andwf	(11),f	;volatile
	line	44
	
i1l2687:	
;test_all_code.c: 43: volatile static unsigned int cnt = 0;
;test_all_code.c: 44: cnt++;
	movlw	low(01h)
	addwf	(HIGH_ISR@cnt),f	;volatile
	skipnc
	incf	(HIGH_ISR@cnt+1),f	;volatile
	movlw	high(01h)
	addwf	(HIGH_ISR@cnt+1),f	;volatile
	line	45
	
i1l2689:	
;test_all_code.c: 45: if (cnt == 500)
	movlw	high(01F4h)
	xorwf	(HIGH_ISR@cnt+1),w	;volatile
	skipz
	goto	u223_25
	movlw	low(01F4h)
	xorwf	(HIGH_ISR@cnt),w	;volatile
u223_25:

	skipz
	goto	u223_21
	goto	u223_20
u223_21:
	goto	i1l2695
u223_20:
	line	47
	
i1l2691:	
;test_all_code.c: 46: {
;test_all_code.c: 47: LedTest();
	fcall	_LedTest
	line	48
	
i1l2693:	
;test_all_code.c: 48: cnt = 0;
	clrf	(HIGH_ISR@cnt)	;volatile
	clrf	(HIGH_ISR@cnt+1)	;volatile
	goto	i1l2695
	line	49
	
i1l695:	
	line	50
	
i1l2695:	
;test_all_code.c: 49: }
;test_all_code.c: 50: TMR0 += 0X83;
	movlw	(083h)
	movwf	(??_HIGH_ISR+0)+0
	movf	(??_HIGH_ISR+0)+0,w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	addwf	(1),f	;volatile
	line	52
	
i1l696:	
	movf	(??_HIGH_ISR+4),w
	movwf	btemp+1
	movf	(??_HIGH_ISR+3),w
	movwf	pclath
	movf	(??_HIGH_ISR+2),w
	movwf	fsr0
	swapf	(??_HIGH_ISR+1)^0FFFFFF80h,w
	movwf	status
	swapf	saved_w,f
	swapf	saved_w,w
	retfie
	opt stack 0
GLOBAL	__end_of_HIGH_ISR
	__end_of_HIGH_ISR:
;; =============== function _HIGH_ISR ends ============

	signat	_HIGH_ISR,88
	global	_LedTest
psect	text197,local,class=CODE,delta=2
global __ptext197
__ptext197:

;; *************** function _LedTest *****************
;; Defined at:
;;		line 33 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\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:          1       0       0       0       0
;;      Totals:         1       0       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		i1_flilflop_Enable
;; This function is called by:
;;		_HIGH_ISR
;; This function uses a non-reentrant model
;;
psect	text197
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	33
	global	__size_of_LedTest
	__size_of_LedTest	equ	__end_of_LedTest-_LedTest
	
_LedTest:	
	opt	stack 3
; Regs used in _LedTest: [wreg+status,2+status,0+pclath+cstack]
	line	35
	
i1l2681:	
;test_all_code.c: 34: static unsigned char output = 0;
;test_all_code.c: 35: output ^= 0xff;
	movlw	(0FFh)
	movwf	(??_LedTest+0)+0
	movf	(??_LedTest+0)+0,w
	xorwf	(LedTest@output),f
	line	36
	
i1l2683:	
;test_all_code.c: 36: flilflop_Enable(0X00,output);
	movf	(LedTest@output),w
	movwf	(??_LedTest+0)+0
	movf	(??_LedTest+0)+0,w
	movwf	(?i1_flilflop_Enable)
	movlw	(0)
	fcall	i1_flilflop_Enable
	line	37
	
i1l690:	
	return
	opt stack 0
GLOBAL	__end_of_LedTest
	__end_of_LedTest:
;; =============== function _LedTest ends ============

	signat	_LedTest,88
	global	i1_flilflop_Enable
psect	text198,local,class=CODE,delta=2
global __ptext198
__ptext198:

;; *************** function i1_flilflop_Enable *****************
;; Defined at:
;;		line 26 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  flilflop_Ena    1    wreg     unsigned char 
;;  flilflop_Ena    1    0[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  flilflop_Ena    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:
;;		_LedTest
;; This function uses a non-reentrant model
;;
psect	text198
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH15_TimerInterrupt\test_all_code.c"
	line	26
	global	__size_ofi1_flilflop_Enable
	__size_ofi1_flilflop_Enable	equ	__end_ofi1_flilflop_Enable-i1_flilflop_Enable
	
i1_flilflop_Enable:	
	opt	stack 3
; Regs used in i1_flilflop_Enable: [wreg+status,2+status,0]
;i1flilflop_Enable@Add stored from wreg
	movwf	(i1flilflop_Enable@Add)
	line	27
	
i1l2703:	
;test_all_code.c: 27: PORTD = OuputData;PORTB |= 0X10;
	movf	(i1flilflop_Enable@OuputData),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(8)	;volatile
	
i1l2705:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	28
;test_all_code.c: 28: PORTC = Add;
	movf	(i1flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	29
	
i1l2707:	
;test_all_code.c: 29: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??i1_flilflop_Enable+0)+0
	movf	(??i1_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	30
	
i1l2709:	
;test_all_code.c: 30: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	31
	
i1l685:	
	return
	opt stack 0
GLOBAL	__end_ofi1_flilflop_Enable
	__end_ofi1_flilflop_Enable:
;; =============== function i1_flilflop_Enable ends ============

	signat	i1_flilflop_Enable,88
psect	text199,local,class=CODE,delta=2
global __ptext199
__ptext199:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
