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

📄 57xx_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\57xx_options.h"

#define XROM_START	0x8200				// XROM code start

#define ROM_SIZE 		256

#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 = D:/hex_temp/pu.hex
		  	//filename = D:/Phoenix.hex

hexfile  	binary \
				offset = 0x80000 \
            size = ROM_SIZE \
         filename = ./debug/obj/57xx_proj.hex
			//filename = D:/Phoenix.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.
#if 0
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

#else
//map   0x00000 to 0x01BFF   as rdwr			// OCM RAM/CCF area
//map   0x01C00 to 0x01FFF   as reserved		// RAM area (1KB stack - application dependent)
//map   0x02000 to 0x03FFF   as rdwr			// CCF area
map   0x00000 to 0x017FF   as rdwr			// OCM RAM/CCF area
map   0x01800 to 0x01BFF   as reserved		// RAM area (1KB stack - application dependent)
map   0x01C00 to 0x03FFF   as rdwr			// CCF area
map   0x04000 to 0x083FF   as reserved		// hardware registers/tables
map   0x08400 to 0x087FF   as reserved		// OSD color LUT
map   0x08800 to 0x08BFF   as reserved		// ACM3D
map   0x08C00 to 0x08FFF   as reserved		// ACC memory
map   0x09000 to 0x09FFF   as reserved		// Display Gamma LUT(Actual 1.5K)
map   0x0A000 to 0x0A3FF   as reserved		// 186 Peripheral Registers
map   0x0A400 to 0x0A7FF   as reserved		// HDCP Key RAM
map   0x0A800 to 0x0A9FF   as reserved		// SPI ROM Code Cache & Tag MEM
map   0x0AA00 to 0x0BFFF   as reserved		// Reserved
map   0x0C000 to 0x0D3DF   as rdwr			// TCON Line buffer(Actual 5K)
map   0x0D3E0 to 0x0FFFF   as reserved		// TCON Line buffer
map   0x10000 to 0x17FFF   as reserved		// Display Line buffer
map   0x18000 to 0x1BFFF   as reserved		// Dither Filter Line buffer
map   0x1C000 to 0x7FFFF   as reserved		// Reserved
map   0x80000 to 0xEFFFF   as rdonly		// External ROM (448KB Maximun allowed)
map   0xF0000 to 0xFFFFF   as rdonly        // Internal ROM jump table
#endif

dup		DATA 		ROMDATA			// Make a copy of initialized data

class		START	  				= CODE_START
class		DATA 	  				= 0x0000 			// IRAM data space
//class		DATA2     			= 0x0C00 			// 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 + -