
	; HI-TECH C Compiler for PIC10/12/16 MCUs V9.83
	; Copyright (C) 1984-2011 HI-TECH Software
	;Serial no. HCPICP-567892

	; Auto-generated runtime startup code for final link stage.

	;
	; Compiler options:
	;
	; --chip=16F685 -D__16F685_H --ERRFORMAT=error:%f(%l):(%n) %s \
	; --WARNFORMAT=warnning:%f(%l):(%n) %s \
	; --MSGFORMAT=message:%f(%l):(%n) %s --ASMLIST \
	; -L-preset_vec=00h,intentry=04h,init,end_init \
	; -MD:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\HS16F1211_tmr0.map \
	; -OD:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\HS16F1211_tmr0 \
	; -ID:\Workspace\华芯烧录仿真软件\IDE_V2.1.9.t1.250219\include \
	; -ID:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0 \
	; D:\Workspace\华芯技术支持资料包\HS16F1211开发资料\HS16F1211_cCode\HS16F1211_TMR0\main.c \
	; --OPT=debug
	;


	processor	16F685

	global	_main,start,_exit,reset_vec
	fnroot	_main
	psect	config,class=CONFIG,delta=2
	psect	idloc,class=IDLOC,delta=2
	psect	code,class=CODE,delta=2
	psect	powerup,class=CODE,delta=2
	psect	reset_vec,class=CODE,delta=2
	psect	maintext,class=CODE,delta=2
	C	set	0
	Z	set	2
	PCL	set	2
	INDF	set	0

	STATUS	equ	3
	PCLATH	equ	0Ah

	psect	eeprom_data,class=EEDATA,delta=2,space=2
	psect	intentry,class=CODE,delta=2
	psect	functab,class=CODE,delta=2
	global	intlevel0,intlevel1,intlevel2, intlevel3, intlevel4, intlevel5
intlevel0:
intlevel1:
intlevel2:
intlevel3:
intlevel4:
intlevel5:
	psect	init,class=CODE,delta=2
	psect	cinit,class=CODE,delta=2
	psect	text,class=CODE,delta=2
	psect	end_init,class=CODE,delta=2
	psect	clrtext,class=CODE,delta=2
	FSR	set	4
	psect	strings,class=CODE,delta=2,reloc=256

	psect	reset_vec
reset_vec:
	; No powerup routine
	global start

; jump to start
	goto	start & 0x7FF | (reset_vec & not 0x7FF)



	psect	init
start
_exit
	psect	end_init
	global start_initialization
	ljmp start_initialization	;jump to C runtime clear & initialization

psect bank0,class=BANK0,space=1
psect bank1,class=BANK1,space=1
psect bank2,class=BANK2,space=1
psect bank3,class=BANK3,space=1
psect ram,class=RAM,space=1
psect abs1,class=ABS1,space=1
psect common,class=COMMON,space=1
psect sfr0,class=SFR0,space=1
psect sfr1,class=SFR1,space=1
psect sfr2,class=SFR2,space=1
psect sfr3,class=SFR3,space=1


	end	start
