According to the wiki, the bits in the CHR setup are arranged as:
However, the upper 2 bits need to be reversed to make the mapper function properly:
This is based on the source of Nintendulator:
Code:
%BC C000 0000
However, the upper 2 bits need to be reversed to make the mapper function properly:
Code:
%CB C000 0000
This is based on the source of Nintendulator:
Code:
if (WhichGame & 0x40)
{
CHRmask = 0x7F;
CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1) | ((WhichGame & 0x10) >> 4);
}
else
{
CHRmask = 0xFF;
CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1);
}
{
CHRmask = 0x7F;
CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1) | ((WhichGame & 0x10) >> 4);
}
else
{
CHRmask = 0xFF;
CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1);
}