⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 26xx_proj.cfg

📁 GM5621原代码
💻 CFG
字号:
/*
	$Workfile:$
	$Revision:   1.0  $
	$Date:   Jun 30 2003 10:55:22  $
*/
/****************************************************************************/
/*                                                                          */
/*              Copyright (C) 2001.  GENESIS MICROCHIP INC.                 */
/*      All rights reserved.  No part of this program may be reproduced.    */
/*                                                                          */
/*     Genesis Microchip Inc., 165 Commerce Valley Dr. West                 */
/*     Thornhill, Ontario, Canada, L3T 7V8                                  */
/*                                                                          */
/*==========================================================================*/
/*                                                                          */
/* MODULE:      xrom.cfg 		                                            */
/*                                                                          */
/* USAGE:       This module is linker LOCATE file for external ROM code  	*/
/*              with _TEXT segment in CLASS CODE at 0x70000.                */
/*                                                                          */
/****************************************************************************/
//
// Define XROM start address
//
#include "inc\26xx_options.h"

#define XROM_START	0x8200				// XROM code start 

#define ROM_SIZE 		 128

#if ROM_SIZE == 128
	#define CONFIG_ADDR 0x9FFE // physical addr : 0x1ffe0
#elif ROM_SIZE == 256
	#define CONFIG_ADDR 0xBFFE // physical addr : 0x5ffe0
#else
	#define CONFIG_ADDR 0x9FFE // physical addr : 0x9ffe0
#endif

#if !USE_1K_SECTOR
	#define CODE_START	 0x8020
#else
	#define CODE_START	 0x8100
#endif

cputype		Turbo186			   		// Select the target system processor

hexfile  	intel86 \
			filename = ./debug/obj/26xx_proj.hex
         
hexfile  	binary \
				offset = 0x80000 \
            size = 128 \
			filename = ./debug/obj/26xx_proj.bin

warnings 	-w1002						// Disable the "Assume absoulte" warning

absfile		axe86						// Paradigm C++ debugging output
listfile	segments	\				// Absolute segment map
			publics		\
			symbols		\
			lines		\
			regions

//
//		Define how the target system address space is
//		partitioned.  Paradigm LOCATE will check that this
//		mapping is followed.
map	0x00000 to 0x0FFF 	as rdwr			//  OCM RAM/CCF area
map	0x01000 to 0x013FF 	as reserved		// RAM area (1KB stack - application dependent)
map   0x01400 to 0x03FFF    as rdwr			// CCF area
map   0x04000 to 0x0ABFF  as rdwr			// hardware registers/tables
map	0x0AC00 to 0x7FFFF 	as reserved		// No access allowed
map	0x80000 to 0xbFFFF	as rdonly		// External ROM (256KB Maximun allowed)
map   0xc0000 to 0xF7FFF		as reserved    // images of xrom
map	0xF8000 to 0xF83FF 	as rdonly  		// Internal ROM jump table
map   0xf8400 to 0xfffff  as reserved     // reserved for internal ROM

dup		DATA 		ROMDATA			// Make a copy of initialized data
class		START	  		= CODE_START			// XROM Bootup code (0xEFFC0)
class		DATA 	  		= 0x0000 			// IRAM data space
class		SIGNATURE_SEGMENT	= CONFIG_ADDR


order		DATA				\		// RAM class organization
			BSS					\
			NVRAM

order		START	\
			CODE		  		\		// XROM class organization
			FAR_CONST 			\
			ROMDATA ENDROMDATA 



output	START	\
			CODE		  		\		// XROM class organization
			FAR_CONST 			\
			ROMDATA ENDROMDATA  SIGNATURE_SEGMENT


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -