mirror of https://github.com/stella-emu/stella.git
Removed more dead code related to emulating the AtariVox.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1738 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
88b95f56fa
commit
54a3ddab7a
|
@ -16,10 +16,6 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#ifdef SPEAKJET_EMULATION
|
|
||||||
#include "SpeakJet.hxx"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "MT24LC256.hxx"
|
#include "MT24LC256.hxx"
|
||||||
#include "SerialPort.hxx"
|
#include "SerialPort.hxx"
|
||||||
#include "System.hxx"
|
#include "System.hxx"
|
||||||
|
@ -36,15 +32,10 @@ AtariVox::AtariVox(Jack jack, const Event& event, const System& system,
|
||||||
myShiftRegister(0),
|
myShiftRegister(0),
|
||||||
myLastDataWriteCycle(0)
|
myLastDataWriteCycle(0)
|
||||||
{
|
{
|
||||||
#ifndef SPEAKJET_EMULATION
|
|
||||||
if(mySerialPort.openPort(portname))
|
if(mySerialPort.openPort(portname))
|
||||||
myAboutString = " (using serial port \'" + portname + "\')";
|
myAboutString = " (using serial port \'" + portname + "\')";
|
||||||
else
|
else
|
||||||
myAboutString = " (invalid serial port \'" + portname + "\')";
|
myAboutString = " (invalid serial port \'" + portname + "\')";
|
||||||
#else
|
|
||||||
mySpeakJet = new SpeakJet();
|
|
||||||
myAboutString = " (emulating SpeakJet device)";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
myEEPROM = new MT24LC256(eepromfile, system);
|
myEEPROM = new MT24LC256(eepromfile, system);
|
||||||
|
|
||||||
|
@ -57,11 +48,7 @@ AtariVox::AtariVox(Jack jack, const Event& event, const System& system,
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
AtariVox::~AtariVox()
|
AtariVox::~AtariVox()
|
||||||
{
|
{
|
||||||
#ifndef SPEAKJET_EMULATION
|
|
||||||
mySerialPort.closePort();
|
mySerialPort.closePort();
|
||||||
#else
|
|
||||||
delete mySpeakJet;
|
|
||||||
#endif
|
|
||||||
delete myEEPROM;
|
delete myEEPROM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,11 +145,7 @@ void AtariVox::clockDataIn(bool value)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uInt8 data = ((myShiftRegister >> 1) & 0xff);
|
uInt8 data = ((myShiftRegister >> 1) & 0xff);
|
||||||
#ifndef SPEAKJET_EMULATION
|
|
||||||
mySerialPort.writeByte(&data);
|
mySerialPort.writeByte(&data);
|
||||||
#else
|
|
||||||
mySpeakJet->write(data);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
myShiftRegister = 0;
|
myShiftRegister = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#ifndef ATARIVOX_HXX
|
#ifndef ATARIVOX_HXX
|
||||||
#define ATARIVOX_HXX
|
#define ATARIVOX_HXX
|
||||||
|
|
||||||
class SpeakJet;
|
|
||||||
class SerialPort;
|
class SerialPort;
|
||||||
class MT24LC256;
|
class MT24LC256;
|
||||||
|
|
||||||
|
@ -91,10 +90,6 @@ class AtariVox : public Controller
|
||||||
|
|
||||||
virtual string about() const;
|
virtual string about() const;
|
||||||
|
|
||||||
#ifdef SPEAKJET_EMULATION
|
|
||||||
SpeakJet* getSpeakJet() { return mySpeakJet; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clockDataIn(bool value);
|
void clockDataIn(bool value);
|
||||||
void shiftIn(bool value);
|
void shiftIn(bool value);
|
||||||
|
@ -108,11 +103,6 @@ class AtariVox : public Controller
|
||||||
// The EEPROM used in the AtariVox
|
// The EEPROM used in the AtariVox
|
||||||
MT24LC256* myEEPROM;
|
MT24LC256* myEEPROM;
|
||||||
|
|
||||||
#ifdef SPEAKJET_EMULATION
|
|
||||||
// Instance of SpeakJet which will actually do the talking for us.
|
|
||||||
SpeakJet *mySpeakJet;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// How many bits have been shifted into the shift register?
|
// How many bits have been shifted into the shift register?
|
||||||
uInt8 myShiftCount;
|
uInt8 myShiftCount;
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
Console::Console(OSystem* osystem, Cartridge* cart, const Properties& props)
|
Console::Console(OSystem* osystem, Cartridge* cart, const Properties& props)
|
||||||
: myOSystem(osystem),
|
: myOSystem(osystem),
|
||||||
myProperties(props),
|
myProperties(props),
|
||||||
myAVox(0),
|
|
||||||
myDisplayFormat("NTSC"),
|
myDisplayFormat("NTSC"),
|
||||||
myFramerate(60.0),
|
myFramerate(60.0),
|
||||||
myUserPaletteDefined(false)
|
myUserPaletteDefined(false)
|
||||||
|
@ -667,8 +666,8 @@ void Console::setControllers(const string& rommd5)
|
||||||
{
|
{
|
||||||
const string& eepromfile = myOSystem->eepromDir() + BSPF_PATH_SEPARATOR +
|
const string& eepromfile = myOSystem->eepromDir() + BSPF_PATH_SEPARATOR +
|
||||||
"atarivox_eeprom.dat";
|
"atarivox_eeprom.dat";
|
||||||
myControllers[rightPort] = myAVox =
|
myControllers[rightPort] = new AtariVox(Controller::Right, *myEvent,
|
||||||
new AtariVox(Controller::Right, *myEvent, *mySystem, myOSystem->serialPort(),
|
*mySystem, myOSystem->serialPort(),
|
||||||
myOSystem->settings().getString("avoxport"), eepromfile);
|
myOSystem->settings().getString("avoxport"), eepromfile);
|
||||||
}
|
}
|
||||||
else if(right == "SAVEKEY")
|
else if(right == "SAVEKEY")
|
||||||
|
|
|
@ -264,9 +264,6 @@ class Console : public Serializable
|
||||||
void togglePFBit() const { toggleTIABit(TIA::PF, "PF"); }
|
void togglePFBit() const { toggleTIABit(TIA::PF, "PF"); }
|
||||||
void enableBits(bool enable) const;
|
void enableBits(bool enable) const;
|
||||||
|
|
||||||
// TODO - make the core code work without needing to access this
|
|
||||||
AtariVox* atariVox() { return myAVox; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
Adds the left and right controllers to the console
|
Adds the left and right controllers to the console
|
||||||
|
@ -322,8 +319,6 @@ class Console : public Serializable
|
||||||
// A RIOT of my own! (...with apologies to The Clash...)
|
// A RIOT of my own! (...with apologies to The Clash...)
|
||||||
M6532 *myRiot;
|
M6532 *myRiot;
|
||||||
|
|
||||||
AtariVox* myAVox;
|
|
||||||
|
|
||||||
// The currently defined display format (NTSC/PAL/SECAM)
|
// The currently defined display format (NTSC/PAL/SECAM)
|
||||||
string myDisplayFormat;
|
string myDisplayFormat;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue