# LINK COMMAND FILE AUTOMATICALLY GENERATED BY STVD7 # SHOULD NOT BE MANUALLY MODIFIED #
# Put you segment configuration here # define the .share segment when using compact or memory models only #<BEGIN SEGMENT_CONF> # Segment Code,Constants: +seg .text -b 0xf000 -m 0xfff -n .text +seg .const -a .text -n .const # Segment Zero Page: +seg .bsct -b 0x80 -m 0x7f -n .bsct +seg .ubsct -a .bsct -n .ubsct +seg .share -a .ubsct -n .share -is +seg .data -a .share -n .data +seg .bss -a .data -n .bss #<END SEGMENT_CONF>
# Put you startup file here (it depends on the model used) #<BEGIN STARTUP_FILE> crtsx.st7 #<END STARTUP_FILE>
# Put your object files here (they depend on you application) #<BEGIN OBJECT_FILES> Debugcleanermain_stlit15b.o Debugcomfuntion.o Debugeepromrelated.o Debugi2c_drv.o Debugmain.o Debugmotor.o Debugserial.o #<END OBJECT_FILES>
# Put your library name here (it depends on the model used) #<BEGIN LIBRARY_FILES> libic.st7 libm.st7 #<END LIBRARY_FILES>
# Put your interrupt vectors file here if needed #<BEGIN VECTOR_FILE> +seg .const -b 0xffe0 -k Debuginterrupt_vector.o #<END VECTOR_FILE>
#<BEGIN DEFINED_VARIABLES> +def __endzp=@.ubsct # end of uninitialized zpage +def __memory=@.bss # end of bss segment #<END DEFINED_VARIABLES>
这个RAM清零的操作是由启动文件完成,与lkf文件无关,lkf文件是供链接程序使用的。但在lkf文件的这几行中,描述了使用的启动文件: # Put you startup file here (it depends on the model used) #<BEGIN STARTUP_FILE> crtsx.st7 #<END STARTUP_FILE> 这个文件是自动生成的,请不要手动修改,否则无效。