fool around with vrc2 and vrc4 to bring selected address bits up to modern knowledge standards. fixes #789

This commit is contained in:
zeromus 2017-04-29 02:10:48 +00:00
parent f99caee01a
commit 0677dbe6b7
2 changed files with 2 additions and 4 deletions

View File

@ -127,8 +127,7 @@ static DECLFW(VRC24Write) {
} }
static DECLFW(M21Write) { static DECLFW(M21Write) {
A = (A & 0xF000) | ((A >> 1) & 0x3); // Ganbare Goemon Gaiden 2 - Tenka no Zaihou (J) [!] isn't mapper 21 actually, A = (A & 0xF000) | ((A >> 1) & 0x3) | ((A >> 6) & 0x3);
// it's mapper 23 by wirings
VRC24Write(A, V); VRC24Write(A, V);
} }
@ -147,7 +146,7 @@ static DECLFW(M22Write) {
} }
static DECLFW(M23Write) { static DECLFW(M23Write) {
A |= ((A >> 2) & 0x3) | ((A >> 4) & 0x3) | ((A >> 6) & 0x3);// actually there is many-in-one mapper source, some pirate or A |= ((A >> 2) & 0x3) | ((A >> 4) & 0x3);// actually there is many-in-one mapper source, some pirate or
// licensed games use various address bits for registers // licensed games use various address bits for registers
VRC24Write(A, V); VRC24Write(A, V);
} }

View File

@ -84,7 +84,6 @@
{0x6e68e31a, 16, 8}, /* Dragon Ball 3*/ {0x6e68e31a, 16, 8}, /* Dragon Ball 3*/
{0x33b899c9, 16, -1}, /* Dragon Ball - Dai Maou Fukkatsu (J) [!] */ {0x33b899c9, 16, -1}, /* Dragon Ball - Dai Maou Fukkatsu (J) [!] */
{0xa262a81f, 16, -1}, /* Rokudenashi Blues (J) */ {0xa262a81f, 16, -1}, /* Rokudenashi Blues (J) */
{0x286fcd20, 23, -1}, /* Ganbare Goemon Gaiden 2 - Tenka no Zaihou (J) [!] */
{0xe4a291ce, 23, -1}, /* World Hero (Unl) [!] */ {0xe4a291ce, 23, -1}, /* World Hero (Unl) [!] */
{0x51e9cd33, 23, -1}, /* World Hero (Unl) [b1] */ {0x51e9cd33, 23, -1}, /* World Hero (Unl) [b1] */
{0x105dd586, 27, -1}, /* Mi Hun Che variations... */ {0x105dd586, 27, -1}, /* Mi Hun Che variations... */