From 66d79da3c2d96d5eafa879776971085c13f9ab01 Mon Sep 17 00:00:00 2001 From: Greg King Date: Fri, 13 Mar 2015 05:46:40 -0400 Subject: [PATCH] Made cbm_load() be a fastcall function. --- include/cbm.h | 2 +- libsrc/cbm/cbm_load.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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).