opt subtitle "HI-TECH Software Omniscient Code Generator (PRO mode) build 10920"

opt pagewidth 120

	opt pm

	processor	16F685
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,_GPIO_Init
	FNCALL	_main,_CLR_BANK0_RAM
	FNCALL	_main,_CLR_BANK1_RAM
	FNCALL	_main,_TP0_Init
	FNCALL	_main,_DelayUs
	FNROOT	_main
	FNCALL	intlevel1,_myIsr
	global	intlevel1
	FNROOT	intlevel1
	global	_FSR
psect	text72,local,class=CODE,delta=2
global __ptext72
__ptext72:
_FSR	set	4
	global	_INDF
_INDF	set	0
	global	_ODCON
_ODCON	set	15
	global	_PDCON
_PDCON	set	14
	global	_PHCON
_PHCON	set	16
	global	_PORTA
_PORTA	set	5
	global	_PORTB
_PORTB	set	6
	global	_FGIE
_FGIE	set	95
	global	_FTP0IE
_FTP0IE	set	92
	global	_FTP0IF
_FTP0IF	set	100
	global	_OPTION_REG
_OPTION_REG	set	129
	global	_PADCON
_PADCON	set	147
	global	_PAHCON
_PAHCON	set	146
	global	_PAIC0
_PAIC0	set	144
	global	_PBIC0
_PBIC0	set	145
	global	_PCON
_PCON	set	142
	global	_PDCON2
_PDCON2	set	147
	global	_TRISA
_TRISA	set	133
	global	_TRISB
_TRISB	set	134
	global	_WUCON
_WUCON	set	143
	global	_PWM0C
_PWM0C	set	274
	global	_PWM0DH
_PWM0DH	set	280
	global	_PWM0DL
_PWM0DL	set	279
	global	_PWM0DTH
_PWM0DTH	set	282
	global	_PWM0DTL
_PWM0DTL	set	281
	global	_PWM0EN
_PWM0EN	set	273
	global	_PWM0PH
_PWM0PH	set	278
	global	_PWM0PL
_PWM0PL	set	277
	global	_PWM0TH
_PWM0TH	set	276
	global	_PWM0TL
_PWM0TL	set	275
	global	_PWM1DH
_PWM1DH	set	285
	global	_PWM1DL
_PWM1DL	set	284
	global	_PWMPSCON
_PWMPSCON	set	283
	file	"HS16F1211_TP0.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	?_GPIO_Init
?_GPIO_Init:	; 0 bytes @ 0x0
	global	?_CLR_BANK0_RAM
?_CLR_BANK0_RAM:	; 0 bytes @ 0x0
	global	?_CLR_BANK1_RAM
?_CLR_BANK1_RAM:	; 0 bytes @ 0x0
	global	?_TP0_Init
?_TP0_Init:	; 0 bytes @ 0x0
	global	?_DelayUs
?_DelayUs:	; 0 bytes @ 0x0
	global	?_myIsr
?_myIsr:	; 0 bytes @ 0x0
	global	??_myIsr
??_myIsr:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	ds	2
	global	??_GPIO_Init
??_GPIO_Init:	; 0 bytes @ 0x2
	global	??_CLR_BANK0_RAM
??_CLR_BANK0_RAM:	; 0 bytes @ 0x2
	global	??_CLR_BANK1_RAM
??_CLR_BANK1_RAM:	; 0 bytes @ 0x2
	global	??_TP0_Init
??_TP0_Init:	; 0 bytes @ 0x2
	global	??_DelayUs
??_DelayUs:	; 0 bytes @ 0x2
	global	TP0_Init@mode
TP0_Init@mode:	; 1 bytes @ 0x2
	global	DelayUs@delayUs
