mirror of https://github.com/stella-emu/stella.git
Added 4A50 bankswitch autodetection. Currently, it only works with one
ROM that follows the specs. Also, it seems the final ROM that wasn't working with this scheme actually *does* work; it just doesn't work when display format autodetection is turned on. So that's what I'll work on next. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1401 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
c1f887f731
commit
f3c1b6308a
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: Cart.cxx,v 1.37 2008-02-19 12:33:03 stephena Exp $
|
// $Id: Cart.cxx,v 1.38 2008-02-22 15:29:52 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@ -428,8 +428,11 @@ bool Cartridge::isProbablyUA(const uInt8* image, uInt32 size)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
bool Cartridge::isProbably4A50(const uInt8* image, uInt32 size)
|
bool Cartridge::isProbably4A50(const uInt8* image, uInt32 size)
|
||||||
{
|
{
|
||||||
// TODO - add autodetection for this type
|
// 4A50 carts store address $4A50 at the NMI vector, which
|
||||||
return false;
|
// in this scheme is always in the last page of ROM at
|
||||||
|
// $1FFA - $1FFB
|
||||||
|
int idx = size - 6; // $1FFA
|
||||||
|
return (image[idx] == 0x50 && image[idx+1] == 0x4A);
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue