z20x_loader.linkcmd 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*****************************************************************************/
  2. /* boards/z80/ez80/z20x/scripts/z20x_loader.linkcmd */
  3. /* For bootloader configurations running entirely out of FLASH */
  4. /* */
  5. /* Licensed to the Apache Software Foundation (ASF) under one or more */
  6. /* contributor license agreements. See the NOTICE file distributed with */
  7. /* this work for additional information regarding copyright ownership. The */
  8. /* ASF licenses this file to you under the Apache License, Version 2.0 (the */
  9. /* "License"); you may not use this file except in compliance with the */
  10. /* License. You may obtain a copy of the License at */
  11. /* */
  12. /* http://www.apache.org/licenses/LICENSE-2.0 */
  13. /* */
  14. /* Unless required by applicable law or agreed to in writing, software */
  15. /* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT */
  16. /* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */
  17. /* License for the specific language governing permissions and limitations */
  18. /* under the License. */
  19. /* */
  20. /*****************************************************************************/
  21. -FORMAT=OMF695,INTEL32
  22. -map -maxhexlen=64 -quiet -warnoverlap -xref -unresolved=fatal
  23. -sort NAME=ascending -warn -debug -NOigcase
  24. RANGE ROM $000000 : $01ffff
  25. RANGE RAM $040200 : $04ffff
  26. RANGE EXTIO $000000 : $00ffff
  27. RANGE INTIO $000000 : $0000ff
  28. CHANGE STRSECT is ROM
  29. ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA
  30. COPY DATA ROM
  31. DEFINE __low_romdata = copy base of DATA
  32. DEFINE __low_data = base of DATA
  33. DEFINE __len_data = length of DATA
  34. DEFINE __low_bss = base of BSS
  35. DEFINE __len_bss = length of BSS
  36. DEFINE __stack = highaddr of RAM + 1
  37. DEFINE __heaptop = highaddr of RAM
  38. DEFINE __heapbot = top of RAM + 1
  39. DEFINE __low_romcode = copy base of CODE
  40. DEFINE __low_code = base of CODE
  41. DEFINE __len_code = length of CODE
  42. DEFINE __copy_code_to_ram = 0
  43. DEFINE __crtl = 1
  44. DEFINE __vecstart = $040000
  45. DEFINE __vecend = $0401ff
  46. DEFINE __loaderstart = $040200
  47. DEFINE __loaderend = $04ffff
  48. DEFINE __progstart = $050000
  49. DEFINE __progend = $0bffff
  50. DEFINE __CS0_LBR_INIT_PARAM = $04
  51. DEFINE __CS0_UBR_INIT_PARAM = $0b
  52. DEFINE __CS0_CTL_INIT_PARAM = $28
  53. DEFINE __CS0_BMC_INIT_PARAM = $00
  54. DEFINE __CS1_LBR_INIT_PARAM = $00
  55. DEFINE __CS1_UBR_INIT_PARAM = $00
  56. DEFINE __CS1_CTL_INIT_PARAM = $00
  57. DEFINE __CS1_BMC_INIT_PARAM = $00
  58. DEFINE __CS2_LBR_INIT_PARAM = $00
  59. DEFINE __CS2_UBR_INIT_PARAM = $00
  60. DEFINE __CS2_CTL_INIT_PARAM = $00
  61. DEFINE __CS2_BMC_INIT_PARAM = $00
  62. DEFINE __CS3_LBR_INIT_PARAM = $00
  63. DEFINE __CS3_UBR_INIT_PARAM = $00
  64. DEFINE __CS3_CTL_INIT_PARAM = $00
  65. DEFINE __CS3_BMC_INIT_PARAM = $00
  66. DEFINE __RAM_CTL_INIT_PARAM = $80
  67. DEFINE __RAM_ADDR_U_INIT_PARAM = $AF
  68. DEFINE __FLASH_CTL_INIT_PARAM = $28
  69. DEFINE __FLASH_ADDR_U_INIT_PARAM = $00
  70. define _SYS_CLK_FREQ = 20000000
  71. /* arch/z80/src/Makefile.zdsii will append target, object and library paths below */