Renamed experimental bankswitch scheme to WD.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3097 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-11-21 23:37:21 +00:00
parent fdc54072f4
commit 2f82e32fe5
4 changed files with 40 additions and 40 deletions

View File

@ -57,9 +57,9 @@
#include "CartFE.hxx"
#include "CartMC.hxx"
#include "CartMDM.hxx"
#include "CartPPA.hxx"
#include "CartSB.hxx"
#include "CartUA.hxx"
#include "CartWD.hxx"
#include "CartX07.hxx"
#include "MD5.hxx"
#include "Props.hxx"
@ -248,12 +248,12 @@ Cartridge* Cartridge::create(const uInt8* image, uInt32 size, string& md5,
cartridge = new CartridgeMC(image, size, settings);
else if(type == "MDM")
cartridge = new CartridgeMDM(image, size, settings);
else if(type == "PPA")
cartridge = new CartridgePPA(image, size, settings);
else if(type == "UA")
cartridge = new CartridgeUA(image, size, settings);
else if(type == "SB")
cartridge = new CartridgeSB(image, size, settings);
else if(type == "WD")
cartridge = new CartridgeWD(image, size, settings);
else if(type == "X07")
cartridge = new CartridgeX07(image, size, settings);
else if(dtype == "WRONG_SIZE")
@ -421,9 +421,9 @@ string Cartridge::autodetectType(const uInt8* image, uInt32 size)
else
type = "F8";
}
else if(size == 8*1024 + 3) // 8195 byte - Pink Panther Prototype
else if(size == 8*1024 + 3) // 8195 bytes (Experimental)
{
type = "PPA";
type = "WD";
}
else if(size >= 10240 && size <= 10496) // ~10K - Pitfall2
{
@ -997,8 +997,8 @@ Cartridge::BankswitchType Cartridge::ourBSList[] = {
{ "FE", "FE (8K Decathlon)" },
{ "MC", "MC (C. Wilkson Megacart)" },
{ "MDM", "MDM (Menu Driven Megacart)" },
{ "PPA", "PPA (Pink Panther Prototype)" },
{ "SB", "SB (128-256K SUPERbank)" },
{ "UA", "UA (8K UA Ltd.)" },
{ "WD", "Experimental" },
{ "X07", "X07 (64K AtariAge)" }
};

View File

@ -20,11 +20,11 @@
#include <cstring>
#include "System.hxx"
#include "CartPPA.hxx"
#include "CartWD.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CartridgePPA::CartridgePPA(const uInt8* image, uInt32 size,
const Settings& settings)
CartridgeWD::CartridgeWD(const uInt8* image, uInt32 size,
const Settings& settings)
: Cartridge(settings)
{
// Copy the ROM image into my buffer
@ -36,12 +36,12 @@ CartridgePPA::CartridgePPA(const uInt8* image, uInt32 size,
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CartridgePPA::~CartridgePPA()
CartridgeWD::~CartridgeWD()
{
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::reset()
void CartridgeWD::reset()
{
// Initialize RAM
if(mySettings.getBool("ramrandom"))
@ -55,7 +55,7 @@ void CartridgePPA::reset()
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::install(System& system)
void CartridgeWD::install(System& system)
{
mySystem = &system;
@ -93,7 +93,7 @@ void CartridgePPA::install(System& system)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt8 CartridgePPA::peek(uInt16 address)
uInt8 CartridgeWD::peek(uInt16 address)
{
uInt16 peekAddress = address;
address &= 0x0FFF;
@ -120,14 +120,14 @@ uInt8 CartridgePPA::peek(uInt16 address)
}
}
// NOTE: This does not handle reading from RAM, however, this
// NOTE: This does not handle reading from ROM, however, this
// function should never be called for ROM because of the
// way page accessing has been setup
return 0;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgePPA::poke(uInt16 address, uInt8)
bool CartridgeWD::poke(uInt16 address, uInt8)
{
// NOTE: This does not handle writing to RAM, however, this
// function should never be called for RAM because of the
@ -136,7 +136,7 @@ bool CartridgePPA::poke(uInt16 address, uInt8)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgePPA::bank(uInt16 bank)
bool CartridgeWD::bank(uInt16 bank)
{
if(bankLocked() || bank > 15) return false;
@ -151,7 +151,7 @@ bool CartridgePPA::bank(uInt16 bank)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::segmentZero(uInt8 slice)
void CartridgeWD::segmentZero(uInt8 slice)
{
cerr << __func__ << " : slice " << (int)slice << endl;
uInt16 offset = slice << 10;
@ -168,7 +168,7 @@ cerr << __func__ << " : slice " << (int)slice << endl;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::segmentOne(uInt8 slice)
void CartridgeWD::segmentOne(uInt8 slice)
{
cerr << __func__ << " : slice " << (int)slice << endl;
uInt16 offset = slice << 10;
@ -184,7 +184,7 @@ cerr << __func__ << " : slice " << (int)slice << endl;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::segmentTwo(uInt8 slice)
void CartridgeWD::segmentTwo(uInt8 slice)
{
cerr << __func__ << " : slice " << (int)slice << endl;
uInt16 offset = slice << 10;
@ -200,7 +200,7 @@ cerr << __func__ << " : slice " << (int)slice << endl;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void CartridgePPA::segmentThree(uInt8 slice, bool map3bytes)
void CartridgeWD::segmentThree(uInt8 slice, bool map3bytes)
{
cerr << __func__ << ": slice " << (int)slice << endl;
uInt16 offset = slice << 10;
@ -227,32 +227,32 @@ cerr << __func__ << ": slice " << (int)slice << endl;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt16 CartridgePPA::getBank() const
uInt16 CartridgeWD::getBank() const
{
return myCurrentBank;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt16 CartridgePPA::bankCount() const
uInt16 CartridgeWD::bankCount() const
{
return 8;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgePPA::patch(uInt16 address, uInt8 value)
bool CartridgeWD::patch(uInt16 address, uInt8 value)
{
return false; // TODO
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const uInt8* CartridgePPA::getImage(int& size) const
const uInt8* CartridgeWD::getImage(int& size) const
{
size = 8195;
return myImage;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgePPA::save(Serializer& out) const
bool CartridgeWD::save(Serializer& out) const
{
try
{
@ -262,7 +262,7 @@ bool CartridgePPA::save(Serializer& out) const
}
catch(...)
{
cerr << "ERROR: CartridgePPA::save" << endl;
cerr << "ERROR: CartridgeWD::save" << endl;
return false;
}
@ -270,7 +270,7 @@ bool CartridgePPA::save(Serializer& out) const
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgePPA::load(Serializer& in)
bool CartridgeWD::load(Serializer& in)
{
try
{
@ -284,7 +284,7 @@ bool CartridgePPA::load(Serializer& in)
}
catch(...)
{
cerr << "ERROR: CartridgePPA::load" << endl;
cerr << "ERROR: CartridgeWD::load" << endl;
return false;
}
@ -292,7 +292,7 @@ bool CartridgePPA::load(Serializer& in)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CartridgePPA::BankOrg CartridgePPA::ourBankOrg[16] = {
CartridgeWD::BankOrg CartridgeWD::ourBankOrg[16] = {
{ 0, 0, 1, 2, false },
{ 0, 1, 3, 2, false },
{ 4, 5, 6, 7, false },

View File

@ -17,19 +17,19 @@
// $Id$
//============================================================================
#ifndef CARTRIDGEPPA_HXX
#define CARTRIDGEPPA_HXX
#ifndef CARTRIDGEWD_HXX
#define CARTRIDGEWD_HXX
class System;
#include "bspf.hxx"
#include "Cart.hxx"
#ifdef DEBUGGER_SUPPORT
// #include "CartPPAWidget.hxx"
// #include "CartWDWidget.hxx"
#endif
/**
This is the cartridge class for the "Pink Panther" prototype cart.
This is the cartridge class for a "Wickstead Design" prototype cart.
The ROM is normally 8K, but sometimes has an extra 3 bytes appended,
to be mapped as described below. There is also 64 bytes of RAM.
In this bankswitching scheme the 2600's 4K cartridge address space
@ -64,9 +64,9 @@ class System;
@author Stephen Anthony
*/
class CartridgePPA : public Cartridge
class CartridgeWD : public Cartridge
{
friend class CartridgePPAWidget;
friend class CartridgeWDWidget;
public:
/**
@ -76,12 +76,12 @@ class CartridgePPA : public Cartridge
@param size The size of the ROM image
@param settings A reference to the various settings (read-only)
*/
CartridgePPA(const uInt8* image, uInt32 size, const Settings& settings);
CartridgeWD(const uInt8* image, uInt32 size, const Settings& settings);
/**
Destructor
*/
virtual ~CartridgePPA();
virtual ~CartridgeWD();
public:
/**
@ -152,7 +152,7 @@ class CartridgePPA : public Cartridge
@return The name of the object
*/
string name() const { return "CartridgePPA"; }
string name() const { return "CartridgeWD"; }
#ifdef DEBUGGER_SUPPORT
/**
@ -162,7 +162,7 @@ class CartridgePPA : public Cartridge
CartDebugWidget* debugWidget(GuiObject* boss, const GUI::Font& lfont,
const GUI::Font& nfont, int x, int y, int w, int h)
{
return nullptr;//new CartridgePPAWidget(boss, lfont, nfont, x, y, w, h, *this);
return nullptr;//new CartridgeWDWidget(boss, lfont, nfont, x, y, w, h, *this);
}
#endif

View File

@ -38,9 +38,9 @@ MODULE_OBJS := \
src/emucore/CartFE.o \
src/emucore/CartMC.o \
src/emucore/CartMDM.o \
src/emucore/CartPPA.o \
src/emucore/CartSB.o \
src/emucore/CartUA.o \
src/emucore/CartWD.o \
src/emucore/CartX07.o \
src/emucore/CompuMate.o \
src/emucore/Console.o \