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,_TMR0_Init
	FNROOT	_main
	FNCALL	intlevel1,_myIsr
	global	intlevel1
	FNROOT	intlevel1
	global	_TMR0_Mode
	global	_u8Temp
	global	_F_OPTION_Updata
	global	_FSR
psect	text71,local,class=CODE,delta=2
global __ptext71
__ptext71:
_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	_TMR0
_TMR0	set	1
	global	_FGIE
_FGIE	set	95
	global	_FT0IE
_FT0IE	set	88
	global	_FT0IF
_FT0IF	set	96
	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
	file	"HS16F1211_tmr0.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bitbssCOMMON,class=COMMON,bit,space=1
global __pbitbssCOMMON
__pbitbssCOMMON:
_F_OPTION_Updata:
       ds      1

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

_u8Temp:
       ds      1

; Clear objects allocated to BITCOMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbitbssCOMMON/8)+0)&07Fh
; Clear objects allocated to COMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbssCOMMON)+0)&07Fh
	clrf	((__pbssCOMMON)+1)&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	?_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	?_TMR0_Init
?_TMR0_Init:	; 0 bytes @ 0x2
	global	TMR0_Init@frq
TMR0_Init@frq:	; 1 bytes @ 0x2
	ds	1
	global	TMR0_Init@tmr0_valInit
TMR0_Init@tmr0_valInit:	; 1 bytes @ 0x3
	ds	1
	global	??_TMR0_Init
??_TMR0_Init:	; 0 bytes @ 0x4
	global	TMR0_Init@clkSelect
TMR0_Init@clkSelect:	; 1 bytes @ 0x4
	ds	1
	global	??_main
??_main:	; 0 bytes @ 0x5
;;Data sizes: Strings 0, constant 0, data 0, bss 2, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      5       8
;; BANK0           80      0       0
;; BANK1           32      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   _main->_TMR0_Init
;;
;; Critical Paths under _myIsr in COMMON
;;
;;   None.
;;
;; Critical Paths under _main in BANK0
;;
;;   None.
;;
;; Critical Paths under _myIsr in BANK0
;;
;;   None.
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _myIsr in BANK1
;;
;;   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      45
;;                          _GPIO_Init
;;                      _CLR_BANK0_RAM
;;                      _CLR_BANK1_RAM
;;                          _TMR0_Init
;; ---------------------------------------------------------------------------------
;; (1) _CLR_BANK1_RAM                                        0     0      0       0
;; ---------------------------------------------------------------------------------
;; (1) _CLR_BANK0_RAM                                        0     0      0       0
;; ---------------------------------------------------------------------------------
;; (1) _GPIO_Init                                            0     0      0       0
;; ---------------------------------------------------------------------------------
;; (1) _TMR0_Init                                            3     1      2      45
;;                                              2 COMMON     3     1      2
;; ---------------------------------------------------------------------------------
;; 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
;;   _TMR0_Init
;;
;; _myIsr (ROOT)
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BITCOMMON            E      0       1       0        7.1%
;;NULL                 0      0       0       0        0.0%
;;CODE                 0      0       0       0        0.0%
;;COMMON               E      5       8       1       57.1%
;;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       8       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            20      0       0       6        0.0%
;;BANK1               20      0       0       7        0.0%
;;DATA                 0      0       9       8        0.0%

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

;; *************** function _main *****************
;; Defined at:
;;		line 81 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.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  : 60/0
;;		Unchanged: FFE00/0
;; Data sizes:     COMMON   BANK0   BANK1
;;      Params:         0       0       0
;;      Locals:         0       0       0
;;      Temps:          0       0       0
;;      Totals:         0       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
;;		_TMR0_Init
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	81
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 6
; Regs used in _main: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	82
	
l1309:	
;main.c: 82: GPIO_Init();
	fcall	_GPIO_Init
	line	83
	
l1311:	
;main.c: 83: CLR_BANK0_RAM();
	fcall	_CLR_BANK0_RAM
	line	84
	
l1313:	
;main.c: 84: CLR_BANK1_RAM();
	fcall	_CLR_BANK1_RAM
	line	87
