Skip to content

Commit

Permalink
corrected bad copy paste job
Browse files Browse the repository at this point in the history
  • Loading branch information
FIX94 committed Feb 6, 2019
1 parent b8c44d4 commit 71a7da3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapper/mmc5.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static void mmc5SetPrgBankPtr()
}
else //RAM
{
tmp = ((mmc5.PRGBank[2]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[1];
tmp = ((mmc5.PRGBank[2]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[2];
mmc5.prgBank2Ptr = mmc5.prgRAM+(tmp|0x0000);
mmc5.prgBank2PtrType = 0;
}
Expand All @@ -235,7 +235,7 @@ static void mmc5SetPrgBankPtr()
}
else //RAM
{
tmp = ((mmc5.PRGBank[0]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[1];
tmp = ((mmc5.PRGBank[0]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[0];
mmc5.prgBank0Ptr = mmc5.prgRAM+(tmp|0x0000);
mmc5.prgBank0PtrType = 0;
}
Expand All @@ -261,7 +261,7 @@ static void mmc5SetPrgBankPtr()
}
else //RAM
{
tmp = ((mmc5.PRGBank[2]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[1];
tmp = ((mmc5.PRGBank[2]<<13)&mmc5.prgRAMand)|mmc5.prgRAMadd[2];
mmc5.prgBank2Ptr = mmc5.prgRAM+(tmp|0x0000);
mmc5.prgBank2PtrType = 0;
}
Expand Down

0 comments on commit 71a7da3

Please sign in to comment.