DelayUs@delayUs:	; 1 bytes @ 0x2
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0x3
;;Data sizes: Strings 0, constant 0, data 0, bss 0, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      3       3
;; BANK0           48      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_TP0_Init
;;   _main->_DelayUs
;;
;; Critical Paths under _myIsr in COMMON
;;
;;   None.
;;
;; Critical Paths under _main in BANK0
;;
;;   None.
;;
;; Critical Paths under _myIsr in BANK0
;;
;;   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      75
;;                          _GPIO_Init
;;                      _CLR_BANK0_RAM
;;                      _CLR_BANK1_RAM
;;                           _TP0_Init
;;                            _DelayUs
;; ---------------------------------------------------------------------------------
;; (1) _DelayUs                                              1     1      0      15
;;                                              2 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _TP0_Init                                             1     1      0      60
;;                                              2 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _CLR_BANK1_RAM                                        0     0      0       0
;; ---------------------------------------------------------------------------------
;; (1) _CLR_BANK0_RAM                                        0     0      0       0
;; ---------------------------------------------------------------------------------
;; (1) _GPIO_Init                                            0     0      0       0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 1
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (2) _myIsr                                                2     2      0       0
;;                                              0 COMMON     2     2      0
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _GPIO_Init
;;   _CLR_BANK0_RAM
;;   _CLR_BANK1_RAM
;;   _TP0_Init
;;   _DelayUs
;;
;; _myIsr (ROOT)
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BITCOMMON            E      0       0       0        0.0%
;;NULL                 0      0       0       0        0.0%
;;CODE                 0      0       0       0        0.0%
;;COMMON               E      3       3       1       21.4%
;;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       1       2        0.0%
;;ABS                  0      0       0       3        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;SFR3                 0      0       0       4        0.0%
;;DATA                 0      0       0       4        0.0%
;;BITBANK0            30      0       0       5        0.0%
;;BITSFR2              0      0       0       5        0.0%
;;SFR2                 0      0       0       5        0.0%
;;BANK0               30      0       0       6        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 36 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.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  : 60/0
;;		Unchanged: FFE00/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         0       0
;;      Temps:          0       0
;;      Totals:         0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_GPIO_Init
;;		_CLR_BANK0_RAM
;;		_CLR_BANK1_RAM
;;		_TP0_Init
;;		_DelayUs
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	36
	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	37
	
l1324:	
;main.c: 37: GPIO_Init();
	fcall	_GPIO_Init
	line	38
	
l1326:	
;main.c: 38: CLR_BANK0_RAM();
	fcall	_CLR_BANK0_RAM
	line	39
	
l1328:	
;main.c: 39: CLR_BANK1_RAM();
	fcall	_CLR_BANK1_RAM
	line	44
;main.c: 44: TP0_Init(0x03);
	movlw	(03h)
	fcall	_TP0_Init
	line	48
	
l1330:	
# 48 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
clrwdt ;#
psect	maintext
	line	49
	
l1332:	
;main.c: 49: PORTA = PORTA^0xff;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	comf	(5),f	;volatile
	line	51
;main.c: 51: DelayUs(1);
	movlw	(01h)
	fcall	_DelayUs
	goto	l1330
	global	start
	ljmp	start
	opt stack 0
psect	maintext
	line	53
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_DelayUs
psect	text73,local,class=CODE,delta=2
global __ptext73
__ptext73:

;; *************** function _DelayUs *****************
;; Defined at:
;;		line 311 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
;; Parameters:    Size  Location     Type
;;  delayUs         1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  delayUs         1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 60/0
;;		On exit  : 60/0
;;		Unchanged: FFF9F/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         1       0
;;      Temps:          0       0
;;      Totals:         1       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text73
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	311
	global	__size_of_DelayUs
	__size_of_DelayUs	equ	__end_of_DelayUs-_DelayUs
	
_DelayUs:	
	opt	stack 6
; Regs used in _DelayUs: [wreg+status,2+status,0]
;DelayUs@delayUs stored from wreg
	movwf	(DelayUs@delayUs)
	line	312
	
