
/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/LDROMF51.H__   1.2.1.4   17 Apr 1997 15:54:40   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/LDROMF51.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 15:54:40   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:25:56   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:36:32   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:16:16   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:21:22   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:31:34   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:47:28   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:16:04   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 12:59:20   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:17:58   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:29:30   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 09:56:34   ZJRD
** No change.
** 
**    Rev 1.7.1.1   28 Aug 1996 15:52:22   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:55:54   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.5   05 Jun 1996 14:58:54   ZJRD
** No change.
** 
**    Rev 1.4   29 May 1996 09:31:28   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:04:44   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:13:36   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:24:10   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:53:18   Shirley
** No change.
** 
**    Rev 1.30   12 Apr 1996 10:40:08   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.28   15 Feb 1996 08:53:48   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:09:04   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:35:30   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:49:46   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:14:16   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:20:10   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:20:04   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:38:54   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:27:44   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:09:40   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:15:56   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:11:28   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:08:56   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:31:42   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:18:22   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:24:04   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:32:14   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:34:18   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:44:14   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:05:08   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:51:02   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:44:46   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:32:02   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:47:54   Shirley
** No change.
** 
**    Rev 1.4   13 Oct 1995 13:20:14   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:50:44   Shirley
** No change.
** 
**    Rev 1.2   20 Sep 1995 10:53:28   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:48:10   Shirley
** No change.
** 
**    Rev 1.0   07 Sep 1995 09:54:30   Shirley
** Initial revision.
**
****************************************************************************/

/****************************************************************************
**
**  Name:  LDROMF51.H
**
**  Description:
**      All OMF51 API's (external entry points) have the prefix: LdrOmf51
**      Major header file used by OMF51 Loader.
**
**  Status:  CODED
**
**    Rev 1.0   20 May 1995 12:00:00   Gates Hua
** Initial revision.
**
**  Copyright (C) 1995 Microtek International.  All rights reserved.
**
*****************************************************************************/
#ifndef _LDROMF51_H_
#define _LDROMF51_H_
                       /****************************
                        *                          *
                        *       INCLUDE FILES      *
                        *                          *
                        ****************************/


                       /****************************
                        *                          *
                        *        DEFINITIONS       *
                        *                          *
                        ****************************/

/* segment type */
//#define SEG_CODE        0
//#define SEG_XDATA       1
//#define SEG_DATA        2
//#define SEG_IDATA       3
//#define SEG_BIT         4
//#define SEG_NUMBER      5

/*
    		External Product Specification 
    		           For The 
			  MCS-51 Object Module Format
    
    				   V 5.0

    <object file>	::==	<module>* | <library>
    
    <module>		::==	MODULE_HEADER_RECORD
    						<definition record>*
    						<data/debug record>*
    						MODULE_END_RECORD
    						
    <definition record>	::==	SEGMENT_DEFINITIONS_RECORD
    						|	PUBLIC_DEFINITIONS_RECORD
    						|	EXTERNAL_DEFINITIONS_RECORD
    						
	<data/debug record>	::==	<data section>
							|	<debug section>
							
	<debug section>		::==	SCOPE_DEFINITION_RECORD
							|	DEBUG_ITEM_RECORD
							
	<data section>		::==	CONTENT_RECORD
								FIXUP_RECORD*
								
	<library>			::==	LIB_HEADER_RECORD	// Notes: not support
								<module>*
								LIB_MODULE_NAMES_RECORD
								LIB_MODULE_LOCATIONS_RECORD
								LIB_DICTIONARY_RECORD

*/

#define omf_ext_record		112		/* 0x70 */	// unknown extended record
#define omf_beg_module      2       /* 0x2  */
#define omf_end_module      4       /* 0x4  */
#define omf_seg_define      14      /* 0xe  */
#define omf_pub_define      22      /* 0x16 */
#define omf_ext_define      24      /* 0x18 */
#define omf_scope_rec       16      /* 0x10 */
#define omf_debug_rec       18      /* 0x12 */
#define omf_content_data    6       /* 0x6  */
#define omf_fixup_data      8       /* 0x8  */
#define omf_c51_debug_rec   34      /* 0x22 */
#define omf_type_def        32      /* 0x20 */
#define omf_srcname_rec     36      /* 0x24 */
#define omf_bl51_head_rec   46      /* 0x2E */

#define omf_type_list       0x20
#define omf_type_pointer    0x21
#define omf_type_array      0x22
#define omf_type_func       0x23
#define omf_type_type       0x24
#define omf_type_struct     0x25
#define omf_type_bitfield   0x26
#define omf_type_space_ptr  0x27
#define omf_type_gen_ptr    0x28

                       /****************************
                        *                          *
                        *        PROTOTYPES        *
                        *                          *
                        ****************************/

#endif
/******************************** E O F ***********************************/
