Fixed error in MDM scheme; an IF condition was always true.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3228 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-10-12 15:49:55 +00:00
parent d36a3ce44b
commit 23cfae3025
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
#include <cstdlib>
#define STELLA_VERSION "4.6.6"
#define STELLA_VERSION "4.7_pre"
#define STELLA_BUILD atoi("$Rev$" + 6)
#endif

View File

@ -83,7 +83,7 @@ uInt8 CartridgeMDM::peek(uInt16 address)
{
// Because of the way we've set up accessing above, we can only
// get here when the addresses are from 0x800 - 0xBFF
if((address & 0xBFF) < 0xC00)
if((address & 0x1C00) == 0x0800)
bank(address & 0x0FF);
int hotspot = ((address & 0x0F00) >> 8) - 8;
@ -97,7 +97,7 @@ bool CartridgeMDM::poke(uInt16 address, uInt8 value)
// about those below $1000
if(!(address & 0x1000))
{
if((address & 0xBFF) < 0xC00)
if((address & 0x1C00) == 0x0800)
bank(address & 0x0FF);
int hotspot = ((address & 0x0F00) >> 8) - 8;