2019-06-04 19:12:17 +02:00
|
|
|
/****************************************************************************/
|
2019-08-09 15:22:39 +02:00
|
|
|
/* boards/z80/ez80/makerlisp/scripts/makerlisp_flash.linkcmd */
|
2019-06-04 19:12:17 +02:00
|
|
|
/* */
|
2021-03-16 16:36:09 +01:00
|
|
|
/* Licensed to the Apache Software Foundation (ASF) under one or more */
|
|
|
|
/* contributor license agreements. See the NOTICE file distributed with */
|
|
|
|
/* this work for additional information regarding copyright ownership. The */
|
|
|
|
/* ASF licenses this file to you under the Apache License, Version 2.0 (the */
|
|
|
|
/* "License"); you may not use this file except in compliance with the */
|
|
|
|
/* License. You may obtain a copy of the License at */
|
2019-06-04 19:12:17 +02:00
|
|
|
/* */
|
2021-03-16 16:36:09 +01:00
|
|
|
/* http://www.apache.org/licenses/LICENSE-2.0 */
|
2019-06-04 19:12:17 +02:00
|
|
|
/* */
|
2021-03-16 16:36:09 +01:00
|
|
|
/* Unless required by applicable law or agreed to in writing, software */
|
|
|
|
/* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT*/
|
|
|
|
/* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the*/
|
|
|
|
/* License for the specific language governing permissions and limitations */
|
|
|
|
/* under the License. */
|
2019-06-04 19:12:17 +02:00
|
|
|
/* */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2021-03-16 16:36:09 +01:00
|
|
|
/* For configurations running entirely out of FLASH */
|
|
|
|
|
2019-06-04 19:12:17 +02:00
|
|
|
-FORMAT=OMF695,INTEL32
|
2019-06-16 18:22:57 +02:00
|
|
|
-map -maxhexlen=64 -quiet -warnoverlap -xref -unresolved=fatal
|
|
|
|
-sort NAME=ascending -warn -debug -NOigcase
|
2019-06-04 19:12:17 +02:00
|
|
|
|
|
|
|
RANGE ROM $000000 : $03FFFF
|
2019-06-16 18:22:57 +02:00
|
|
|
RANGE RAM $040000 : $13FFFF
|
2019-06-04 19:12:17 +02:00
|
|
|
RANGE EXTIO $000000 : $00FFFF
|
|
|
|
RANGE INTIO $000000 : $0000FF
|
|
|
|
|
2019-06-16 18:22:57 +02:00
|
|
|
CHANGE TEXT is CODE
|
2019-06-04 19:12:17 +02:00
|
|
|
CHANGE STRSECT is ROM
|
|
|
|
|
|
|
|
ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA
|
|
|
|
COPY DATA ROM
|
|
|
|
|
|
|
|
DEFINE __low_romdata = copy base of DATA
|
|
|
|
DEFINE __low_data = base of DATA
|
|
|
|
DEFINE __len_data = length of DATA
|
|
|
|
DEFINE __low_bss = base of BSS
|
|
|
|
DEFINE __len_bss = length of BSS
|
|
|
|
DEFINE __stack = highaddr of RAM + 1
|
|
|
|
DEFINE __heaptop = highaddr of RAM
|
|
|
|
DEFINE __heapbot = top of RAM + 1
|
|
|
|
DEFINE __low_romcode = copy base of CODE
|
|
|
|
DEFINE __low_code = base of CODE
|
|
|
|
DEFINE __len_code = length of CODE
|
|
|
|
DEFINE __copy_code_to_ram = 0
|
|
|
|
DEFINE __crtl = 1
|
2019-06-16 18:22:57 +02:00
|
|
|
|
|
|
|
DEFINE __CS0_LBR_INIT_PARAM = $04
|
|
|
|
DEFINE __CS0_UBR_INIT_PARAM = $0b
|
|
|
|
DEFINE __CS0_CTL_INIT_PARAM = $08
|
|
|
|
DEFINE __CS0_BMC_INIT_PARAM = $00
|
|
|
|
DEFINE __CS1_LBR_INIT_PARAM = $0c
|
|
|
|
DEFINE __CS1_UBR_INIT_PARAM = $13
|
|
|
|
DEFINE __CS1_CTL_INIT_PARAM = $08
|
|
|
|
DEFINE __CS1_BMC_INIT_PARAM = $00
|
|
|
|
DEFINE __CS2_LBR_INIT_PARAM = $20
|
|
|
|
DEFINE __CS2_UBR_INIT_PARAM = $9f
|
|
|
|
DEFINE __CS2_CTL_INIT_PARAM = $88
|
|
|
|
DEFINE __CS2_BMC_INIT_PARAM = $00
|
2019-06-04 19:12:17 +02:00
|
|
|
DEFINE __CS3_LBR_INIT_PARAM = $00
|
|
|
|
DEFINE __CS3_UBR_INIT_PARAM = $00
|
|
|
|
DEFINE __CS3_CTL_INIT_PARAM = $00
|
2019-06-16 18:22:57 +02:00
|
|
|
DEFINE __CS3_BMC_INIT_PARAM = $00
|
|
|
|
DEFINE __RAM_CTL_INIT_PARAM = $80
|
|
|
|
DEFINE __RAM_ADDR_U_INIT_PARAM = $AF
|
|
|
|
DEFINE __FLASH_CTL_INIT_PARAM = $88
|
2019-06-04 19:12:17 +02:00
|
|
|
DEFINE __FLASH_ADDR_U_INIT_PARAM = $00
|
|
|
|
|
|
|
|
define _SYS_CLK_FREQ = 50000000
|
|
|
|
|
2019-06-16 17:09:23 +02:00
|
|
|
define _OSC_FREQ = 5000000
|
|
|
|
define _SYS_CLK_SRC = 1
|
|
|
|
define _OSC_FREQ_MULT = 10
|
2019-06-16 18:22:57 +02:00
|
|
|
define __PLL_CTL0_INIT_PARAM = $41
|
2019-06-04 19:12:17 +02:00
|
|
|
|
|
|
|
define _zsl_g_clock_xdefine = 50000000
|
|
|
|
|
|
|
|
/* arch/z80/src/Makefile.zdsii will append target, object and library paths below */
|