i_oric.pas 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. This unit implements support information structures for the FPC
  3. Oric-1 / Oric Atmos / Oric NOVA 64 / Pravetz 8D target
  4. Copyright (c) 2025 by Nikolay Nikolov
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit i_oric;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_mos6502_oric_info : tsysteminfo =
  25. (
  26. system : system_mos6502_oric;
  27. name : 'Oric-1 / Oric Atmos / Oric NOVA 64 / Pravetz 8D';
  28. shortname : 'oric';
  29. flags : [
  30. {$ifdef MOS6502_SMARTLINK_SECTIONS}
  31. tf_smartlink_sections,
  32. {$else MOS6502_SMARTLINK_SECTIONS}
  33. tf_smartlink_library,
  34. tf_no_objectfiles_when_smartlinking,
  35. {$endif MOS6502_SMARTLINK_SECTIONS}
  36. tf_needs_symbol_size,tf_files_case_sensitive];
  37. cpu : cpu_mos6502;
  38. unit_env : '';
  39. extradefines : '';
  40. exeext : '.tap';
  41. defext : '.def';
  42. scriptext : '.sh';
  43. smartext : '.sl';
  44. unitext : '.ppu';
  45. unitlibext : '.ppl';
  46. asmext : '.s';
  47. objext : '.rel';
  48. resext : '.res';
  49. resobjext : '.or';
  50. sharedlibext : '.so';
  51. staticlibext : '.a';
  52. staticlibprefix : 'libp';
  53. sharedlibprefix : 'lib';
  54. sharedClibext : '.so';
  55. staticClibext : '.a';
  56. staticClibprefix : 'lib';
  57. sharedClibprefix : 'lib';
  58. importlibprefix : 'libimp';
  59. importlibext : '.a';
  60. Cprefix : '';
  61. newline : #10;
  62. dirsep : '/';
  63. assem : as_sdcc_sdas6500;
  64. assemextern : as_sdcc_sdas6500;
  65. link : ld_none;
  66. linkextern : ld_oric;
  67. ar : ar_sdcc_sdar;
  68. res : res_none;
  69. dbg : dbg_dwarf2;
  70. script : script_unix;
  71. endian : endian_little;
  72. alignment :
  73. (
  74. procalign : 1;
  75. loopalign : 1;
  76. jumpalign : 0;
  77. jumpalignskipmax : 0;
  78. coalescealign : 0;
  79. coalescealignskipmax : 0;
  80. constalignmin : 0;
  81. constalignmax : 1;
  82. varalignmin : 0;
  83. varalignmax : 1;
  84. localalignmin : 0;
  85. localalignmax : 1;
  86. recordalignmin : 0;
  87. recordalignmax : 1;
  88. maxCrecordalign : 1
  89. );
  90. first_parm_offset : 4;
  91. stacksize : 1024;
  92. stackalign : 1;
  93. abi : abi_default;
  94. llvmdatalayout : 'todo';
  95. mos6502page0alloc : [$00..$0B,$BB,$BC,$F3..$F9];
  96. );
  97. implementation
  98. initialization
  99. {$ifdef CPUMOS6502}
  100. {$ifdef oric}
  101. set_source_info(system_mos6502_oric_info);
  102. {$endif oric}
  103. {$endif CPUMOS6502}
  104. end.