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,_RelayBuzzTest
	FNCALL	_DeviceInit,_flilflop_Enable
	FNCALL	_RelayBuzzTest,_flilflop_Enable
	FNROOT	_main
	global	_PORTB
psect	text94,local,class=CODE,delta=2
global __ptext94
__ptext94:
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_PORTD
_PORTD	set	8
	global	_PORTE
_PORTE	set	9
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	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 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	?_RelayBuzzTest
?_RelayBuzzTest:	; 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	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	??_RelayBuzzTest
??_RelayBuzzTest:	; 0 bytes @ 0x3
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	ds	3
	global	??_main
??_main:	; 0 bytes @ 0x6
;;Data sizes: Strings 0, constant 0, data 0, bss 0, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      6       6
;; BANK0           80      0       0
;; BANK1           80      0       0
;; BANK3           96      0       0
;; BANK2           96      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_RelayBuzzTest
;;   _DeviceInit->_flilflop_Enable
;;   _RelayBuzzTest->_flilflop_Enable
;;
;; Critical Paths under _main in BANK0
;;
;;   None.
;;
;; 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      60
;;                            _SysInit
;;                         _DeviceInit
;;                      _RelayBuzzTest
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      30
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _RelayBuzzTest                                        3     3      0      30
;;                                              3 COMMON     3     3      0
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      30
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;   _DeviceInit
;;     _flilflop_Enable
;;   _RelayBuzzTest
;;     _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      6       6       1       42.9%
;;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       0       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      0       0       5        0.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       0      12        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 68 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\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 : 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:    2
;; This function calls:
;;		_SysInit
;;		_DeviceInit
;;		_RelayBuzzTest
;; 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\CH02_RelayBuzzer\test_all_code.c"
	line	68
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 6
; Regs used in _main: [wreg+status,2+status,0+pclath+cstack]
	line	69
	
l2633:	
;test_all_code.c: 69: SysInit();
	fcall	_SysInit
	line	70
;test_all_code.c: 70: DeviceInit();
	fcall	_DeviceInit
	line	71
;test_all_code.c: 71: while (1)
	
l699:	
	line	73
