25 #define DBG_PROGNAME "OPENCBM.DLL"
66 pia_to_inputmode(
CBM_FILE HandleDevice,
unsigned char Drive,
unsigned int PiaAddress)
69 unsigned char byteval = 0x00;
73 if (
cbm_upload(HandleDevice, Drive, PiaAddress + 2, &byteval, 1) == 1)
110 output_pia(
CBM_FILE HandleDevice,
unsigned char Drive,
unsigned int PiaAddress,
unsigned char Value)
117 unsigned char byteval = 0xff;
122 if (
cbm_upload(HandleDevice, Drive, PiaAddress + 2, &byteval, 1) != 1)
128 if (
cbm_upload(HandleDevice, Drive, PiaAddress , &Value, 1) != 1)
147 pia_to_inputmode(HandleDevice, Drive, PiaAddress);
198 unsigned int piaAddress;
218 CbmDeviceType = &localDummyDeviceType;
223 CbmDeviceType, NULL);
241 switch (*CbmDeviceType)
274 if (output_pia(HandleDevice, DeviceAddress, piaAddress, 0x55))
277 if (output_pia(HandleDevice, DeviceAddress, piaAddress, 0xAA))
292 pia_to_inputmode(HandleDevice, DeviceAddress, piaAddress);
int CBMAPIDECL cbm_identify_xp1541(CBM_FILE HandleDevice, unsigned char DeviceAddress, enum cbm_device_type_e *CbmDeviceType, enum cbm_cable_type_e *CableType)
Identify the cable connected to a specific floppy drive.
#define FUNC_LEAVE_INT(_xxx)
Define makros for debugging purposes.
unsigned char CBMAPIDECL cbm_pp_read(CBM_FILE HandleDevice)
Read a byte from a XP1541/XP1571 cable.
int CBMAPIDECL cbm_identify(CBM_FILE HandleDevice, unsigned char DeviceAddress, enum cbm_device_type_e *CbmDeviceType, const char **CbmDeviceString)
Identify the connected floppy drive.
DLL interface for accessing the driver.
Define makros and functions which account for differences between the different architectures.
int CBMAPIDECL cbm_upload(CBM_FILE HandleDevice, unsigned char DeviceAddress, int DriveMemAddress, const void *Program, size_t Size)
Upload a program into a floppy's drive memory.