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
# 16 "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	psect config,class=CONFIG,delta=2 ;#
# 16 "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	dw 0xFFFE & 0xFFFB & 0xFFF7 & 0xFFFF & 0xFFBF & 0xFF7F ;#
	FNCALL	_main,_SysInit
	FNCALL	_main,_FndTest
	FNCALL	_FndTest,___lwmod
	FNROOT	_main
	FNCALL	_HIGH_ISR,_FndTimer
	FNCALL	intlevel1,_HIGH_ISR
	global	intlevel1
	FNROOT	intlevel1
	global	_Num
psect	idataBANK0,class=CODE,space=0,delta=2
global __pidataBANK0
__pidataBANK0:
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	25

;initializer for _Num
	retlw	03Fh
	retlw	06h
	retlw	05Bh
	retlw	04Fh
	retlw	066h
	retlw	06Dh
	retlw	07Dh
	retlw	027h
	retlw	07Fh
	retlw	06Fh
	retlw	0
	global	_CntDelay
	global	FndTimer@cnt2
	global	_FndCnt
	global	FndTest@m
psect	nvBANK0,class=BANK0,space=1
global __pnvBANK0
__pnvBANK0:
FndTest@m:
       ds      2

	global	_INTCON
_INTCON	set	11
	global	_PORTB
_PORTB	set	6
	global	_TMR0
_TMR0	set	1
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_OPTION_REG
_OPTION_REG	set	129
	global	_TRISB
_TRISB	set	134
	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:
FndTimer@cnt2:
       ds      2

_FndCnt:
       ds      2

psect	bssBANK0,class=BANK0,space=1
global __pbssBANK0
__pbssBANK0:
_CntDelay:
       ds      2

psect	dataBANK0,class=BANK0,space=1
global __pdataBANK0
__pdataBANK0:
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
_Num:
       ds      11

; Clear objects allocated to COMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbssCOMMON)+0)&07Fh
	clrf	((__pbssCOMMON)+1)&07Fh
	clrf	((__pbssCOMMON)+2)&07Fh
	clrf	((__pbssCOMMON)+3)&07Fh
; Clear objects allocated to BANK0
psect cinit,class=CODE,delta=2
	clrf	((__pbssBANK0)+0)&07Fh
	clrf	((__pbssBANK0)+1)&07Fh
global btemp
psect inittext,class=CODE,delta=2
global init_fetch,btemp
;	Called with low address in FSR and high address in W
init_fetch:
	movf btemp,w
	movwf pclath
	movf btemp+1,w
	movwf pc
global init_ram
;Called with:
;	high address of idata address in btemp 
;	low address of idata address in btemp+1 
;	low address of data in FSR
;	high address + 1 of data in btemp-1
init_ram:
	fcall init_fetch
	movwf indf,f
	incf fsr,f
	movf fsr,w
	xorwf btemp-1,w
	btfsc status,2
	retlw 0
	incf btemp+1,f
	btfsc status,2
	incf btemp,f
	goto init_ram
; Initialize objects allocated to BANK0
psect cinit,class=CODE,delta=2
global init_ram, __pidataBANK0
	bcf	status, 7	;select IRP bank0
	movlw low(__pdataBANK0+11)
	movwf btemp-1,f
	movlw high(__pidataBANK0)
	movwf btemp,f
	movlw low(__pidataBANK0)
	movwf btemp+1,f
	movlw low(__pdataBANK0)
	movwf fsr,f
	fcall init_ram
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	?_FndTimer
?_FndTimer:	; 0 bytes @ 0x0
	global	??_FndTimer
??_FndTimer:	; 0 bytes @ 0x0
	global	?_HIGH_ISR
?_HIGH_ISR:	; 0 bytes @ 0x0
	global	??_HIGH_ISR
??_HIGH_ISR:	; 0 bytes @ 0x0
	global	?_FndTest
?_FndTest:	; 0 bytes @ 0x0
	global	?_SysInit
?_SysInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	ds	5
	global	??_main
??_main:	; 0 bytes @ 0x5
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	??_SysInit
??_SysInit:	; 0 bytes @ 0x0
	global	?___lwmod
?___lwmod:	; 2 bytes @ 0x0
	global	___lwmod@divisor
___lwmod@divisor:	; 2 bytes @ 0x0
	ds	2
	global	___lwmod@dividend
___lwmod@dividend:	; 2 bytes @ 0x2
	ds	2
	global	??___lwmod
??___lwmod:	; 0 bytes @ 0x4
	ds	1
	global	___lwmod@counter
___lwmod@counter:	; 1 bytes @ 0x5
	ds	1
	global	??_FndTest
