2013-04-11 14:58:18 +00:00
|
|
|
//============================================================================
|
|
|
|
//
|
|
|
|
// SSSS tt lll lll
|
|
|
|
// SS SS tt ll ll
|
|
|
|
// SS tttttt eeee ll ll aaaa
|
|
|
|
// SSSS tt ee ee ll ll aa
|
|
|
|
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
|
|
|
|
// SS SS tt ee ll ll aa aa
|
|
|
|
// SSSS ttt eeeee llll llll aaaaa
|
|
|
|
//
|
2014-01-12 17:23:42 +00:00
|
|
|
// Copyright (c) 1995-2014 by Bradford W. Mott, Stephen Anthony
|
2013-04-11 14:58:18 +00:00
|
|
|
// and the Stella Team
|
|
|
|
//
|
|
|
|
// See the file "License.txt" for information on usage and redistribution of
|
|
|
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
#ifndef CARTRIDGE3E_WIDGET_HXX
|
|
|
|
#define CARTRIDGE3E_WIDGET_HXX
|
|
|
|
|
|
|
|
class Cartridge3E;
|
|
|
|
class PopUpWidget;
|
|
|
|
|
|
|
|
#include "CartDebugWidget.hxx"
|
|
|
|
|
|
|
|
class Cartridge3EWidget : public CartDebugWidget
|
|
|
|
{
|
|
|
|
public:
|
2013-08-26 13:01:29 +00:00
|
|
|
Cartridge3EWidget(GuiObject* boss, const GUI::Font& lfont,
|
|
|
|
const GUI::Font& nfont,
|
2013-04-11 14:58:18 +00:00
|
|
|
int x, int y, int w, int h,
|
|
|
|
Cartridge3E& cart);
|
|
|
|
virtual ~Cartridge3EWidget() { }
|
|
|
|
|
2014-06-13 16:28:28 +00:00
|
|
|
void saveOldState();
|
2013-04-11 14:58:18 +00:00
|
|
|
void loadConfig();
|
|
|
|
void handleCommand(CommandSender* sender, int cmd, int data, int id);
|
|
|
|
|
2013-05-29 16:27:12 +00:00
|
|
|
string bankState();
|
2014-06-13 16:28:28 +00:00
|
|
|
|
|
|
|
// start of functions for Cartridge RAM tab
|
|
|
|
uInt32 internalRamSize();
|
2014-06-29 18:37:55 +00:00
|
|
|
uInt32 internalRamRPort(int start);
|
2014-06-13 16:28:28 +00:00
|
|
|
string internalRamDescription();
|
2014-06-29 18:37:55 +00:00
|
|
|
const ByteArray& internalRamOld(int start, int count);
|
|
|
|
const ByteArray& internalRamCurrent(int start, int count);
|
2014-06-13 16:28:28 +00:00
|
|
|
void internalRamSetValue(int addr, uInt8 value);
|
|
|
|
uInt8 internalRamGetValue(int addr);
|
|
|
|
// end of functions for Cartridge RAM tab
|
2013-05-29 16:27:12 +00:00
|
|
|
|
2013-04-11 14:58:18 +00:00
|
|
|
private:
|
|
|
|
Cartridge3E& myCart;
|
|
|
|
const uInt32 myNumRomBanks;
|
|
|
|
const uInt32 myNumRamBanks;
|
|
|
|
PopUpWidget *myROMBank, *myRAMBank;
|
2014-06-13 16:28:28 +00:00
|
|
|
|
|
|
|
struct CartState {
|
|
|
|
ByteArray internalram;
|
|
|
|
};
|
|
|
|
CartState myOldState;
|
2013-04-11 14:58:18 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
kROMBankChanged = 'rmCH',
|
|
|
|
kRAMBankChanged = 'raCH'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|