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,_TC0_Init
	FNCALL	_main,_DelayUs
	FNROOT	_main
	FNCALL	intlevel1,_myIsr
	global	intlevel1
	FNROOT	intlevel1
	global	_modeCnt
	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	_PWMCON
_PWMCON	set	23
	global	_TC0D1
_TC0D1	set	21
	global	_TC0D2
_TC0D2	set	22
	global	_TC0H
_TC0H	set	20
	global	_TC0L
_TC0L	set	17
	global	_TC0M
_TC0M	set	18
	global	_TC0R
_TC0R	set	19
	global	_FGIE
_FGIE	set	95
	global	_FTC0IE
_FTC0IE	set	91
	global	_FTC0IF
_FTC0IF	set	99
	global	_FTC0TR
_FTC0TR	set	151
	global	_TC0IE
_TC0IE	set	91
	global	_OPTION_REG
_OPTION_REG	set	129
	global	_OSCM
_OSCM	set	148
	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
	file	"HS16F1211_TC0.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bssCOMMON,class=COMMON,space=1
global __pbssCOMMON
__pbssCOMMON:
_modeCnt:
       ds      1

; Clear objects allocated to COMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbssCOMMON)+0)&07Fh
psect cinit,class=CODE,delta=2
global end_of_initialization

;End of C runtime variable initialization code

end_of_initialization:
clrf status
ljmp _main	;jump to C main() function
psect	cstackCOMMON,class=COMMON,space=1
global __pcstackCOMMON
__pcstackCOMMON:
	global	?_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	?_TC0_Init
?_TC0_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	??_TC0_Init
??_TC0_Init:	; 0 bytes @ 0x2
	global	??_DelayUs
??_DelayUs:	; 0 bytes @ 0x2
	global	TC0_Init@mode
TC0_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 1, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      3       4
;; BANK0           48      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_TC0_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      90
;;                          _GPIO_Init
;;                      _CLR_BANK0_RAM
;;                      _CLR_BANK1_RAM
;;                           _TC0_Init
;;                            _DelayUs
;; ---------------------------------------------------------------------------------
;; (1) _DelayUs                                              1     1      0      15
;;                                              2 COMMON     1     1      0
;; ---------------------------------------------------------------------------------
;; (1) _TC0_Init                                             1     1      0      75
;;                                              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
;;   _TC0_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       4       1       28.6%
;;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       4       3        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;SFR3                 0      0       0       4        0.0%
;;DATA                 0      0       5       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 103 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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
;;		_TC0_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_TC0\main.c"
	line	103
	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	104
	
l1382:	
;main.c: 104: GPIO_Init();
	fcall	_GPIO_Init
	line	105
	
l1384:	
;main.c: 105: CLR_BANK0_RAM();
	fcall	_CLR_BANK0_RAM
	line	106
	
l1386:	
;main.c: 106: CLR_BANK1_RAM();
	fcall	_CLR_BANK1_RAM
	line	108
;main.c: 108: TC0_Init(0x00);
	movlw	(0)
	fcall	_TC0_Init
	line	119
	
l1388:	
# 119 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
clrwdt ;#
psect	maintext
	line	120
	
l1390:	
;main.c: 120: PORTA = PORTA^0xff;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	comf	(5),f	;volatile
	line	122
;main.c: 122: DelayUs(1);
	movlw	(01h)
	fcall	_DelayUs
	goto	l1388
	global	start
	ljmp	start
	opt stack 0
psect	maintext
	line	127
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 366 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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_TC0\main.c"
	line	366
	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	367
	
l1378:	
;main.c: 367: while(delayUs--);
	
l1380:	
	decf	(DelayUs@delayUs),f
	movf	((DelayUs@delayUs)),w
	xorlw	0FFh
	skipz
	goto	u81
	goto	u80
u81:
	goto	l1380
u80:
	line	368
	
l899:	
	return
	opt stack 0
GLOBAL	__end_of_DelayUs
	__end_of_DelayUs:
;; =============== function _DelayUs ends ============

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

;; *************** function _TC0_Init *****************
;; Defined at:
;;		line 139 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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_TC0\main.c"
	line	139
	global	__size_of_TC0_Init
	__size_of_TC0_Init	equ	__end_of_TC0_Init-_TC0_Init
	
_TC0_Init:	
	opt	stack 6
; Regs used in _TC0_Init: [wreg+status,2+status,0]
;TC0_Init@mode stored from wreg
	movwf	(TC0_Init@mode)
	line	140
	
l1310:	
;main.c: 140: if(mode == 0x00)
	movf	(TC0_Init@mode),f
	skipz
	goto	u31
	goto	u30
u31:
	goto	l1322
u30:
	line	147
	