??_FndTest:	; 0 bytes @ 0x6
	ds	1
;;Data sizes: Strings 0, constant 0, data 11, bss 6, persistent 2 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      5       9
;; BANK0           80      7      22
;; BANK1           80      0       0
;; BANK3           96      0       0
;; BANK2           96      0       0

;;
;; Pointer list with targets:

;; ?___lwmod	unsigned int  size(1) Largest target is 0
;;


;;
;; Critical Paths under _main in COMMON
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in COMMON
;;
;;   None.
;;
;; Critical Paths under _main in BANK0
;;
;;   _main->_FndTest
;;   _FndTest->___lwmod
;;
;; 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                                                 0     0      0     232
;;                            _SysInit
;;                            _FndTest
;; ---------------------------------------------------------------------------------
;; (1) _FndTest                                              1     1      0     232
;;                                              6 BANK0      1     1      0
;;                            ___lwmod
;; ---------------------------------------------------------------------------------
;; (2) ___lwmod                                              6     2      4     232
;;                                              0 BANK0      6     2      4
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              1     1      0       0
;;                                              0 BANK0      1     1      0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (3) _HIGH_ISR                                             5     5      0       0
;;                                              0 COMMON     5     5      0
;;                           _FndTimer
;; ---------------------------------------------------------------------------------
;; (4) _FndTimer                                             0     0      0       0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 4
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;   _FndTest
;;     ___lwmod
;;
;; _HIGH_ISR (ROOT)
;;   _FndTimer
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BANK3               60      0       0       9        0.0%
;;BITBANK3            60      0       0       8        0.0%
;;SFR3                 0      0       0       4        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;BANK2               60      0       0      11        0.0%
;;BITBANK2            60      0       0      10        0.0%
;;SFR2                 0      0       0       5        0.0%
;;BITSFR2              0      0       0       5        0.0%
;;SFR1                 0      0       0       2        0.0%
;;BITSFR1              0      0       0       2        0.0%
;;BANK1               50      0       0       7        0.0%
;;BITBANK1            50      0       0       6        0.0%
;;CODE                 0      0       0       0        0.0%
;;DATA                 0      0      25      12        0.0%
;;ABS                  0      0      1F       3        0.0%
;;NULL                 0      0       0       0        0.0%
;;STACK                0      0       6       2        0.0%
;;BANK0               50      7      16       5       27.5%
;;BITBANK0            50      0       0       4        0.0%
;;SFR0                 0      0       0       1        0.0%
;;BITSFR0              0      0       0       1        0.0%
;;COMMON               E      5       9       1       64.3%
;;BITCOMMON            E      0       0       0        0.0%
;;EEDATA             100      0       0       0        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 66 in file "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, 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:    4
;; This function calls:
;;		_SysInit
;;		_FndTest
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	66
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 4
; Regs used in _main: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	67
	
l2755:	
;test.c: 67: SysInit();
	fcall	_SysInit
	goto	l2757
	line	68
;test.c: 68: while(1)
	
l709:	
	line	70
	
