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
# 27 "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	psect config,class=CONFIG,delta=2 ;#
# 27 "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	dw 0xFFFE & 0xFFFB & 0xFFF7 & 0xFFFF ;#
	FNCALL	_main,_DeviceInit
	FNCALL	_main,_DelayMs
	FNCALL	_main,_TestPacket
	FNCALL	_DeviceInit,_flilflop_Enable
	FNCALL	_TestPacket,_TxOut
	FNROOT	_main
	global	_INTCON
psect	text109,local,class=CODE,delta=2
global __ptext109
__ptext109:
_INTCON	set	11
	global	_PORTB
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_PORTD
_PORTD	set	8
	global	_RCSTA
_RCSTA	set	24
	global	_TXREG
_TXREG	set	25
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_PIE1
_PIE1	set	140
	global	_SPBRG
_SPBRG	set	153
	global	_TRISC
_TRISC	set	135
	global	_TXSTA
_TXSTA	set	152
	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
	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	?_DelayMs
?_DelayMs:	; 0 bytes @ 0x0
	global	?_TxOut
?_TxOut:	; 0 bytes @ 0x0
	global	??_TxOut
??_TxOut:	; 0 bytes @ 0x0
	global	?_TestPacket
?_TestPacket:	; 0 bytes @ 0x0
	global	?_flilflop_Enable
?_flilflop_Enable:	; 0 bytes @ 0x0
	global	?_DeviceInit
?_DeviceInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	TxOut@data
TxOut@data:	; 1 bytes @ 0x0
	global	flilflop_Enable@OuputData
flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	global	DelayMs@cnt
DelayMs@cnt:	; 2 bytes @ 0x0
	ds	1
	global	??_TestPacket
??_TestPacket:	; 0 bytes @ 0x1
	global	??_flilflop_Enable
??_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	??_DelayMs
??_DelayMs:	; 0 bytes @ 0x2
	global	flilflop_Enable@Add
flilflop_Enable@Add:	; 1 bytes @ 0x2
	ds	1
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	global	DelayMs@i
DelayMs@i:	; 1 bytes @ 0x3
	ds	1
	global	DelayMs@_dcnt
DelayMs@_dcnt:	; 1 bytes @ 0x4
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0x5
;;Data sizes: Strings 0, constant 0, data 0, bss 0, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      5       5
;; 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->_DelayMs
;;   _DeviceInit->_flilflop_Enable
;;   _TestPacket->_TxOut
;;
;; 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      90
;;                         _DeviceInit
;;                            _DelayMs
;;                         _TestPacket
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      30
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _TestPacket                                           0     0      0      15
;;                              _TxOut
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      30
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; (2) _TxOut                                                1     1      0      15
;;                                              0 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _DelayMs                                              5     3      2      45
;;                                              0 COMMON     5     3      2
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _DeviceInit
;;     _flilflop_Enable
;;   _DelayMs
;;   _TestPacket
;;     _TxOut
;;

;; 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      5       5       1       35.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       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 184 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\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:
;;		_DeviceInit
;;		_DelayMs
;;		_TestPacket
;; 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\CH18_Bluetooth\test_all_code.c"
	line	184
	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	186
	
l2663:	
;test_all_code.c: 186: TRISC=0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	187
;test_all_code.c: 187: TXSTA=0B00100000;
	movlw	(020h)
	movwf	(152)^080h	;volatile
	line	188
