MMU.cpp: Only report a VCOUNT change if the new value differs from the existing value.

This commit is contained in:
rogerman 2018-10-07 14:35:25 -07:00
parent f67154484f
commit 7fda7997b2
1 changed files with 5 additions and 2 deletions

View File

@ -5321,8 +5321,11 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
case REG_DISPA_VCOUNT:
if (nds.VCount >= 202 && nds.VCount <= 212)
{
printf("VCOUNT set to %i (previous value %i)\n", val, nds.VCount);
nds.VCount = val;
if (val != nds.VCount)
{
printf("VCOUNT set to %i (previous value %i)\n", val, nds.VCount);
nds.VCount = val;
}
}
else
printf("Attempt to set VCOUNT while not within 202-212 (%i), ignored\n", nds.VCount);