From: cuz Date: Fri, 15 Nov 2002 18:42:06 +0000 (+0000) Subject: cbm_write is not __fastcall__ X-Git-Tag: V2.12.0~2107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc81b379d8a18cfe6b3abc20bd974f037ba1f14d;p=cc65 cbm_write is not __fastcall__ git-svn-id: svn://svn.cc65.org/cc65/trunk@1525 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/cbm.h b/include/cbm.h index 1e68776c6..736de9914 100644 --- a/include/cbm.h +++ b/include/cbm.h @@ -118,8 +118,8 @@ void __fastcall__ cbm_k_clrch (void); -unsigned int cbm_load(const char* name, unsigned char device, - const char* data); +unsigned int cbm_load (const char* name, unsigned char device, + const char* data); /* Loads file "name" from given device to given address or to the load * address of the file if "data" is the null pointer (like load"name",8,1 * in BASIC). @@ -127,7 +127,7 @@ unsigned int cbm_load(const char* name, unsigned char device, * otherwise 0. "_oserror" contains an errorcode then (see table below). */ -unsigned char cbm_save(const char* name, unsigned char device, +unsigned char cbm_save (const char* name, unsigned char device, unsigned char* data, unsigned int size); /* Saves "size" bytes starting at "data" to a file. * Returns 0 if saving was successful, otherwise an errorcode (see table @@ -153,12 +153,12 @@ int __fastcall__ cbm_read (unsigned char lfn, void* buffer, unsigned int size); * table below). */ -int cbm_write(unsigned char lfn, void* buffer, unsigned int size); +int __fastcall__ cbm_write (unsigned char lfn, void* buffer, unsigned int size); /* Writes up to "size" bytes from "buffer" to a file. * Returns the number of actually written bytes or -1 in case of an error. * _oserror contains an errorcode then (see table below). */ - + /* Errorcodes of cbm_* I/O functions: * * errorcode BASIC error diff --git a/libsrc/cbm/cbm_write.s b/libsrc/cbm/cbm_write.s index 71ce6c951..402cd3ea7 100644 --- a/libsrc/cbm/cbm_write.s +++ b/libsrc/cbm/cbm_write.s @@ -3,8 +3,9 @@ ; ; Original C code by Marc 'BlackJack' Rintsch, 25.03.2001 ; -; int cbm_write(unsigned char lfn, void* buffer, unsigned int size) { -; +; int __fastcall__ cbm_write(unsigned char lfn, void* buffer, unsigned int size) +; { +; ; static unsigned int byteswritten; ; ; /* if we can't change to the outputchannel #lfn then return an error */