Fixed music bug in DPC+ scheme.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2555 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2012-10-02 14:56:31 +00:00
parent 803083e51a
commit 192ad0bf81
2 changed files with 5 additions and 4 deletions

View File

@ -24,6 +24,9 @@
reading from TIMINT. Also, D6 of the Interrupt Flag register is now
properly set on active transition of the PA7 pin.
* Fixed bug in DPC+ bankswitch scheme; the music in "Stay Frosty 2"
wasn't playing correctly.
* The ROM properties database now uses 'Auto' instead of 'Auto-select'
everywhere. This makes for less typing when running from the
commandline.

View File

@ -50,8 +50,8 @@ CartridgeDPCPlus::CartridgeDPCPlus(const uInt8* image, uInt32 size,
// Pointer to the display RAM
myDisplayImage = myDPCRAM + 0xC00;
// Pointer to the Frequency ROM (1K @ 28K offset)
myFrequencyImage = myProgramImage + 0x7000;
// Pointer to the Frequency RAM
myFrequencyImage = myDisplayImage + 0x1000;
// If the image is larger than 29K, we assume any excess at the
// beginning is ARM code, and skip over it
@ -59,8 +59,6 @@ CartridgeDPCPlus::CartridgeDPCPlus(const uInt8* image, uInt32 size,
{
int offset = size - 29 * 1024;
myProgramImage += offset;
// myDisplayImage += offset;
// myFrequencyImage += offset;
}
#ifdef THUMB_SUPPORT