l1320:	
;main.c: 312: while(delayUs--);
	
l1322:	
	decf	(DelayUs@delayUs),f
	movf	((DelayUs@delayUs)),w
	xorlw	0FFh
	skipz
	goto	u61
	goto	u60
u61:
	goto	l1322
u60:
	line	313
	
l871:	
	return
	opt stack 0
GLOBAL	__end_of_DelayUs
	__end_of_DelayUs:
;; =============== function _DelayUs ends ============

	signat	_DelayUs,4216
	global	_TP0_Init
psect	text74,local,class=CODE,delta=2
global __ptext74
__ptext74:

;; *************** function _TP0_Init *****************
;; Defined at:
;;		line 65 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
;; Parameters:    Size  Location     Type
;;  mode            1    wreg     unsigned char 
;; Auto vars:     Size  Location     Type
;;  mode            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  : 60/0
;;		Unchanged: FFF9F/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         1       0
;;      Temps:          0       0
;;      Totals:         1       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text74
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	65
	global	__size_of_TP0_Init
	__size_of_TP0_Init	equ	__end_of_TP0_Init-_TP0_Init
	
_TP0_Init:	
	opt	stack 6
; Regs used in _TP0_Init: [wreg+status,2+status,0]
;TP0_Init@mode stored from wreg
	movwf	(TP0_Init@mode)
	line	66
	
l1274:	
;main.c: 66: if(mode == 0x00)
	movf	(TP0_Init@mode),f
	skipz
	goto	u21
	goto	u20
u21:
	goto	l1282
u20:
	line	73
	
l1276:	
;main.c: 67: {
;main.c: 73: PWM0TH = 0X00;
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	clrf	(276)^0100h	;volatile
	line	74
	
l1278:	
;main.c: 74: PWM0TL = 56;
	movlw	(038h)
	movwf	(275)^0100h	;volatile
	line	77
	
l1280:	
;main.c: 77: PWMPSCON = 0X00;
	clrf	(283)^0100h	;volatile
	line	83
;main.c: 83: PWM0C = 0x43;
	movlw	(043h)
	movwf	(274)^0100h	;volatile
	line	90
;main.c: 90: PWM0EN = 0x80;
	movlw	(080h)
	movwf	(273)^0100h	;volatile
	line	104
;main.c: 104: }
	goto	l1314
	line	105
	
l1282:	
;main.c: 105: else if(mode == 0x01)
	decf	(TP0_Init@mode),w
	skipz
	goto	u31
	goto	u30
u31:
	goto	l1290
u30:
	line	113
	
l1284:	
;main.c: 106: {
;main.c: 113: PWM0TH = 0X08;
	movlw	(08h)
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	movwf	(276)^0100h	;volatile
	line	114
	
l1286:	
;main.c: 114: PWM0TL = 0x00;
	clrf	(275)^0100h	;volatile
	line	116
	
l1288:	
;main.c: 116: PWMPSCON = 0X00;
	clrf	(283)^0100h	;volatile
	line	123
;main.c: 123: PWM0C = 0xC1;
	movlw	(0C1h)
	movwf	(274)^0100h	;volatile
	line	129
;main.c: 129: PWM0EN = 0xA0;
	movlw	(0A0h)
	movwf	(273)^0100h	;volatile
	line	142
;main.c: 142: }
	goto	l1314
	line	143
	
l1290:	
;main.c: 143: else if(mode == 0x02)
	movf	(TP0_Init@mode),w
	xorlw	02h
	skipz
	goto	u41
	goto	u40
u41:
	goto	l1306
u40:
	line	153
	
