mirror of https://github.com/stella-emu/stella.git
Added FE scheme to the debugger ROM tab. Even though this is
a multibank scheme, the tab doesn't allow to change banks, since the current bank is at address-level resolution, and it would immediately change back upon the next address change. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2693 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
b97b643d17
commit
0a8050faf4
|
@ -0,0 +1,42 @@
|
||||||
|
//============================================================================
|
||||||
|
//
|
||||||
|
// 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
|
||||||
|
//
|
||||||
|
// Copyright (c) 1995-2013 by Bradford W. Mott, Stephen Anthony
|
||||||
|
// 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$
|
||||||
|
//============================================================================
|
||||||
|
|
||||||
|
#include "CartFE.hxx"
|
||||||
|
#include "CartFEWidget.hxx"
|
||||||
|
|
||||||
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
CartridgeFEWidget::CartridgeFEWidget(
|
||||||
|
GuiObject* boss, const GUI::Font& font,
|
||||||
|
int x, int y, int w, int h, CartridgeFE& cart)
|
||||||
|
: CartDebugWidget(boss, font, x, y, w, h)
|
||||||
|
{
|
||||||
|
uInt16 size = 2 * 4096;
|
||||||
|
|
||||||
|
ostringstream info;
|
||||||
|
info << "FE cartridge, two 4K banks\n"
|
||||||
|
<< "Doesn't support bankswitching with hotspots,\n"
|
||||||
|
<< "but instead watches A13 of called addresses:\n"
|
||||||
|
<< "Bank 0 @ $F000 - $FFFF (A13 = 1)\n"
|
||||||
|
<< "Bank 1 @ $D000 - $DFFF (A13 = 0)\n"
|
||||||
|
<< "\n"
|
||||||
|
<< "Changing banks is not supported, since it\n"
|
||||||
|
<< "would immediately switch on the next address\n";
|
||||||
|
|
||||||
|
addBaseInformation(size, "Activision", info.str());
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
//============================================================================
|
||||||
|
//
|
||||||
|
// 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
|
||||||
|
//
|
||||||
|
// Copyright (c) 1995-2013 by Bradford W. Mott, Stephen Anthony
|
||||||
|
// 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 CARTRIDGEFE_WIDGET_HXX
|
||||||
|
#define CARTRIDGEFE_WIDGET_HXX
|
||||||
|
|
||||||
|
class CartridgeFE;
|
||||||
|
#include "CartDebugWidget.hxx"
|
||||||
|
|
||||||
|
class CartridgeFEWidget : public CartDebugWidget
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CartridgeFEWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
|
int x, int y, int w, int h,
|
||||||
|
CartridgeFE& cart);
|
||||||
|
virtual ~CartridgeFEWidget() { }
|
||||||
|
|
||||||
|
// No implementation for non-bankswitched ROMs
|
||||||
|
void loadConfig() { }
|
||||||
|
void handleCommand(CommandSender* sender, int cmd, int data, int id) { }
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -30,13 +30,14 @@ MODULE_OBJS := \
|
||||||
src/debugger/gui/CartEFWidget.o \
|
src/debugger/gui/CartEFWidget.o \
|
||||||
src/debugger/gui/CartEFSCWidget.o \
|
src/debugger/gui/CartEFSCWidget.o \
|
||||||
src/debugger/gui/CartF0Widget.o \
|
src/debugger/gui/CartF0Widget.o \
|
||||||
src/debugger/gui/CartFAWidget.o \
|
|
||||||
src/debugger/gui/CartF4Widget.o \
|
src/debugger/gui/CartF4Widget.o \
|
||||||
src/debugger/gui/CartF6Widget.o \
|
src/debugger/gui/CartF6Widget.o \
|
||||||
src/debugger/gui/CartF8Widget.o \
|
src/debugger/gui/CartF8Widget.o \
|
||||||
src/debugger/gui/CartF4SCWidget.o \
|
src/debugger/gui/CartF4SCWidget.o \
|
||||||
src/debugger/gui/CartF6SCWidget.o \
|
src/debugger/gui/CartF6SCWidget.o \
|
||||||
src/debugger/gui/CartF8SCWidget.o \
|
src/debugger/gui/CartF8SCWidget.o \
|
||||||
|
src/debugger/gui/CartFAWidget.o \
|
||||||
|
src/debugger/gui/CartFEWidget.o \
|
||||||
src/debugger/gui/CartSBWidget.o \
|
src/debugger/gui/CartSBWidget.o \
|
||||||
src/debugger/gui/CartUAWidget.o \
|
src/debugger/gui/CartUAWidget.o \
|
||||||
src/debugger/gui/CartX07Widget.o \
|
src/debugger/gui/CartX07Widget.o \
|
||||||
|
|
|
@ -24,6 +24,9 @@ class System;
|
||||||
|
|
||||||
#include "bspf.hxx"
|
#include "bspf.hxx"
|
||||||
#include "Cart.hxx"
|
#include "Cart.hxx"
|
||||||
|
#ifdef DEBUGGER_SUPPORT
|
||||||
|
#include "CartFEWidget.hxx"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Bankswitching method used by Activision's Robot Tank and Decathlon.
|
Bankswitching method used by Activision's Robot Tank and Decathlon.
|
||||||
|
@ -49,6 +52,8 @@ class System;
|
||||||
*/
|
*/
|
||||||
class CartridgeFE : public Cartridge
|
class CartridgeFE : public Cartridge
|
||||||
{
|
{
|
||||||
|
friend class CartridgeFEWidget;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Create a new cartridge using the specified image
|
Create a new cartridge using the specified image
|
||||||
|
@ -143,6 +148,18 @@ class CartridgeFE : public Cartridge
|
||||||
*/
|
*/
|
||||||
string name() const { return "CartridgeFE"; }
|
string name() const { return "CartridgeFE"; }
|
||||||
|
|
||||||
|
#ifdef DEBUGGER_SUPPORT
|
||||||
|
/**
|
||||||
|
Get debugger widget responsible for accessing the inner workings
|
||||||
|
of the cart.
|
||||||
|
*/
|
||||||
|
CartDebugWidget* debugWidget(GuiObject* boss,
|
||||||
|
const GUI::Font& font, int x, int y, int w, int h)
|
||||||
|
{
|
||||||
|
return new CartridgeFEWidget(boss, font, x, y, w, h, *this);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Get the byte at the specified address.
|
Get the byte at the specified address.
|
||||||
|
|
Loading…
Reference in New Issue