From 9ad5e8b59751bc739e123b49f7230c226c4a47e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sat, 10 Jun 2023 13:25:52 +0100 Subject: [PATCH] chore: small commets added --- src/rom.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rom.rs b/src/rom.rs index 4a7724b7..1444c5e7 100644 --- a/src/rom.rs +++ b/src/rom.rs @@ -809,6 +809,9 @@ pub static GAME_GENIE: Mbc = Mbc { read_rom: |rom: &Cartridge, addr: u16| -> u8 { let game_genie = rom.game_genie.as_ref().unwrap(); if game_genie.contains_addr(addr) { + // retrieves the Game Genie code that matches the current address + // keep in mind that this assumes that no more that one code is + // registered for the same memory address let genie_code = game_genie.get_addr(addr); // checks if the current data at the address is the same as the -- GitLab