;test_all_code.c: 72: {
;test_all_code.c: 73: RelayBuzzTest();
	fcall	_RelayBuzzTest
	goto	l699
	line	74
	
l700:	
	line	71
	goto	l699
	
l701:	
	line	75
	
l702:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_DeviceInit
psect	text95,local,class=CODE,delta=2
global __ptext95
__ptext95:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 56 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\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	text95
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\test_all_code.c"
	line	56
	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	58
	
l2631:	
;test_all_code.c: 58: flilflop_Enable(0X00,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	59
;test_all_code.c: 59: flilflop_Enable(0X01,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	60
;test_all_code.c: 60: flilflop_Enable(0X02,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	61
;test_all_code.c: 61: flilflop_Enable(0X03,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	62
;test_all_code.c: 62: flilflop_Enable(0X04,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	63
;test_all_code.c: 63: flilflop_Enable(0X05,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	64
;test_all_code.c: 64: flilflop_Enable(0X06,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	65
;test_all_code.c: 65: flilflop_Enable(0X07,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	66
	
l696:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_RelayBuzzTest
psect	text96,local,class=CODE,delta=2
global __ptext96
__ptext96:

;; *************** function _RelayBuzzTest *****************
;; Defined at:
;;		line 33 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\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:          3       0       0       0       0
;;      Totals:         3       0       0       0       0
;;Total ram usage:        3 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	text96
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\test_all_code.c"
	line	33
	global	__size_of_RelayBuzzTest
	__size_of_RelayBuzzTest	equ	__end_of_RelayBuzzTest-_RelayBuzzTest
	
_RelayBuzzTest:	
	opt	stack 6
; Regs used in _RelayBuzzTest: [wreg+status,2+status,0+pclath+cstack]
	line	35
	
l2621:	
;test_all_code.c: 35: flilflop_Enable(0X02, 0X00);
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	36
;test_all_code.c: 36: flilflop_Enable(0X05, 0X00);
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	37
	
l2623:	
;test_all_code.c: 37: _delay((unsigned long)((500)*(16000000/4000.0)));
	opt asmopt_off
movlw  11
movwf	((??_RelayBuzzTest+0)+0+2),f
movlw	38
movwf	((??_RelayBuzzTest+0)+0+1),f
	movlw	102
movwf	((??_RelayBuzzTest+0)+0),f
u2227:
	decfsz	((??_RelayBuzzTest+0)+0),f
	goto	u2227
	decfsz	((??_RelayBuzzTest+0)+0+1),f
	goto	u2227
	decfsz	((??_RelayBuzzTest+0)+0+2),f
	goto	u2227
	nop2
opt asmopt_on

	line	38
	
l2625:	
;test_all_code.c: 38: flilflop_Enable(0X02, 0x01);
	clrf	(?_flilflop_Enable)
	bsf	status,0
	rlf	(?_flilflop_Enable),f
	movlw	(02h)
	fcall	_flilflop_Enable
	line	39
	
l2627:	
;test_all_code.c: 39: flilflop_Enable(0X05, 0X80);
	movlw	(080h)
	movwf	(??_RelayBuzzTest+0)+0
	movf	(??_RelayBuzzTest+0)+0,w
	movwf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	40
	
l2629:	
;test_all_code.c: 40: _delay((unsigned long)((500)*(16000000/4000.0)));
	opt asmopt_off
movlw  11
movwf	((??_RelayBuzzTest+0)+0+2),f
movlw	38
movwf	((??_RelayBuzzTest+0)+0+1),f
	movlw	102
movwf	((??_RelayBuzzTest+0)+0),f
u2237:
	decfsz	((??_RelayBuzzTest+0)+0),f
	goto	u2237
	decfsz	((??_RelayBuzzTest+0)+0+1),f
	goto	u2237
	decfsz	((??_RelayBuzzTest+0)+0+2),f
	goto	u2237
	nop2
opt asmopt_on

	line	41
	
l690:	
	return
	opt stack 0
GLOBAL	__end_of_RelayBuzzTest
	__end_of_RelayBuzzTest:
;; =============== function _RelayBuzzTest ends ============

	signat	_RelayBuzzTest,88
	global	_SysInit
psect	text97,local,class=CODE,delta=2
global __ptext97
__ptext97:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 43 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\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	text97
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\test_all_code.c"
	line	43
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 7
; Regs used in _SysInit: [wreg+status,2]
	line	45
	
l1757:	
;test_all_code.c: 45: TRISA = 0X0f;
	movlw	(0Fh)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(133)^080h	;volatile
	line	46
;test_all_code.c: 46: TRISB = 0X01;
	movlw	(01h)
	movwf	(134)^080h	;volatile
	line	47
	
l1759:	
;test_all_code.c: 47: PORTB = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	48
	
l1761:	
;test_all_code.c: 48: TRISC = 0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	49
;test_all_code.c: 49: PORTC = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	50
;test_all_code.c: 50: TRISD = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(136)^080h	;volatile
	line	51
;test_all_code.c: 51: PORTD = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(8)	;volatile
	line	52
;test_all_code.c: 52: TRISE = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(137)^080h	;volatile
	line	53
;test_all_code.c: 53: PORTE = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(9)	;volatile
	line	54
	
l693:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_flilflop_Enable
psect	text98,local,class=CODE,delta=2
global __ptext98
__ptext98:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 25 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\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:
;;		_RelayBuzzTest
;;		_DeviceInit
;; This function uses a non-reentrant model
;;
psect	text98
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH02_RelayBuzzer\test_all_code.c"
	line	25
	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	26
	
l1749:	
;test_all_code.c: 26: PORTD = OuputData;
	movf	(flilflop_Enable@OuputData),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(8)	;volatile
	line	27
	
l1751:	
;test_all_code.c: 27: PORTB |= 0X10;
	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
	
l1753:	
;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
	
l1755:	
;test_all_code.c: 30: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	31
	
l687:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
psect	text99,local,class=CODE,delta=2
global __ptext99
__ptext99:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
