i_msxdos.pas 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for MS-DOS
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for go32v2. }
  18. unit i_msxdos;
  19. {$i fpcdefs.inc}
  20. {$ifdef go32v2}
  21. { As wlib uses a different Dos-Extender, long-command line
  22. encoding for DJGPP does not work here.
  23. Put all inside a script file instead }
  24. {$define USE_SCRIPTED_WLIB}
  25. {$endif}
  26. interface
  27. uses
  28. systems;
  29. const
  30. system_z80_msxdos_info : tsysteminfo =
  31. (
  32. system : system_z80_msxdos;
  33. name : 'MSX-DOS';
  34. shortname : 'MSXDOS';
  35. flags : [tf_use_8_3,
  36. {$ifdef Z80_SMARTLINK_SECTIONS}
  37. tf_smartlink_sections,
  38. {$else Z80_SMARTLINK_SECTIONS}
  39. tf_smartlink_library,
  40. tf_no_objectfiles_when_smartlinking,
  41. {$endif Z80_SMARTLINK_SECTIONS}
  42. tf_cld,tf_no_generic_stackcheck,tf_emit_stklen];
  43. cpu : cpu_z80;
  44. unit_env : 'MSXDOSUNITS';
  45. extradefines : '';
  46. exeext : '.com';
  47. defext : '.def';
  48. scriptext : '.bat';
  49. smartext : '.sl';
  50. unitext : '.ppu';
  51. unitlibext : '.ppl';
  52. asmext : '.s';
  53. objext : '.o';
  54. resext : '.res';
  55. resobjext : '.or';
  56. sharedlibext : '.dll';
  57. staticlibext : '.a';
  58. staticlibprefix : '';
  59. sharedlibprefix : '';
  60. sharedClibext : '.dll';
  61. staticClibext : '.a';
  62. staticClibprefix : 'lib';
  63. sharedClibprefix : '';
  64. importlibprefix : '';
  65. importlibext : '.al';
  66. Cprefix : '';
  67. newline : #13#10;
  68. dirsep : '\';
  69. assem : as_z80_rel;
  70. assemextern : as_sdcc_sdasz80;
  71. link : ld_int_msxdos;
  72. linkextern : ld_msxdos;
  73. ar : ar_sdcc_sdar;
  74. res : res_none;
  75. dbg : dbg_dwarf2;
  76. script : script_unix;
  77. endian : endian_little;
  78. alignment :
  79. (
  80. procalign : 1;
  81. loopalign : 1;
  82. jumpalign : 0;
  83. jumpalignskipmax : 0;
  84. coalescealign : 0;
  85. coalescealignskipmax : 0;
  86. constalignmin : 0;
  87. constalignmax : 1;
  88. varalignmin : 0;
  89. varalignmax : 1;
  90. localalignmin : 0;
  91. localalignmax : 1;
  92. recordalignmin : 0;
  93. recordalignmax : 1;
  94. maxCrecordalign : 1
  95. );
  96. first_parm_offset : 4;
  97. stacksize : 1024;
  98. stackalign : 1;
  99. abi : abi_default;
  100. llvmdatalayout : 'todo';
  101. );
  102. implementation
  103. initialization
  104. {$ifdef cpuz80}
  105. {$ifdef msxdos}
  106. set_source_info(system_z80_msxdos_info);
  107. {$endif msxdos}
  108. {$endif cpuz80}
  109. end.