From: izydorst Date: Thu, 17 Apr 2003 16:22:17 +0000 (+0000) Subject: added missing parameters to GetFile and SaveFile functions X-Git-Tag: V2.12.0~1627 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cba1606222af9d0e20afd5b85e85bc5b9053fd5;p=cc65 added missing parameters to GetFile and SaveFile functions git-svn-id: svn://svn.cc65.org/cc65/trunk@2068 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/geos.sgml b/doc/geos.sgml index 857de5268..4c7b76cf5 100644 --- a/doc/geos.sgml +++ b/doc/geos.sgml @@ -890,14 +890,14 @@ starting track and sector which may point either to start of a chain for VLIR or GetFile

- This routine loads and runs a given file SaveFile

- FreeFile diff --git a/include/geos/gfile.h b/include/geos/gfile.h index e6f9c14d2..75a606c51 100644 --- a/include/geos/gfile.h +++ b/include/geos/gfile.h @@ -17,11 +17,11 @@ struct filehandle *__fastcall__ GetNxtDirEntry(void); char __fastcall__ FindFTypes(char *buffer, char ftype, char fmaxnum, const char *classtxt); -char __fastcall__ GetFile(char flag, const char *fname, const char *loadaddr, - const char *datadname, char *datafname); +char __fastcall__ GetFile(char saveflag, char loadflag, const char *fname, + const char *loadaddr, const char *datadname, char *datafname); char __fastcall__ FindFile(const char *fname); char __fastcall__ ReadFile(struct tr_se *myTrSe, char *buffer, unsigned flength); -char __fastcall__ SaveFile(struct fileheader *myHeader); +char __fastcall__ SaveFile(char skip, struct fileheader *myHeader); char __fastcall__ FreeFile(struct tr_se myTable[]); char __fastcall__ DeleteFile(const char *fname); char __fastcall__ RenameFile(const char *source, const char *target); diff --git a/libsrc/geos/file/getfile.s b/libsrc/geos/file/getfile.s index b245493ab..82ae9e043 100644 --- a/libsrc/geos/file/getfile.s +++ b/libsrc/geos/file/getfile.s @@ -4,7 +4,7 @@ ; ; 4.4.2003 -; char __fastcall__ GetFile(char flag, const char *fname, const char *loadaddr, const char *datadname, char *datafname); +; char __fastcall__ GetFile(char saveflag, char loadflag, const char *fname, const char *loadaddr, const char *datadname, char *datafname); .export _GetFile .import popa, popax, setoserror @@ -26,5 +26,7 @@ _GetFile: stx r6H jsr popa sta r0L + jsr popa + sta r10L jsr GetFile jmp setoserror diff --git a/libsrc/geos/file/savefile.s b/libsrc/geos/file/savefile.s index 85bc8c484..78e9b3cce 100644 --- a/libsrc/geos/file/savefile.s +++ b/libsrc/geos/file/savefile.s @@ -4,16 +4,19 @@ ; ; 25.12.1999, 2.1.2003 -; char SaveFile (struct fileheader *myHeader); +; char SaveFile (char skip, struct fileheader *myHeader); .import setoserror + .import popa .export _SaveFile .include "../inc/jumptab.inc" .include "../inc/geossym.inc" - + _SaveFile: sta r9L stx r9H + jsr popa + sta r10L jsr SaveFile jmp setoserror