|
From: Steve A. <ste...@us...> - 2009-05-04 14:00:04
|
Update of /cvsroot/stella/stella/src/emucore In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10604/src/emucore Modified Files: Cart.cxx Log Message: Added more signatures for auto-detecting E0 bankswitching. Index: Cart.cxx =================================================================== RCS file: /cvsroot/stella/stella/src/emucore/Cart.cxx,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** Cart.cxx 11 Apr 2009 20:09:31 -0000 1.53 --- Cart.cxx 4 May 2009 13:59:49 -0000 1.54 *************** *** 393,405 **** // Thanks to "st...@ca..." for this advice // These signatures are attributed to the MESS project ! uInt8 signature[6][3] = { { 0x8D, 0xE0, 0x1F }, // STA $1FE0 { 0x8D, 0xE0, 0x5F }, // STA $5FE0 { 0x8D, 0xE9, 0xFF }, // STA $FFE9 { 0xAD, 0xE9, 0xFF }, // LDA $FFE9 { 0xAD, 0xED, 0xFF }, // LDA $FFED { 0xAD, 0xF3, 0xBF } // LDA $BFF3 }; ! for(uInt32 i = 0; i < 6; ++i) { if(searchForBytes(image, size, signature[i], 3, 1)) --- 393,407 ---- // Thanks to "st...@ca..." for this advice // These signatures are attributed to the MESS project ! uInt8 signature[8][3] = { { 0x8D, 0xE0, 0x1F }, // STA $1FE0 { 0x8D, 0xE0, 0x5F }, // STA $5FE0 { 0x8D, 0xE9, 0xFF }, // STA $FFE9 + { 0x0C, 0xE0, 0x1F }, // NOP $1FE0 + { 0xAD, 0xE0, 0x1F }, // LDA $1FE0 { 0xAD, 0xE9, 0xFF }, // LDA $FFE9 { 0xAD, 0xED, 0xFF }, // LDA $FFED { 0xAD, 0xF3, 0xBF } // LDA $BFF3 }; ! for(uInt32 i = 0; i < 8; ++i) { if(searchForBytes(image, size, signature[i], 3, 1)) |