mirror of https://github.com/stella-emu/stella.git
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:
parent
d36a3ce44b
commit
23cfae3025
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#define STELLA_VERSION "4.6.6"
|
#define STELLA_VERSION "4.7_pre"
|
||||||
#define STELLA_BUILD atoi("$Rev$" + 6)
|
#define STELLA_BUILD atoi("$Rev$" + 6)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -83,7 +83,7 @@ uInt8 CartridgeMDM::peek(uInt16 address)
|
||||||
{
|
{
|
||||||
// Because of the way we've set up accessing above, we can only
|
// Because of the way we've set up accessing above, we can only
|
||||||
// get here when the addresses are from 0x800 - 0xBFF
|
// get here when the addresses are from 0x800 - 0xBFF
|
||||||
if((address & 0xBFF) < 0xC00)
|
if((address & 0x1C00) == 0x0800)
|
||||||
bank(address & 0x0FF);
|
bank(address & 0x0FF);
|
||||||
|
|
||||||
int hotspot = ((address & 0x0F00) >> 8) - 8;
|
int hotspot = ((address & 0x0F00) >> 8) - 8;
|
||||||
|
@ -97,7 +97,7 @@ bool CartridgeMDM::poke(uInt16 address, uInt8 value)
|
||||||
// about those below $1000
|
// about those below $1000
|
||||||
if(!(address & 0x1000))
|
if(!(address & 0x1000))
|
||||||
{
|
{
|
||||||
if((address & 0xBFF) < 0xC00)
|
if((address & 0x1C00) == 0x0800)
|
||||||
bank(address & 0x0FF);
|
bank(address & 0x0FF);
|
||||||
|
|
||||||
int hotspot = ((address & 0x0F00) >> 8) - 8;
|
int hotspot = ((address & 0x0F00) >> 8) - 8;
|
||||||
|
|
Loading…
Reference in New Issue