--- Frodo4/Src/IEC.cpp 2004/01/11 14:03:29 1.4 +++ Frodo4/Src/IEC.cpp 2004/01/14 16:54:46 1.7 @@ -1,7 +1,7 @@ /* * IEC.cpp - IEC bus routines, 1541 emulation (DOS level) * - * Frodo (C) 1994-1997,2002-2003 Christian Bauer + * Frodo (C) 1994-1997,2002-2004 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,9 +68,9 @@ IEC::IEC(C64Display *display) : the_disp if (ThePrefs.DriveType[i] == DRVTYPE_DIR) drive[i] = new FSDrive(this, ThePrefs.DrivePath[i]); else if (ThePrefs.DriveType[i] == DRVTYPE_D64) - drive[i] = new D64Drive(this, ThePrefs.DrivePath[i]); + drive[i] = new ImageDrive(this, ThePrefs.DrivePath[i]); else - drive[i] = new T64Drive(this, ThePrefs.DrivePath[i]); + drive[i] = new ArchDrive(this, ThePrefs.DrivePath[i]); } listener_active = talker_active = false; @@ -120,9 +120,9 @@ void IEC::NewPrefs(Prefs *prefs) if (prefs->DriveType[i] == DRVTYPE_DIR) drive[i] = new FSDrive(this, prefs->DrivePath[i]); else if (prefs->DriveType[i] == DRVTYPE_D64) - drive[i] = new D64Drive(this, prefs->DrivePath[i]); + drive[i] = new ImageDrive(this, prefs->DrivePath[i]); else - drive[i] = new T64Drive(this, prefs->DrivePath[i]); + drive[i] = new ArchDrive(this, prefs->DrivePath[i]); } } @@ -848,14 +848,14 @@ void Drive::unsupp_cmd(void) * Convert PETSCII<->ASCII */ -char ascii2petscii(char c) +uint8 ascii2petscii(char c) { if ((c >= 'A') && (c <= 'Z') || (c >= 'a') && (c <= 'z')) return c ^ 0x20; return c; } -void ascii2petscii(char *dest, const char *src, int n) +void ascii2petscii(uint8 *dest, const char *src, int n) { while (n-- && (*dest++ = ascii2petscii(*src++))) ; } @@ -869,7 +869,7 @@ char petscii2ascii(uint8 c) return c; } -void petscii2ascii(char *dest, const char *src, int n) +void petscii2ascii(char *dest, const uint8 *src, int n) { while (n-- && (*dest++ = petscii2ascii(*src++))) ; }