;main.c: 87: TMR0_Init(0,0,200);
	clrf	(?_TMR0_Init)
	movlw	(0C8h)
	movwf	0+(?_TMR0_Init)+01h
	movlw	(0)
	fcall	_TMR0_Init
	line	92
	
l1315:	
;main.c: 90: {
;main.c: 92: PORTA = PORTA^0xff;
	bcf	status, 5	;RP0=0, select bank0
	comf	(5),f	;volatile
	line	95
	
l1317:	
;main.c: 95: if(F_OPTION_Updata)
	btfss	(_F_OPTION_Updata/8),(_F_OPTION_Updata)&7
	goto	u41
	goto	u40
u41:
	goto	l1315
u40:
	line	97
	
l1319:	
;main.c: 96: {
;main.c: 97: F_OPTION_Updata = 0;
	bcf	(_F_OPTION_Updata/8),(_F_OPTION_Updata)&7
	line	98
	
l1321:	
;main.c: 98: TMR0_Mode++;
	incf	(_TMR0_Mode),f
	line	99
;main.c: 99: switch(TMR0_Mode)
	goto	l1351
	line	101
	
l1323:	
	clrf	(_TMR0_Mode)
	line	102
	
l1325:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	
l1327:	
	movf	(129)^080h,w	;volatile
	goto	l1315
	line	103
	
l1329:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	
l1331:	
	bsf	(129)^080h+(0/8),(0)&7	;volatile
	goto	l1315
	line	104
	
l1333:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	
l1335:	
	bsf	(129)^080h+(1/8),(1)&7	;volatile
	goto	l1315
	line	105
	
l1337:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	movlw	(03h)
	iorwf	(129)^080h,f	;volatile
	goto	l1315
	line	107
	
l1339:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	
l1341:	
	bsf	(129)^080h+(2/8),(2)&7	;volatile
	goto	l1315
	line	108
	
l1343:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	movlw	(05h)
	iorwf	(129)^080h,f	;volatile
	goto	l1315
	line	109
	
l1345:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	movlw	(06h)
	iorwf	(129)^080h,f	;volatile
	goto	l1315
	line	110
	
l1347:	
	movlw	(0F8h)
	bsf	status, 5	;RP0=1, select bank1
	andwf	(129)^080h,f	;volatile
	movlw	(07h)
	iorwf	(129)^080h,f	;volatile
	goto	l1315
	line	99
	
l1351:	
	movf	(_TMR0_Mode),w
	; Switch size 1, requested type "space"
; Number of cases is 8, Range of values is 0 to 7
; switch strategies available:
; Name         Instructions Cycles
; direct_byte           14     6 (fixed)
; simple_byte           25    13 (average)
; jumptable            260     6 (fixed)
; rangetable            12     6 (fixed)
; spacedrange           22     9 (fixed)
; locatedrange           8     3 (fixed)
;	Chosen strategy is direct_byte

	movwf fsr
	movlw	8
	subwf	fsr,w
skipnc
goto l1323
movlw high(S1389)
movwf pclath
	movlw low(S1389)
	addwf fsr,w
	movwf pc
psect	swtext1,local,class=CONST,delta=2
global __pswtext1
__pswtext1:
S1389:
	ljmp	l1325
	ljmp	l1329
	ljmp	l1333
	ljmp	l1337
	ljmp	l1339
	ljmp	l1343
	ljmp	l1345
	ljmp	l1347
psect	maintext

	global	start
	ljmp	start
	opt stack 0
psect	maintext
	line	115
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_CLR_BANK1_RAM
psect	text72,local,class=CODE,delta=2
global __ptext72
__ptext72:

;; *************** function _CLR_BANK1_RAM *****************
;; Defined at:
;;		line 180 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\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   BANK1
;;      Params:         0       0       0
;;      Locals:         0       0       0
;;      Temps:          0       0       0
;;      Totals:         0       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	text72
	file	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	180
	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	182
	
l1307:	
# 182 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVLW (0x80 | 03FH) ;#
	line	183
# 183 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVWF _FSR ;#
	line	184
# 184 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVLW 020H ;#
	line	185
# 185 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVWF 020H ;#
	line	187
# 187 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 BANK1_RAM_CLR_LOOP: ;#
	line	188
# 188 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 CLRF _INDF ;#
	line	189
# 189 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 DECF _FSR,F ;#
	line	190
# 190 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 DECFSZ 020H,F ;#
	line	191
# 191 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 GOTO BANK1_RAM_CLR_LOOP ;#
	line	192
# 192 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 RETURN ;#
psect	text72
	line	194
	
l874:	
	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	text73,local,class=CODE,delta=2
global __ptext73
__ptext73:

;; *************** function _CLR_BANK0_RAM *****************
;; Defined at:
;;		line 159 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\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   BANK1
;;      Params:         0       0       0
;;      Locals:         0       0       0
;;      Temps:          0       0       0
;;      Totals:         0       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	text73
	file	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	159
	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	161
	
l1305:	
# 161 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVLW 0X5F ;#
	line	162
# 162 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVWF 020H ;#
	line	163
# 163 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVLW 0X7F ;#
	line	164
# 164 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 MOVWF _FSR ;#
	line	166
# 166 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 BANK0_RAM_CLR_LOOP: ;#
	line	167
# 167 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 CLRF _INDF ;#
	line	168
# 168 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 DECF _FSR,F ;#
	line	169
# 169 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 DECFSZ 020H,F ;#
	line	170
# 170 "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
 GOTO BANK0_RAM_CLR_LOOP ;#
psect	text73
	line	172
	
l871:	
	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	text74,local,class=CODE,delta=2
global __ptext74
__ptext74:

;; *************** function _GPIO_Init *****************
;; Defined at:
;;		line 120 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\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   BANK1
;;      Params:         0       0       0
;;      Locals:         0       0       0
;;      Temps:          0       0       0
;;      Totals:         0       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	text74
	file	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	120
	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	121
	
l1279:	
;main.c: 121: OPTION_REG= 0b000000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(129)^080h	;volatile
	line	129
	
l1281:	
;main.c: 129: PCON = 0b00100000;
	movlw	(020h)
	movwf	(142)^080h	;volatile
	line	135
	
l1283:	
;main.c: 135: PORTA = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(5)	;volatile
	line	136
	
l1285:	
;main.c: 136: TRISA = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(133)^080h	;volatile
	line	137
	
l1287:	
;main.c: 137: PAHCON= 0b11111111;
	movlw	(0FFh)
	movwf	(146)^080h	;volatile
	line	138
	
l1289:	
;main.c: 138: PADCON= 0b11111111;
	movlw	(0FFh)
	movwf	(147)^080h	;volatile
	line	139
	
l1291:	
;main.c: 139: PAIC0 = 0b00000000;
	clrf	(144)^080h	;volatile
	line	141
;main.c: 141: PDCON = 0b11111111;
	movlw	(0FFh)
	bcf	status, 5	;RP0=0, select bank0
	movwf	(14)	;volatile
	line	142
;main.c: 142: PDCON2= 0b11111111;
	movlw	(0FFh)
	bsf	status, 5	;RP0=1, select bank1
	movwf	(147)^080h	;volatile
	line	144
	
l1293:	
;main.c: 144: PORTB = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(6)	;volatile
	line	145
	
l1295:	
;main.c: 145: TRISB = 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	clrf	(134)^080h	;volatile
	line	146
	
l1297:	
;main.c: 146: PBIC0 = 0b00000000;
	clrf	(145)^080h	;volatile
	line	147
	
l1299:	
;main.c: 147: WUCON = 0b00000000;
	clrf	(143)^080h	;volatile
	line	148
	
l1301:	
;main.c: 148: ODCON = 0b00000000;
	bcf	status, 5	;RP0=0, select bank0
	clrf	(15)	;volatile
	line	149
	
l1303:	
;main.c: 149: PHCON = 0b11111111;
	movlw	(0FFh)
	movwf	(16)	;volatile
	line	151
	
l868:	
	return
	opt stack 0
GLOBAL	__end_of_GPIO_Init
	__end_of_GPIO_Init:
;; =============== function _GPIO_Init ends ============

	signat	_GPIO_Init,88
	global	_TMR0_Init
psect	text75,local,class=CODE,delta=2
global __ptext75
__ptext75:

;; *************** function _TMR0_Init *****************
;; Defined at:
;;		line 59 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
;; Parameters:    Size  Location     Type
;;  clkSelect       1    wreg     unsigned char 
;;  frq             1    2[COMMON] unsigned char 
;;  tmr0_valInit    1    3[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  clkSelect       1    4[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   BANK1
;;      Params:         2       0       0
;;      Locals:         1       0       0
;;      Temps:          0       0       0
;;      Totals:         3       0       0
;;Total ram usage:        3 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	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	59
	global	__size_of_TMR0_Init
	__size_of_TMR0_Init	equ	__end_of_TMR0_Init-_TMR0_Init
	
_TMR0_Init:	
	opt	stack 6
; Regs used in _TMR0_Init: [wreg+status,2+status,0]
;TMR0_Init@clkSelect stored from wreg
	movwf	(TMR0_Init@clkSelect)
	line	60
	
l1265:	
;main.c: 60: OPTION_REG= 0b00000000;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(129)^080h	;volatile
	line	68
	
l1267:	
;main.c: 68: if(clkSelect) OPTION_REG |= 0x08;
	movf	(TMR0_Init@clkSelect),w
	skipz
	goto	u30
	goto	l1271
u30:
	
l1269:	
	bsf	(129)^080h+(3/8),(3)&7	;volatile
	line	71
	
l1271:	
;main.c: 71: OPTION_REG |= frq;
	movf	(TMR0_Init@frq),w
	iorwf	(129)^080h,f	;volatile
	line	73
;main.c: 73: TMR0 = 256 - tmr0_valInit;
	movf	(TMR0_Init@tmr0_valInit),w
	sublw	0
	bcf	status, 5	;RP0=0, select bank0
	movwf	(1)	;volatile
	line	74
	
l1273:	
;main.c: 74: FT0IF = 0;
	bcf	(96/8),(96)&7
	line	75
	
l1275:	
;main.c: 75: FT0IE = 1;
	bsf	(88/8),(88)&7
	line	76
	
l1277:	
;main.c: 76: FGIE = 1;
	bsf	(95/8),(95)&7
	line	77
	
l847:	
	return
	opt stack 0
GLOBAL	__end_of_TMR0_Init
	__end_of_TMR0_Init:
;; =============== function _TMR0_Init ends ============

	signat	_TMR0_Init,12408
	global	_myIsr
psect	text76,local,class=CODE,delta=2
global __ptext76
__ptext76:

;; *************** function _myIsr *****************
;; Defined at:
;;		line 24 in file "D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\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   BANK1
;;      Params:         0       0       0
;;      Locals:         0       0       0
;;      Temps:          2       0       0
;;      Totals:         2       0       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	text76
	file	"D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c"
	line	24
	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	text76
	line	25
	
i1l1249:	
;main.c: 25: if(FT0IF)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	btfss	(96/8),(96)&7
	goto	u1_21
	goto	u1_20
u1_21:
	goto	i1l843
u1_20:
	line	27
	
i1l1251:	
;main.c: 26: {
;main.c: 27: FT0IF = 0;
	bcf	(96/8),(96)&7
	line	28
	
i1l1253:	
;main.c: 28: TMR0 = 256-200;
	movlw	(038h)
	movwf	(1)	;volatile
	line	29
	
i1l1255:	
;main.c: 29: PORTB = PORTB^0xff;
	comf	(6),f	;volatile
	line	30
	
i1l1257:	
;main.c: 30: u8Temp++;
	incf	(_u8Temp),f
	line	31
	
i1l1259:	
;main.c: 31: if(u8Temp>=3)
	movlw	(03h)
	subwf	(_u8Temp),w
	skipc
	goto	u2_21
	goto	u2_20
u2_21:
	goto	i1l843
u2_20:
	line	33
	
i1l1261:	
;main.c: 32: {
;main.c: 33: u8Temp = 0;
	clrf	(_u8Temp)
	line	34
	
i1l1263:	
;main.c: 34: F_OPTION_Updata = 1;
	bsf	(_F_OPTION_Updata/8),(_F_OPTION_Updata)&7
	line	37
	
i1l843:	
	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	text77,local,class=CODE,delta=2
global __ptext77
__ptext77:
	global	btemp
	btemp set 07Eh

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