From fd376313e65682cacb452157bd0e5da50599adfe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Wed, 16 Nov 2022 17:06:23 +0000
Subject: [PATCH] docs: new comments for TODO

---
 src/cpu.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cpu.rs b/src/cpu.rs
index fe7f9c1b..70621dcc 100644
--- a/src/cpu.rs
+++ b/src/cpu.rs
@@ -128,7 +128,8 @@ impl Cpu {
 
         if self.ime {
             // @todo aggregate all of this interrupts in the MMU, as there's
-            // a lot of redundant code involved in here
+            // a lot of redundant code involved in here which complicates the
+            // readability and maybe performance of this code
             if (self.mmu.ie & 0x01 == 0x01) && self.mmu.ppu().int_vblank() {
                 debugln!("Going to run V-Blank interrupt handler (0x40)");
 
-- 
GitLab