;test_all_code.c: 188: RCSTA=0B10010000;
	movlw	(090h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(24)	;volatile
	line	189
;test_all_code.c: 189: SPBRG=25;
	movlw	(019h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(153)^080h	;volatile
	line	190
;test_all_code.c: 190: PIE1=0B00100000;
	movlw	(020h)
	movwf	(140)^080h	;volatile
	line	191
;test_all_code.c: 191: INTCON=0B11100100;
	movlw	(0E4h)
	movwf	(11)	;volatile
	line	193
	
l2665:	
;test_all_code.c: 193: DeviceInit();
	fcall	_DeviceInit
	line	194
	
l2667:	
;test_all_code.c: 194: DelayMs(1000);
	movlw	low(03E8h)
	movwf	(?_DelayMs)
	movlw	high(03E8h)
	movwf	((?_DelayMs))+1
	fcall	_DelayMs
	goto	l2669
	line	196
;test_all_code.c: 196: while(1)
	
l721:	
	line	198
	
l2669:	
;test_all_code.c: 197: {
;test_all_code.c: 198: TestPacket();
	fcall	_TestPacket
	goto	l2669
	line	199
	
l722:	
	line	196
	goto	l2669
	
l723:	
	line	200
	
l724:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_DeviceInit
psect	text110,local,class=CODE,delta=2
global __ptext110
__ptext110:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 172 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\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	text110
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	line	172
	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	174
	
l2661:	
;test_all_code.c: 174: flilflop_Enable(0X00,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	175
;test_all_code.c: 175: flilflop_Enable(0X01,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	176
;test_all_code.c: 176: flilflop_Enable(0X02,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	177
;test_all_code.c: 177: flilflop_Enable(0X03,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	178
;test_all_code.c: 178: flilflop_Enable(0X04,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	179
;test_all_code.c: 179: flilflop_Enable(0X05,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	180
;test_all_code.c: 180: flilflop_Enable(0X06,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	181
;test_all_code.c: 181: flilflop_Enable(0X07,0X00);
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	182
	
l718:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_TestPacket
psect	text111,local,class=CODE,delta=2
global __ptext111
__ptext111:

;; *************** function _TestPacket *****************
;; Defined at:
;;		line 132 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\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:
;;		_TxOut
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text111
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	line	132
	global	__size_of_TestPacket
	__size_of_TestPacket	equ	__end_of_TestPacket-_TestPacket
	
_TestPacket:	
	opt	stack 6
; Regs used in _TestPacket: [wreg+status,2+status,0+pclath+cstack]
	line	133
	
l2659:	
;test_all_code.c: 133: TxOut(0x4c);
	movlw	(04Ch)
	fcall	_TxOut
	line	134
;test_all_code.c: 134: TxOut(0x4b);
	movlw	(04Bh)
	fcall	_TxOut
	line	135
;test_all_code.c: 135: TxOut(0x45);
	movlw	(045h)
	fcall	_TxOut
	line	136
;test_all_code.c: 136: TxOut(0x4d);
	movlw	(04Dh)
	fcall	_TxOut
	line	137
;test_all_code.c: 137: TxOut(0x42);
	movlw	(042h)
	fcall	_TxOut
	line	138
;test_all_code.c: 138: TxOut(0x45);
	movlw	(045h)
	fcall	_TxOut
	line	139
;test_all_code.c: 139: TxOut(0x44);
	movlw	(044h)
	fcall	_TxOut
	line	140
;test_all_code.c: 140: TxOut(0x44);
	movlw	(044h)
	fcall	_TxOut
	line	141
;test_all_code.c: 141: TxOut(0x45);
	movlw	(045h)
	fcall	_TxOut
	line	142
;test_all_code.c: 142: TxOut(0x44);
	movlw	(044h)
	fcall	_TxOut
	line	145
;test_all_code.c: 145: TxOut(0x42);
	movlw	(042h)
	fcall	_TxOut
	line	146
;test_all_code.c: 146: TxOut(0x4C);
	movlw	(04Ch)
	fcall	_TxOut
	line	147
;test_all_code.c: 147: TxOut(0x55);
	movlw	(055h)
	fcall	_TxOut
	line	148
;test_all_code.c: 148: TxOut(0x45);
	movlw	(045h)
	fcall	_TxOut
	line	149
;test_all_code.c: 149: TxOut(0x54);
	movlw	(054h)
	fcall	_TxOut
	line	150
;test_all_code.c: 150: TxOut(0x4F);
	movlw	(04Fh)
	fcall	_TxOut
	line	151
;test_all_code.c: 151: TxOut(0x4F);
	movlw	(04Fh)
	fcall	_TxOut
	line	152
;test_all_code.c: 152: TxOut(0x54);
	movlw	(054h)
	fcall	_TxOut
	line	153
;test_all_code.c: 153: TxOut(0x48);
	movlw	(048h)
	fcall	_TxOut
	line	155
;test_all_code.c: 155: TxOut(0x54);
	movlw	(054h)
	fcall	_TxOut
	line	156
;test_all_code.c: 156: TxOut(0x45);
	movlw	(045h)
	fcall	_TxOut
	line	157
;test_all_code.c: 157: TxOut(0x53);
	movlw	(053h)
	fcall	_TxOut
	line	158
;test_all_code.c: 158: TxOut(0x54);
	movlw	(054h)
	fcall	_TxOut
	line	160
;test_all_code.c: 160: TxOut(0x0D);
	movlw	(0Dh)
	fcall	_TxOut
	line	161
;test_all_code.c: 161: TxOut(0x0A);
	movlw	(0Ah)
	fcall	_TxOut
	line	162
	
l712:	
	return
	opt stack 0
GLOBAL	__end_of_TestPacket
	__end_of_TestPacket:
;; =============== function _TestPacket ends ============

	signat	_TestPacket,88
	global	_flilflop_Enable
psect	text112,local,class=CODE,delta=2
global __ptext112
__ptext112:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 164 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\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	text112
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	line	164
	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	165
	
l1793:	
;test_all_code.c: 165: 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	166
	
l1795:	
;test_all_code.c: 166: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	167
;test_all_code.c: 167: PORTC = Add;
	movf	(flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	168
	
l1797:	
;test_all_code.c: 168: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??_flilflop_Enable+0)+0
	movf	(??_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	169
	
l1799:	
;test_all_code.c: 169: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	170
	
l715:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
	global	_TxOut
psect	text113,local,class=CODE,delta=2
global __ptext113
__ptext113:

;; *************** function _TxOut *****************
;; Defined at:
;;		line 48 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  data            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  data            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:
;;		_TestPacket
;;		_BT_Initailization
;; This function uses a non-reentrant model
;;
psect	text113
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	line	48
	global	__size_of_TxOut
	__size_of_TxOut	equ	__end_of_TxOut-_TxOut
	
_TxOut:	
	opt	stack 6
; Regs used in _TxOut: [wreg]
;TxOut@data stored from wreg
	movwf	(TxOut@data)
	line	49
	
l1783:	
;test_all_code.c: 49: while((TXSTA&0X02==0));
	goto	l1785
	
l698:	
	goto	l1785
	
l697:	
	goto	l1785
	
l699:	
	line	50
	
l1785:	
;test_all_code.c: 50: TXREG=data;
	movf	(TxOut@data),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(25)	;volatile
	line	51
	
l700:	
	return
	opt stack 0
GLOBAL	__end_of_TxOut
	__end_of_TxOut:
;; =============== function _TxOut ends ============

	signat	_TxOut,4216
	global	_DelayMs
psect	text114,local,class=CODE,delta=2
global __ptext114
__ptext114:

;; *************** function _DelayMs *****************
;; Defined at:
;;		line 38 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  cnt             2    0[COMMON] unsigned int 
;; Auto vars:     Size  Location     Type
;;  _dcnt           1    4[COMMON] unsigned char 
;;  i               1    3[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:         2       0       0       0       0
;;      Locals:         2       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         5       0       0       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text114
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH18_Bluetooth\test_all_code.c"
	line	38
	global	__size_of_DelayMs
	__size_of_DelayMs	equ	__end_of_DelayMs-_DelayMs
	
_DelayMs:	
	opt	stack 7
; Regs used in _DelayMs: [wreg+status,2+status,0]
	line	40
	
l1771:	
;test_all_code.c: 39: unsigned char i;
;test_all_code.c: 40: while (cnt--) {
	goto	l1781
	
l686:	
	line	41
	
l1773:	
;test_all_code.c: 41: i=4;
	movlw	(04h)
	movwf	(??_DelayMs+0)+0
	movf	(??_DelayMs+0)+0,w
	movwf	(DelayMs@i)
	line	42
;test_all_code.c: 42: while(i--) {
	goto	l1779
	
l688:	
	line	43
	
l1775:	
;test_all_code.c: 43: { unsigned char _dcnt; _dcnt = (255)*((16*1000L)/(12*1000L)); while(--_dcnt != 0) continue; };
	movlw	(0FFh)
	movwf	(??_DelayMs+0)+0
	movf	(??_DelayMs+0)+0,w
	movwf	(DelayMs@_dcnt)
	goto	l1777
	
l690:	
	goto	l1777
	
l689:	
	
l1777:	
	movlw	low(01h)
	subwf	(DelayMs@_dcnt),f
	btfss	status,2
	goto	u11
	goto	u10
u11:
	goto	l1777
u10:
	goto	l1779
	
l691:	
	goto	l1779
	line	44
	
l687:	
	line	42
	
l1779:	
	movlw	low(01h)
	subwf	(DelayMs@i),f
	movf	((DelayMs@i)),w
	xorlw	0FFh
	skipz
	goto	u21
	goto	u20
u21:
	goto	l1775
u20:
	goto	l1781
	
l692:	
	goto	l1781
	line	45
	
l685:	
	line	40
	
l1781:	
	movlw	low(01h)
	subwf	(DelayMs@cnt),f
	movlw	high(01h)
	skipc
	decf	(DelayMs@cnt+1),f
	subwf	(DelayMs@cnt+1),f
	movlw	high(0FFFFh)
	xorwf	((DelayMs@cnt+1)),w
	skipz
	goto	u35
	movlw	low(0FFFFh)
	xorwf	((DelayMs@cnt)),w
u35:

	skipz
	goto	u31
	goto	u30
u31:
	goto	l1773
u30:
	goto	l694
	
l693:	
	line	46
	
l694:	
	return
	opt stack 0
GLOBAL	__end_of_DelayMs
	__end_of_DelayMs:
;; =============== function _DelayMs ends ============

	signat	_DelayMs,4216
psect	text115,local,class=CODE,delta=2
global __ptext115
__ptext115:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
