Browse Source

sinclairql: new files to contain SMS only functions, iof_rename implemented, based on a patch by Norman Dunbar

git-svn-id: trunk@49172 -
Károly Balogh 4 years ago
parent
commit
3d4e677db0
3 changed files with 46 additions and 0 deletions
  1. 2 0
      .gitattributes
  2. 28 0
      rtl/sinclairql/sms.inc
  3. 16 0
      rtl/sinclairql/smsfuncs.inc

+ 2 - 0
.gitattributes

@@ -12027,6 +12027,8 @@ rtl/sinclairql/qdosh.inc svneol=native#text/plain
 rtl/sinclairql/rtl.cfg svneol=native#text/plain
 rtl/sinclairql/rtldefs.inc svneol=native#text/plain
 rtl/sinclairql/si_prc.pp svneol=native#text/plain
+rtl/sinclairql/sms.inc svneol=native#text/plan
+rtl/sinclairql/smsfuncs.inc svneol=native#text/plan
 rtl/sinclairql/sysdir.inc svneol=native#text/plain
 rtl/sinclairql/sysfile.inc svneol=native#text/plain
 rtl/sinclairql/sysheap.inc svneol=native#text/plain

+ 28 - 0
rtl/sinclairql/sms.inc

@@ -0,0 +1,28 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2021 by Karoly Balogh
+
+    Interface to SMS only OS functions used by the Sinclair QL RTL
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+const
+    _IOF_MKDIR = $4d;
+
+function iof_mkdir(chan: Tchanid): longint; assembler; nostackframe; public name '_iof_mkdir';
+asm
+  move.l d3,-(sp)
+  move.l chan,a0
+  moveq.l #-1,d3
+  moveq.l #0,d1
+  moveq.l #_IOF_MKDIR,d0
+  trap #3
+  move.l (sp)+,d3
+end;

+ 16 - 0
rtl/sinclairql/smsfuncs.inc

@@ -0,0 +1,16 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2021 by Karoly Balogh
+
+    Headers to SMS only OS functions used by the Sinclair QL RTL
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+function iof_mkdir(chan: Tchanid): longint; assembler; nostackframe; external name '_iof_mkdir';