l1292:	
;main.c: 144: {
;main.c: 153: PWM0DTH= 0X00;
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	clrf	(282)^0100h	;volatile
	line	154
	
l1294:	
;main.c: 154: PWM0DTL= 0X10;
	movlw	(010h)
	movwf	(281)^0100h	;volatile
	line	156
	
l1296:	
;main.c: 156: PWM0DH = 0x0F;
	movlw	(0Fh)
	movwf	(280)^0100h	;volatile
	line	157
	
l1298:	
;main.c: 157: PWM0DL = 0x60;
	movlw	(060h)
	movwf	(279)^0100h	;volatile
	line	159
	
l1300:	
;main.c: 159: PWM0PH = 0X0F;
	movlw	(0Fh)
	movwf	(278)^0100h	;volatile
	line	160
;main.c: 160: PWM0PL = 0x00;
	clrf	(277)^0100h	;volatile
	line	163
;main.c: 163: PWMPSCON = 0X00;
	clrf	(283)^0100h	;volatile
	line	168
	
l1302:	
;main.c: 168: PWM0C = 0x43;
	movlw	(043h)
	movwf	(274)^0100h	;volatile
	line	174
	
l1304:	
;main.c: 174: PWM0EN = 0x87;
	movlw	(087h)
	movwf	(273)^0100h	;volatile
	line	182
;main.c: 182: }
	goto	l1314
	line	183
	
l1306:	
;main.c: 183: else if(mode == 0x03)
	movf	(TP0_Init@mode),w
	xorlw	03h
	skipz
	goto	u51
	goto	u50
u51:
	goto	l852
u50:
	line	190
	
l1308:	
;main.c: 184: {
;main.c: 190: PWM1DH = 0X0f;
	movlw	(0Fh)
	bcf	status, 5	;RP0=0, select bank2
	bsf	status, 6	;RP1=1, select bank2
	movwf	(285)^0100h	;volatile
	line	191
;main.c: 191: PWM1DL = 0X30;
	movlw	(030h)
	movwf	(284)^0100h	;volatile
	line	193
;main.c: 193: PWM0DTH= 0X0f;
	movlw	(0Fh)
	movwf	(282)^0100h	;volatile
	line	194
;main.c: 194: PWM0DTL= 0X10;
	movlw	(010h)
	movwf	(281)^0100h	;volatile
	line	196
;main.c: 196: PWM0DH = 0x0F;
	movlw	(0Fh)
	movwf	(280)^0100h	;volatile
	line	197
;main.c: 197: PWM0DL = 0xC0;
	movlw	(0C0h)
	movwf	(279)^0100h	;volatile
	line	199
;main.c: 199: PWM0PH = 0X0f;
	movlw	(0Fh)
	movwf	(278)^0100h	;volatile
	line	200
	
l1310:	
;main.c: 200: PWM0PL = 0x00;
	clrf	(277)^0100h	;volatile
	line	202
	
l1312:	
;main.c: 202: PWMPSCON = 0X00;
	clrf	(283)^0100h	;volatile
	line	207
;main.c: 207: PWM0C = 0x43;
	movlw	(043h)
	movwf	(274)^0100h	;volatile
	line	213
;main.c: 213: PWM0EN = 0x9f;
	movlw	(09Fh)
	movwf	(273)^0100h	;volatile
	goto	l1314
	line	222
	
l852:	
	
l1314:	
;main.c: 221: }
;main.c: 222: FTP0IF = 0;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	bcf	(100/8),(100)&7
	line	223
	
l1316:	
;main.c: 223: FTP0IE = 1;
	bsf	(92/8),(92)&7
	line	225
	
l1318:	
;main.c: 225: FGIE = 1;
	bsf	(95/8),(95)&7
	line	226
	
l856:	
	return
	opt stack 0
GLOBAL	__end_of_TP0_Init
	__end_of_TP0_Init:
;; =============== function _TP0_Init ends ============

	signat	_TP0_Init,4216
	global	_CLR_BANK1_RAM
psect	text75,local,class=CODE,delta=2
global __ptext75
__ptext75:

