##
#******************************************************************************
#COPYRIGHT 2003 STMicroelectronics
#Source File Name : st72f62.lkf
#Group            : IPSW, CMG - IPDF
#Author           : MCD Application Team
#Date First Issued: 15/03/2002
#********************************Documentation*********************************
#General Purpose - Linker file
#********************************RevisionHistory*******************************
#______________________________________________________________________________
#Date :15/03/2002 	Release:1.0
#Date:14/08/2003        Release: 2.0 
#                       1. Added LIB_PT for library location
#                       2. Added common reg file structure     
#******************************************************************************/
#
+seg .text -b 0xe000 -n .text		# program start address
+seg .const -a .text			    # constants follow code
+seg .bsct -b 0x40 		            # zero page start address
+seg .ubsct -n iram			        # uninitialized zero page
+seg .data -b 0x180 -m 0xb0

#------------------------------------------------------------------------------
# define the .share segment when using compact or memory models only (c,m,ml)
#------------------------------------------------------------------------------
+seg .share -a iram -is		  	    # shared segment

			                	   
"C:\COSMIC\ST7\Lib\crtsi.st7"       # startup routine      

# application program
..\..\object\cosmic\main.o
..\..\object\cosmic\adc.o

#------------------------------------------------------------------------------ 
# float and integer library names depend on the model used
#------------------------------------------------------------------------------
"C:\Cosmic\ST7\Lib\libic.st7"
"C:\Cosmic\ST7\Lib\libm.st7"
#------------------------------------------------------------------------------
# interrupt vectors
#------------------------------------------------------------------------------
+seg .const -b 0xffe0 -n vector_62  -k
..\..\object\cosmic\vector_62.o

#------------------------------------------------------------------------------
# define the __stack symbol for stack models only
#------------------------------------------------------------------------------
+def __stack=0x17f			    # stack page (stack models)

#------------------------------------------------------------------------------
# define these symbols if crtsi or crtsx is used
#------------------------------------------------------------------------------
+def __endzp=@.ubsct			# end @ of uninitialized zpage
+def __memory=@.bss			    # end @ of bss segment
 
#******************* (c) 2003  ST Microelectronics *********** END OF FILE ***