l1312:	
;main.c: 141: {
;main.c: 147: TC0L = 58;
	movlw	(03Ah)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(17)	;volatile
	line	151
;main.c: 151: TC0R = 58;
	movlw	(03Ah)
	movwf	(19)	;volatile
	line	153
	
l1314:	
;main.c: 153: PWMCON = 0x00;
	clrf	(23)	;volatile
	line	161
	
l1316:	
;main.c: 161: TC0M = 0x48;
	movlw	(048h)
	movwf	(18)	;volatile
	line	169
	
l1318:	
;main.c: 169: FTC0IF = 0;
	bcf	(99/8),(99)&7
	line	170
	
l1320:	
;main.c: 170: FTC0IE = 1;
	bsf	(91/8),(91)&7
	line	171
;main.c: 171: }
	goto	l877
	line	172
	
l1322:	
;main.c: 172: else if(mode == 0x01)
	decf	(TC0_Init@mode),w
	skipz
	goto	u41
	goto	u40
u41:
	goto	l1334
u40:
	line	179
	
l1324:	
;main.c: 173: {
;main.c: 179: TC0L = (0xff-1000)%256;
	movlw	(017h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(17)	;volatile
	line	180
;main.c: 180: TC0H = (0xff-1000)/256;
	movlw	(0FEh)
	movwf	(20)	;volatile
	line	185
	
l1326:	
;main.c: 185: PWMCON = 0x00;
	clrf	(23)	;volatile
	line	193
	
l1328:	
;main.c: 193: TC0M = 0x74;
	movlw	(074h)
	movwf	(18)	;volatile
	goto	l1318
	line	198
	
l1334:	
;main.c: 198: else if(mode == 0x02)
	movf	(TC0_Init@mode),w
	xorlw	02h
	skipz
	goto	u51
	goto	u50
u51:
	goto	l1346
u50:
	line	204
	
l1336:	
;main.c: 199: {
;main.c: 204: TC0L = 56;
	movlw	(038h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(17)	;volatile
	line	208
;main.c: 208: TC0R = 56;
	movlw	(038h)
	movwf	(19)	;volatile
	line	210
	
l1338:	
;main.c: 210: PWMCON = 0x00;
	clrf	(23)	;volatile
	line	218
	
l1340:	
;main.c: 218: TC0M = 0x7a;
	movlw	(07Ah)
	movwf	(18)	;volatile
	line	220
	
l1342:	
;main.c: 220: FTC0IF = 0;
	bcf	(99/8),(99)&7
	line	221
	
l1344:	
;main.c: 221: TC0IE = 1;
	bsf	(91/8),(91)&7
	line	222
;main.c: 222: }
	goto	l877
	line	223
	
l1346:	
;main.c: 223: else if(mode == 0x03)
	movf	(TC0_Init@mode),w
	xorlw	03h
	skipz
	goto	u61
	goto	u60
u61:
	goto	l877
u60:
	line	230
	
l1348:	
;main.c: 224: {
;main.c: 230: TC0L = 0x00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(17)	;volatile
	line	232
	
l1350:	
;main.c: 232: TC0H = 0x30;
	movlw	(030h)
	movwf	(20)	;volatile
	line	233
	
l1352:	
;main.c: 233: TC0D1= 0x80;
	movlw	(080h)
	movwf	(21)	;volatile
	line	234
	
l1354:	
;main.c: 234: TC0D2= 0xc0;
	movlw	(0C0h)
	movwf	(22)	;volatile
	line	235
	
l1356:	
;main.c: 235: TC0R = 0x00;
	clrf	(19)	;volatile
	line	237
;main.c: 237: PWMCON = 0x03;
	movlw	(03h)
	movwf	(23)	;volatile
	line	245
;main.c: 245: TC0M = 0x71;
	movlw	(071h)
	movwf	(18)	;volatile
	goto	l1318
	line	250
	
l877:	
;main.c: 249: }
;main.c: 250: if(mode == 0x04)
	movf	(TC0_Init@mode),w
	xorlw	04h
	skipz
	goto	u71
	goto	u70
u71:
	goto	l1374
u70:
	line	257
	
l1362:	
;main.c: 251: {
;main.c: 257: TC0L = 0x156;
	movlw	(056h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(17)	;volatile
	line	263
	
l1364:	
;main.c: 263: PWMCON = 0x00;
	clrf	(23)	;volatile
	line	271
	
l1366:	
;main.c: 271: TC0M = 0x70;
	movlw	(070h)
	movwf	(18)	;volatile
	line	273
	
l1368:	
;main.c: 273: FTC0IF = 0;
	bcf	(99/8),(99)&7
	line	274
	
l1370:	
;main.c: 274: FTC0IE = 1;
	bsf	(91/8),(91)&7
	line	276
	
l1372:	
;main.c: 276: OSCM = 0x10;
	movlw	(010h)
	bsf	status, 5	;RP0=1, select bank1
	movwf	(148)^080h	;volatile
	line	279
	
l1374:	
;main.c: 277: }
;main.c: 279: FTC0TR = 1;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	bsf	(151/8),(151)&7
	line	280
	
l1376:	
;main.c: 280: FGIE = 1;
	bsf	(95/8),(95)&7
	line	281
	
l884:	
	return
	opt stack 0
GLOBAL	__end_of_TC0_Init
	__end_of_TC0_Init:
;; =============== function _TC0_Init ends ============

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

;; *************** function _CLR_BANK1_RAM *****************
;; Defined at:
;;		line 347 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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_TC0\main.c"
	line	347
	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	349
	
l1308:	
# 349 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVLW (0x80 | 03FH) ;#
	line	350
# 350 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVWF _FSR ;#
	line	351
# 351 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVLW 020H ;#
	line	352
# 352 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVWF 020H ;#
	line	354
# 354 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 BANK1_RAM_CLR_LOOP: ;#
	line	355
# 355 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 CLRF _INDF ;#
	line	356
# 356 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 DECF _FSR,F ;#
	line	357
# 357 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 DECFSZ 020H,F ;#
	line	358
# 358 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 GOTO BANK1_RAM_CLR_LOOP ;#
	line	359
# 359 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 RETURN ;#
psect	text75
	line	361
	
l893:	
	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 326 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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_TC0\main.c"
	line	326
	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	328
	
l1306:	
# 328 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVLW 0X5F ;#
	line	329
# 329 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVWF 020H ;#
	line	330
# 330 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVLW 0X7F ;#
	line	331
# 331 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 MOVWF _FSR ;#
	line	333
# 333 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 BANK0_RAM_CLR_LOOP: ;#
	line	334
# 334 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 CLRF _INDF ;#
	line	335
# 335 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 DECF _FSR,F ;#
	line	336
# 336 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 DECFSZ 020H,F ;#
	line	337
# 337 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\main.c"
 GOTO BANK0_RAM_CLR_LOOP ;#
psect	text76
	line	339
	
l890:	
	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 287 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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_TC0\main.c"
	line	287
	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	288
	
l1280:	
;main.c: 288: OPTION_REG= 0b000000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(129)^080h	;volatile
	line	296
	
l1282:	
;main.c: 296: PCON = 0b00100000;
	movlw	(020h)
	movwf	(142)^080h	;volatile
	line	302
	
l1284:	
;main.c: 302: PORTA = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(5)	;volatile
	line	303
	
l1286:	
;main.c: 303: TRISA = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(133)^080h	;volatile
	line	304
	
l1288:	
;main.c: 304: PAHCON= 0b11111111;
	movlw	(0FFh)
	movwf	(146)^080h	;volatile
	line	305
	
l1290:	
;main.c: 305: PADCON= 0b11111111;
	movlw	(0FFh)
	movwf	(147)^080h	;volatile
	line	306
	
l1292:	
;main.c: 306: PAIC0 = 0b00000000;
	clrf	(144)^080h	;volatile
	line	308
;main.c: 308: PDCON = 0b11111111;
	movlw	(0FFh)
	bcf	status, 5	;RP0=0, select bank0
	movwf	(14)	;volatile
	line	309
;main.c: 309: PDCON2= 0b11111111;
	movlw	(0FFh)
	bsf	status, 5	;RP0=1, select bank1
	movwf	(147)^080h	;volatile
	line	311
	
l1294:	
;main.c: 311: PORTB = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(6)	;volatile
	line	312
	
l1296:	
;main.c: 312: TRISB = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(134)^080h	;volatile
	line	313
	
l1298:	
;main.c: 313: PBIC0 = 0b00000000;
	clrf	(145)^080h	;volatile
	line	314
	
l1300:	
;main.c: 314: WUCON = 0b00000000;
	clrf	(143)^080h	;volatile
	line	315
	
l1302:	
;main.c: 315: ODCON = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(15)	;volatile
	line	316
	
l1304:	
;main.c: 316: PHCON = 0b11111111;
	movlw	(0FFh)
	movwf	(16)	;volatile
	line	318
	
l887:	
	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 22 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_TC0\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
;; 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_TC0\main.c"
	line	22
	global	__size_of_myIsr
	__size_of_myIsr	equ	__end_of_myIsr-_myIsr
	
_myIsr:	
	opt	stack 6
; Regs used in _myIsr: [wreg+status,2+status,0]
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	23
	
i1l1268:	
;main.c: 23: if(FTC0IF)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfss	(99/8),(99)&7
	goto	u1_21
	goto	u1_20
u1_21:
	goto	i1l847
u1_20:
	line	25
	
i1l1270:	
;main.c: 24: {
;main.c: 25: FTC0IF = 0;
	bcf	(99/8),(99)&7
	line	27
	
i1l1272:	
;main.c: 27: TC0L = 158;
	movlw	(09Eh)
	movwf	(17)	;volatile
	line	36
	
i1l1274:	
;main.c: 36: PORTB = PORTB^0xc0;
	movlw	(0C0h)
	xorwf	(6),f	;volatile
	line	37
;main.c: 37: modeCnt++;
	incf	(_modeCnt),f
	line	38
	
i1l1276:	
;main.c: 38: if(modeCnt>2)
	movlw	(03h)
	subwf	(_modeCnt),w
	skipc
	goto	u2_21
	goto	u2_20
u2_21:
	goto	i1l847
u2_20:
	line	40
	
i1l1278:	
;main.c: 42: PWM_MODE = PWM_MODE&0x0f;
	clrf	(_modeCnt)
	line	45
	
i1l847:	
	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
