my question is in carts who have 128k/128k
Im making it in a simple way when reg1 is written i take the value written & 0x0F. With this i locate the chr rom in the chrrom memory. The chr rom mem goes in this case to $0000 in the ppu and i swap 0x1000 bytes (4k) from the chr rom.
To locate the chr rom i do it simple:
But it seems dont work.
some things display well and other not.
Apart of that i had a question.
- When a RegX is written in mmc1 all other "counters", i mean the buffer is set to the first lsb of the register? i main again the first value written to another regX will be the lsb of the written value, and so on...?
- When mmc1 is reset, all the writes to RegX will go to the lsb of the register and then to the followin bit and so on...?
Im making it in a simple way when reg1 is written i take the value written & 0x0F. With this i locate the chr rom in the chrrom memory. The chr rom mem goes in this case to $0000 in the ppu and i swap 0x1000 bytes (4k) from the chr rom.
To locate the chr rom i do it simple:
Code:
CopyMemory(g_PPUMEM, g_lpCHRROMS + (Value & 0x0F) *0x1000, 0x1000); //For Reg 1
CopyMemory(g_PPUMEM + 0x1000, g_lpCHRROMS + (Value & 0x0F) *0x1000, 0x1000); //For Reg 2
CopyMemory(g_PPUMEM + 0x1000, g_lpCHRROMS + (Value & 0x0F) *0x1000, 0x1000); //For Reg 2
But it seems dont work.
some things display well and other not.
Apart of that i had a question.
- When a RegX is written in mmc1 all other "counters", i mean the buffer is set to the first lsb of the register? i main again the first value written to another regX will be the lsb of the written value, and so on...?
- When mmc1 is reset, all the writes to RegX will go to the lsb of the register and then to the followin bit and so on...?