l2757:	
;test.c: 69: {
;test.c: 70: FndTest();
	fcall	_FndTest
	goto	l2757
	line	71
	
l710:	
	line	68
	goto	l2757
	
l711:	
	line	72
	
l712:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_FndTest
psect	text227,local,class=CODE,delta=2
global __ptext227
__ptext227:

;; *************** function _FndTest *****************
;; Defined at:
;;		line 50 in file "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, 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       1       0       0       0
;;      Totals:         0       1       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		___lwmod
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text227
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	50
	global	__size_of_FndTest
	__size_of_FndTest	equ	__end_of_FndTest-_FndTest
	
_FndTest:	
	opt	stack 4
; Regs used in _FndTest: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	52
	
l2751:	
;test.c: 51: volatile static int m = 0;
;test.c: 52: m = (FndCnt % 10);
	movlw	low(0Ah)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(?___lwmod)
	movlw	high(0Ah)
	movwf	((?___lwmod))+1
	movf	(_FndCnt+1),w	;volatile
	clrf	1+(?___lwmod)+02h
	addwf	1+(?___lwmod)+02h
	movf	(_FndCnt),w	;volatile
	clrf	0+(?___lwmod)+02h
	addwf	0+(?___lwmod)+02h

	fcall	___lwmod
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(1+(?___lwmod)),w
	clrf	(FndTest@m+1)	;volatile
	addwf	(FndTest@m+1)	;volatile
	movf	(0+(?___lwmod)),w
	clrf	(FndTest@m)	;volatile
	addwf	(FndTest@m)	;volatile

	line	53
	
l2753:	
;test.c: 53: PORTB = Num[m]<<1;
	movf	(FndTest@m),w	;volatile
	addlw	_Num&0ffh
	movwf	fsr0
	bcf	status, 7	;select IRP bank0
	movf	indf,w
	movwf	(??_FndTest+0)+0
	addwf	(??_FndTest+0)+0,w
	movwf	(6)	;volatile
	line	55
	
l703:	
	return
	opt stack 0
GLOBAL	__end_of_FndTest
	__end_of_FndTest:
;; =============== function _FndTest ends ============

	signat	_FndTest,88
	global	___lwmod
psect	text228,local,class=CODE,delta=2
global __ptext228
__ptext228:

;; *************** 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    0[BANK0 ] unsigned int 
;;  dividend        2    2[BANK0 ] unsigned int 
;; Auto vars:     Size  Location     Type
;;  counter         1    5[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;                  2    0[BANK0 ] 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:         0       4       0       0       0
;;      Locals:         0       1       0       0       0
;;      Temps:          0       1       0       0       0
;;      Totals:         0       6       0       0       0
;;Total ram usage:        6 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_FndTest
;; This function uses a non-reentrant model
;;
psect	text228
	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 4
; Regs used in ___lwmod: [wreg+status,2+status,0]
	line	8
	
l2729:	
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	(___lwmod@divisor+1),w
	iorwf	(___lwmod@divisor),w
	skipnz
	goto	u2321
	goto	u2320
u2321:
	goto	l2747
u2320:
	line	9
	
l2731:	
	clrf	(___lwmod@counter)
	bsf	status,0
	rlf	(___lwmod@counter),f
	line	10
	goto	l2737
	
l1413:	
	line	11
	
l2733:	
	movlw	01h
	
u2335:
	clrc
	rlf	(___lwmod@divisor),f
	rlf	(___lwmod@divisor+1),f
	addlw	-1
	skipz
	goto	u2335
	line	12
	
l2735:	
	movlw	(01h)
	movwf	(??___lwmod+0)+0
	movf	(??___lwmod+0)+0,w
	addwf	(___lwmod@counter),f
	goto	l2737
	line	13
	
l1412:	
	line	10
	
l2737:	
	btfss	(___lwmod@divisor+1),(15)&7
	goto	u2341
	goto	u2340
u2341:
	goto	l2733
u2340:
	goto	l2739
	
l1414:	
	goto	l2739
	line	14
	
l1415:	
	line	15
	
l2739:	
	movf	(___lwmod@divisor+1),w
	subwf	(___lwmod@dividend+1),w
	skipz
	goto	u2355
	movf	(___lwmod@divisor),w
	subwf	(___lwmod@dividend),w
u2355:
	skipc
	goto	u2351
	goto	u2350
u2351:
	goto	l2743
u2350:
	line	16
	
l2741:	
	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	l2743
	
l1416:	
	line	17
	
l2743:	
	movlw	01h
	
u2365:
	clrc
	rrf	(___lwmod@divisor+1),f
	rrf	(___lwmod@divisor),f
	addlw	-1
	skipz
	goto	u2365
	line	18
	
l2745:	
	movlw	low(01h)
	subwf	(___lwmod@counter),f
	btfss	status,2
	goto	u2371
	goto	u2370
u2371:
	goto	l2739
u2370:
	goto	l2747
	
l1417:	
	goto	l2747
	line	19
	
l1411:	
	line	20
	
l2747:	
	movf	(___lwmod@dividend+1),w
	clrf	(?___lwmod+1)
	addwf	(?___lwmod+1)
	movf	(___lwmod@dividend),w
	clrf	(?___lwmod)
	addwf	(?___lwmod)

	goto	l1418
	
l2749:	
	line	21
	
l1418:	
	return
	opt stack 0
GLOBAL	__end_of___lwmod
	__end_of___lwmod:
;; =============== function ___lwmod ends ============

	signat	___lwmod,8314
	global	_SysInit
psect	text229,local,class=CODE,delta=2
global __ptext229
__ptext229:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 57 in file "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.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
;; 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       1       0       0       0
;;      Totals:         0       1       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text229
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	57
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 5
; Regs used in _SysInit: [wreg+status,2+status,0]
	line	59
	
l2721:	
;test.c: 59: TRISB &= ~((0X01<<1)|(0X01<<2)|(0X01<<3)|(0X01<<4)|(0X01<<5)|(0X01<<6)|(0X01<<7));
	movlw	(01h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(??_SysInit+0)+0
	movf	(??_SysInit+0)+0,w
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	andwf	(134)^080h,f	;volatile
	line	61
	
l2723:	
;test.c: 61: OPTION_REG = 0b01000100;
	movlw	(044h)
	movwf	(129)^080h	;volatile
	line	62
	
l2725:	
;test.c: 62: INTCON = 0b10100100;
	movlw	(0A4h)
	movwf	(11)	;volatile
	line	63
	
l2727:	
;test.c: 63: TMR0 = 0X83;
	movlw	(083h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(1)	;volatile
	line	64
	
l706:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_HIGH_ISR
psect	text230,local,class=CODE,delta=2
global __ptext230
__ptext230:

;; *************** function _HIGH_ISR *****************
;; Defined at:
;;		line 43 in file "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.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:    1
;; This function calls:
;;		_FndTimer
;; This function is called by:
;;		Interrupt level 1
;; This function uses a non-reentrant model
;;
psect	text230
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	43
	global	__size_of_HIGH_ISR
	__size_of_HIGH_ISR	equ	__end_of_HIGH_ISR-_HIGH_ISR
	
_HIGH_ISR:	
	opt	stack 4
; 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	text230
	line	44
	
i1l2681:	
;test.c: 44: INTCON &= ~0X04;
	movlw	(0FBh)
	movwf	(??_HIGH_ISR+0)+0
	movf	(??_HIGH_ISR+0)+0,w
	andwf	(11),f	;volatile
	line	45
	
i1l2683:	
;test.c: 45: CntDelay++;
	movlw	low(01h)
	addwf	(_CntDelay),f	;volatile
	skipnc
	incf	(_CntDelay+1),f	;volatile
	movlw	high(01h)
	addwf	(_CntDelay+1),f	;volatile
	line	46
	
i1l2685:	
;test.c: 46: FndTimer();
	fcall	_FndTimer
	line	47
	
i1l2687:	
;test.c: 47: 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	48
	
i1l698:	
	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	_FndTimer
psect	text231,local,class=CODE,delta=2
global __ptext231
__ptext231:

;; *************** function _FndTimer *****************
;; Defined at:
;;		line 29 in file "D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.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:
;;		_HIGH_ISR
;; This function uses a non-reentrant model
;;
psect	text231
	file	"D:\Product\PIC\LK-PIC-TB16F18F\Firmware\FND_7Segment_Test\test.c"
	line	29
	global	__size_of_FndTimer
	__size_of_FndTimer	equ	__end_of_FndTimer-_FndTimer
	
_FndTimer:	
	opt	stack 4
; Regs used in _FndTimer: [wreg+status,2]
	line	31
	
i1l2671:	
;test.c: 30: volatile static int cnt2 = 0;
;test.c: 31: cnt2++;
	movlw	low(01h)
	addwf	(FndTimer@cnt2),f	;volatile
	skipnc
	incf	(FndTimer@cnt2+1),f	;volatile
	movlw	high(01h)
	addwf	(FndTimer@cnt2+1),f	;volatile
	line	32
;test.c: 32: if (cnt2 == 500)
	movlw	high(01F4h)
	xorwf	(FndTimer@cnt2+1),w	;volatile
	skipz
	goto	u224_25
	movlw	low(01F4h)
	xorwf	(FndTimer@cnt2),w	;volatile
u224_25:

	skipz
	goto	u224_21
	goto	u224_20
u224_21:
	goto	i1l695
u224_20:
	line	34
	
i1l2673:	
;test.c: 33: {
;test.c: 34: cnt2 = 0;
	clrf	(FndTimer@cnt2)	;volatile
	clrf	(FndTimer@cnt2+1)	;volatile
	line	35
	
i1l2675:	
;test.c: 35: FndCnt++;
	movlw	low(01h)
	addwf	(_FndCnt),f	;volatile
	skipnc
	incf	(_FndCnt+1),f	;volatile
	movlw	high(01h)
	addwf	(_FndCnt+1),f	;volatile
	line	36
	
i1l2677:	
;test.c: 36: if (FndCnt == 10)
	movlw	0Ah
	xorwf	(_FndCnt),w	;volatile
	iorwf	(_FndCnt+1),w	;volatile
	skipz
	goto	u225_21
	goto	u225_20
u225_21:
	goto	i1l695
u225_20:
	line	38
	
i1l2679:	
;test.c: 37: {
;test.c: 38: FndCnt = 0;
	clrf	(_FndCnt)	;volatile
	clrf	(_FndCnt+1)	;volatile
	goto	i1l695
	line	39
	
i1l694:	
	goto	i1l695
	line	40
	
i1l693:	
	line	41
	
i1l695:	
	return
	opt stack 0
GLOBAL	__end_of_FndTimer
	__end_of_FndTimer:
;; =============== function _FndTimer ends ============

	signat	_FndTimer,88
psect	text232,local,class=CODE,delta=2
global __ptext232
__ptext232:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