;; *************** function _CLR_BANK1_RAM *****************
;; Defined at:
;;		line 291 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		None
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: FFE00/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         0       0
;;      Temps:          0       0
;;      Totals:         0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text75
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	291
	global	__size_of_CLR_BANK1_RAM
	__size_of_CLR_BANK1_RAM	equ	__end_of_CLR_BANK1_RAM-_CLR_BANK1_RAM
	
_CLR_BANK1_RAM:	
	opt	stack 6
; Regs used in _CLR_BANK1_RAM: []
	line	293
	
l1272:	
# 293 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVLW (0x80 | 03FH) ;#
	line	294
# 294 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVWF _FSR ;#
	line	295
# 295 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVLW 020H ;#
	line	296
# 296 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVWF 020H ;#
	line	298
# 298 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 BANK1_RAM_CLR_LOOP: ;#
	line	299
# 299 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 CLRF _INDF ;#
	line	300
# 300 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 DECF _FSR,F ;#
	line	301
# 301 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 DECFSZ 020H,F ;#
	line	302
# 302 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 GOTO BANK1_RAM_CLR_LOOP ;#
	line	303
# 303 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 RETURN ;#
psect	text75
	line	305
	
l865:	
	return
	opt stack 0
GLOBAL	__end_of_CLR_BANK1_RAM
	__end_of_CLR_BANK1_RAM:
;; =============== function _CLR_BANK1_RAM ends ============

	signat	_CLR_BANK1_RAM,88
	global	_CLR_BANK0_RAM
psect	text76,local,class=CODE,delta=2
global __ptext76
__ptext76:

;; *************** function _CLR_BANK0_RAM *****************
;; Defined at:
;;		line 270 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		None
;; Tracked objects:
;;		On entry : 17F/0
;;		On exit  : 0/0
;;		Unchanged: FFE00/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         0       0
;;      Temps:          0       0
;;      Totals:         0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text76
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	270
	global	__size_of_CLR_BANK0_RAM
	__size_of_CLR_BANK0_RAM	equ	__end_of_CLR_BANK0_RAM-_CLR_BANK0_RAM
	
_CLR_BANK0_RAM:	
	opt	stack 6
; Regs used in _CLR_BANK0_RAM: []
	line	272
	
l1270:	
# 272 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVLW 0X5F ;#
	line	273
# 273 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVWF 020H ;#
	line	274
# 274 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVLW 0X7F ;#
	line	275
# 275 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 MOVWF _FSR ;#
	line	277
# 277 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 BANK0_RAM_CLR_LOOP: ;#
	line	278
# 278 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 CLRF _INDF ;#
	line	279
# 279 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 DECF _FSR,F ;#
	line	280
# 280 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 DECFSZ 020H,F ;#
	line	281
# 281 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
 GOTO BANK0_RAM_CLR_LOOP ;#
psect	text76
	line	283
	
l862:	
	return
	opt stack 0
GLOBAL	__end_of_CLR_BANK0_RAM
	__end_of_CLR_BANK0_RAM:
;; =============== function _CLR_BANK0_RAM ends ============

	signat	_CLR_BANK0_RAM,88
	global	_GPIO_Init
psect	text77,local,class=CODE,delta=2
global __ptext77
__ptext77:

;; *************** function _GPIO_Init *****************
;; Defined at:
;;		line 231 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.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 : 17F/0
;;		On exit  : 17F/0
;;		Unchanged: FFE80/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         0       0
;;      Temps:          0       0
;;      Totals:         0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text77
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	231
	global	__size_of_GPIO_Init
	__size_of_GPIO_Init	equ	__end_of_GPIO_Init-_GPIO_Init
	
_GPIO_Init:	
	opt	stack 6
; Regs used in _GPIO_Init: [wreg+status,2]
	line	232
	
l1244:	
;main.c: 232: OPTION_REG= 0b000000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(129)^080h	;volatile
	line	240
	
l1246:	
;main.c: 240: PCON = 0b00100000;
	movlw	(020h)
	movwf	(142)^080h	;volatile
	line	246
	
