From: Greg King Date: Fri, 13 Mar 2015 09:46:40 +0000 (-0400) Subject: Made cbm_load() be a fastcall function. X-Git-Tag: V2.15~3^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66d79da3c2d96d5eafa879776971085c13f9ab01;p=cc65 Made cbm_load() be a fastcall function. --- diff --git a/include/cbm.h b/include/cbm.h index 1bc29bf4c..701924d57 100644 --- a/include/cbm.h +++ b/include/cbm.h @@ -222,7 +222,7 @@ void cbm_k_unlsn (void); -unsigned int __cdecl__ cbm_load (const char* name, unsigned char device, void* data); +unsigned int __fastcall__ cbm_load (const char* name, unsigned char device, void* 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). diff --git a/libsrc/cbm/cbm_load.c b/libsrc/cbm/cbm_load.c index 7d4a5086b..eba864fcc 100644 --- a/libsrc/cbm/cbm_load.c +++ b/libsrc/cbm/cbm_load.c @@ -11,7 +11,7 @@ /* loads file "name" from given device to given address or to the load address ** of the file if "data" is 0 */ -unsigned int __cdecl__ cbm_load(const char* name, unsigned char device, void* data) +unsigned int __fastcall__ cbm_load(const char* name, unsigned char device, void* data) { /* LFN is set to 0; but, it's not needed for loading ** (BASIC V2 sets it to the value of the SA for LOAD).