MMU.cpp: Only report a VCOUNT change if the new value differs from the existing value.
This commit is contained in:
parent
f67154484f
commit
7fda7997b2
|
@ -5321,8 +5321,11 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
|
||||||
case REG_DISPA_VCOUNT:
|
case REG_DISPA_VCOUNT:
|
||||||
if (nds.VCount >= 202 && nds.VCount <= 212)
|
if (nds.VCount >= 202 && nds.VCount <= 212)
|
||||||
{
|
{
|
||||||
printf("VCOUNT set to %i (previous value %i)\n", val, nds.VCount);
|
if (val != nds.VCount)
|
||||||
nds.VCount = val;
|
{
|
||||||
|
printf("VCOUNT set to %i (previous value %i)\n", val, nds.VCount);
|
||||||
|
nds.VCount = val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("Attempt to set VCOUNT while not within 202-212 (%i), ignored\n", nds.VCount);
|
printf("Attempt to set VCOUNT while not within 202-212 (%i), ignored\n", nds.VCount);
|
||||||
|
|
Loading…
Reference in New Issue