l1248:	
;main.c: 246: PORTA = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(5)	;volatile
	line	247
	
l1250:	
;main.c: 247: TRISA = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(133)^080h	;volatile
	line	248
	
l1252:	
;main.c: 248: PAHCON= 0b11111111;
	movlw	(0FFh)
	movwf	(146)^080h	;volatile
	line	249
	
l1254:	
;main.c: 249: PADCON= 0b11111111;
	movlw	(0FFh)
	movwf	(147)^080h	;volatile
	line	250
	
l1256:	
;main.c: 250: PAIC0 = 0b00000000;
	clrf	(144)^080h	;volatile
	line	252
;main.c: 252: PDCON = 0b11111111;
	movlw	(0FFh)
	bcf	status, 5	;RP0=0, select bank0
	movwf	(14)	;volatile
	line	253
;main.c: 253: PDCON2= 0b11111111;
	movlw	(0FFh)
	bsf	status, 5	;RP0=1, select bank1
	movwf	(147)^080h	;volatile
	line	255
	
l1258:	
;main.c: 255: PORTB = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(6)	;volatile
	line	256
	
l1260:	
;main.c: 256: TRISB = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(134)^080h	;volatile
	line	257
	
l1262:	
;main.c: 257: PBIC0 = 0b00000000;
	clrf	(145)^080h	;volatile
	line	258
	
l1264:	
;main.c: 258: WUCON = 0b00000000;
	clrf	(143)^080h	;volatile
	line	259
	
l1266:	
;main.c: 259: ODCON = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(15)	;volatile
	line	260
	
l1268:	
;main.c: 260: PHCON = 0b11111111;
	movlw	(0FFh)
	movwf	(16)	;volatile
	line	262
	
l859:	
	return
	opt stack 0
GLOBAL	__end_of_GPIO_Init
	__end_of_GPIO_Init:
;; =============== function _GPIO_Init ends ============

	signat	_GPIO_Init,88
	global	_myIsr
psect	text78,local,class=CODE,delta=2
global __ptext78
__ptext78:

;; *************** function _myIsr *****************
;; Defined at:
;;		line 19 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		None
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 60/0
;;		Unchanged: FFF9F/0
;; Data sizes:     COMMON   BANK0
;;      Params:         0       0
;;      Locals:         0       0
;;      Temps:          2       0
;;      Totals:         2       0
;;Total ram usage:        2 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		Interrupt level 1
;; This function uses a non-reentrant model
;;
psect	text78
	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TP0\main.c"
	line	19
	global	__size_of_myIsr
	__size_of_myIsr	equ	__end_of_myIsr-_myIsr
	
_myIsr:	
	opt	stack 6
; Regs used in _myIsr: []
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	(??_myIsr+0)
	movf	pclath,w
	movwf	(??_myIsr+1)
	ljmp	_myIsr
psect	text78
	line	20
	
i1l1240:	
;main.c: 20: if(FTP0IF)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfss	(100/8),(100)&7
	goto	u1_21
	goto	u1_20
u1_21:
	goto	i1l840
u1_20:
	line	22
	
i1l1242:	
;main.c: 21: {
;main.c: 22: FTP0IF = 0;
	bcf	(100/8),(100)&7
	line	30
;main.c: 30: PORTB = PORTB^0xff;
	comf	(6),f	;volatile
	line	32
	
i1l840:	
	movf	(??_myIsr+1),w
	movwf	pclath
	swapf	(??_myIsr+0)^0FFFFFF80h,w
	movwf	status
	swapf	saved_w,f
	swapf	saved_w,w
	retfie
	opt stack 0
GLOBAL	__end_of_myIsr
	__end_of_myIsr:
;; =============== function _myIsr ends ============

	signat	_myIsr,88
psect	text79,local,class=CODE,delta=2
global __ptext79
__ptext79:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
