From 7fda7997b26920abdeff6188e4310d1c3b50df46 Mon Sep 17 00:00:00 2001 From: rogerman Date: Sun, 7 Oct 2018 14:35:25 -0700 Subject: [PATCH] MMU.cpp: Only report a VCOUNT change if the new value differs from the existing value. --- desmume/src/MMU.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 783efb404..b2f116b29 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -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);