Commit Graph

29 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
d3bc874500 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
nickysn
0f205470bc * set DL=0 in dos.setverify for compatibility with DOS 2.x
git-svn-id: trunk@42149 -
2019-05-31 13:58:19 +00:00
pierre
b917533a9f Fix SetFAttr function
git-svn-id: trunk@38764 -
2018-04-13 22:18:21 +00:00
pierre
50e5256f8e * system.pp:
+ Add MSDOS specific version of SysInitFPU, using Get/SetInterrput Vectors
    to test coprocessor presence.
    * Do not call SetupEnvironment in startup code.
    + Add internal_envp variable (nil by default).
    + Change envp to function, which calls SetUpEnvironment,
    if internal_envp is nil.
    * Do not call SetupArguments at startup,
    instead call it from inside paramcount or paramstr
    + Add SaveInt10 and SavdeInt75

  * dos.pp: Also swap Interrupt vectors $10 and $75

  * sysutils.pp: Adapt to envp change in system unit.

git-svn-id: trunk@36268 -
2017-05-19 22:01:12 +00:00
Tomas Hajny
1e6ee7f3c7 * fix remaining search handle leaks in Dos.FSearch - fix for bug #30896
git-svn-id: trunk@34910 -
2016-11-17 22:05:17 +00:00
Tomas Hajny
b7de70422f * fix for bug #24504 (extended version of patch by Bart Broersma)
git-svn-id: trunk@34849 -
2016-11-08 22:16:49 +00:00
Tomas Hajny
c1afb4b63b * avoid FindFirst failing due to Attribute parameter bigger than $FF
git-svn-id: trunk@33894 -
2016-06-03 21:16:35 +00:00
nickysn
23b0cf2340 * msdos system unit variable dos_psp renamed PrefixSeg for TP7 compatibility
git-svn-id: trunk@28047 -
2014-06-24 10:58:59 +00:00
Tomas Hajny
cedf009d3c * fix for SIGSEGV in Exec without command line parameters revealed in discussion for #26160
git-svn-id: trunk@27804 -
2014-05-18 20:37:40 +00:00
nickysn
f31d7e665b * fix for i8086 far data memory models in dos.getintvec
git-svn-id: trunk@27468 -
2014-04-04 17:03:18 +00:00
nickysn
238c4f91d8 * fixed dos.getftime returning a wrong value for 'time' on i8086-msdos
git-svn-id: trunk@27159 -
2014-03-16 15:22:49 +00:00
nickysn
ee34761646 * changed some longint vars to integer and cleaned up some unused vars from the
msdos dos unit.

git-svn-id: trunk@27158 -
2014-03-16 13:55:00 +00:00
nickysn
ac6611ceb9 - rm unused variable from LFNFindFirst
git-svn-id: trunk@27157 -
2014-03-16 12:46:04 +00:00
nickysn
044a744ba8 + implemented dos.SwapVectors for i8086-msdos
git-svn-id: trunk@27156 -
2014-03-16 12:37:52 +00:00
nickysn
07c3762164 + ported the go32v2 CD-ROM support code for dos.disksize and dos.diskfree to
i8086-msdos

git-svn-id: trunk@27155 -
2014-03-16 12:23:22 +00:00
nickysn
41d28f91e5 - rm asmmode intel from the i8086-msdos rtl, as that is the default asm mode on
that platform

git-svn-id: trunk@27144 -
2014-03-15 13:01:05 +00:00
pierre
f4726e068b Avoid assmebler size mismatch warning in Keep procedure
git-svn-id: trunk@26496 -
2014-01-17 23:33:24 +00:00
Jonas Maebe
df6a2dce00 + unicodestring support for assign/erase/rename
+ codepage support for textrec/filerec and the above routines
  * textrec/filerec now store the filename by default using widechar. It is
    possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
    In that case, from now on the filename will always be stored in
    DefaultFileSystemEncoding
  * fixed potential buffer overflows and non-null-terminated file names in
    textrec/filerec
  + dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
    parameters into var-parameters and gave those routines an extra parameter
    that indicates whether the p(wide)char can be changed in place if
    necessary or whether a copy must be made first (avoids us having to make
    all strings always unique everywhere, because they might be changed on
    some platforms via a pchar)
  * do_open/do_erase/do_rename got extra boolean parameters indicating whether
    the passed pchars point to data that can be freely changed (to pass on to
    dodirseparators() if applicable)
  * objects.pp: force assign(pchar) to be called, because
    assign(array[0..255]) cannot choose between pchar and rawbytestring
    versions (and removing the pchar version means that assign(pchar) will
    be mapped to assign(shortstring) in {$h-})
  * fixed up some routines in other units that depend on the format of
    the textrec/filerec.name field

git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +00:00
nickysn
c867fb14dd + implemented dos.exec on i8086-msdos
git-svn-id: trunk@24774 -
2013-06-02 13:42:29 +00:00
nickysn
4b3c67c51a + implemented dos.Keep for i8086-msdos; simple dos TSRs now work
git-svn-id: trunk@24730 -
2013-06-01 16:42:56 +00:00
nickysn
896d2f2bd5 + implemented dos.GetIntVec and SetIntVec for i8086-msdos
git-svn-id: trunk@24720 -
2013-06-01 14:32:03 +00:00
nickysn
6c51bcae37 + implemented dos.diskfree and disksize for i8086-msdos; cd-rom support not implemented yet
git-svn-id: trunk@24701 -
2013-06-01 10:48:38 +00:00
nickysn
ed7eb79486 + implemented dos.GetShortName and GetLongName for i8086-msdos
git-svn-id: trunk@24699 -
2013-06-01 10:34:07 +00:00
nickysn
7d757cc5ed + implemented dos.getfattr and setfattr for i8086-msdos
git-svn-id: trunk@24696 -
2013-06-01 10:17:00 +00:00
nickysn
327628a6bd + implemented dos.FindFirst/FindNext/FindClose for i8086-msdos
git-svn-id: trunk@24691 -
2013-06-01 09:41:16 +00:00
nickysn
0f7673105b + implemented envcount, envstr and getenv for i8086-msdos
git-svn-id: trunk@24587 -
2013-05-24 20:42:56 +00:00
nickysn
96fd997a97 - rm unported code from go32v2, generate runtime 304 if an unimplemented function is called
git-svn-id: branches/i8086@24094 -
2013-03-31 18:06:27 +00:00
florian
5ab9742c22 + start of dos unit (derived from go32v2)
* adapated Makefiles

git-svn-id: branches/i8086@24059 -
2013-03-29 15:58:21 +00:00