19 #ifdef LIBD64COPY_DEBUG
20 # define DEBUG_STATEDEBUG
22 #include "statedebug.h"
34 #define STD_BLOCKS 683
35 #define D71_BLOCKS (STD_BLOCKS*2)
37 #define MAX_SECTORS 21
39 #define NEED_SECTOR(b) ((((b)==bs_error)||((b)==bs_must_copy))?1:0)
41 typedef int(*turbo_start)(
CBM_FILE,
unsigned char);
45 turbo_start,d64copy_message_cb);
46 int (*read_block)(
unsigned char,
unsigned char,
unsigned char*);
47 int (*write_block)(
unsigned char,
unsigned char,
const unsigned char*,int,int);
48 void (*close_disk)(void);
51 int (*send_track_map)(
unsigned char,
const char*,
unsigned char);
52 int (*read_gcr_block)(
unsigned char*,
unsigned char*);
55 #define DECLARE_TRANSFER_FUNCS(x,c,t) \
56 transfer_funcs d64copy_ ## x = {open_disk, \
65 #define DECLARE_TRANSFER_FUNCS_EX(x,c,t) \
66 transfer_funcs d64copy_ ## x = {open_disk, \
DLL interface for accessing the driver.
Define makros and functions which account for differences between the different architectures.