MMC5

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
User avatar
cpow
NESICIDE developer
Posts: 1097
Joined: Mon Oct 13, 2008 7:55 pm
Location: Minneapolis, MN
Contact:

MMC5

Post by cpow »

I'm having a bit of trouble interpreting the Wiki MMC5 description of ports $5120 - $512B. I'm using Castlevania III as my 'test'. I get good looking sprites but the background is sometimes good sometimes completely trash.

Code: Select all

Registers $5120-$5127 apply to sprite graphics and $5128-$512B for background graphics, but ONLY when 8x16 sprites are enabled.

Otherwise, the last set of registers written to (either $5120-$5127 or $5128-$512B) will be used for all graphics. 
Does this mean that if the PPU is in 8x16 sprite mode then writes to $5128 - $512B will apply to both sprite and background? It is confusing because...this is from $5128 description:

Code: Select all

Mode 3 - Select a 1KB CHR ROM bank at PPU $0000-$03FF and $1000-$13FF
but this is from $512A description:

Code: Select all

Mode 3 - Select a 1KB CHR ROM bank at PPU $0800-$0BFF or $1800-$1BFF
Why the switch from 'and' to 'or'?

Can someone help clear me up?
User avatar
Disch
Posts: 1848
Joined: Wed Nov 10, 2004 6:47 pm

Re: MMC5

Post by Disch »

Obligatory plug/link: http://www.romhacking.net/docs/362/
NESICIDE wrote: Does this mean that if the PPU is in 8x16 sprite mode then writes to $5128 - $512B will apply to both sprite and background?
No. When 8x16 sprites, $5120-5127 are sprites, and $5128-512B are BG.
Why the switch from 'and' to 'or'?
*shrug* probably just inconsistent wording.
Post Reply