I am using keil uvision2 and C51. I want to split the resulting hex file into 2 parts . please how is it possible?
Your requirement is unclear. Using the RANGE directive in OHX51 should do the job. But you really may want something different. Maybe this: http://www.keil.com/appnotes/docs/apnt_180.asp
For general hex (and other format) file manipulation, see http://srecord.sourceforge.net