diff --git a/src/rom.rs b/src/rom.rs index 4a7724b70f05eadae4ef9d4c15f20016eaa168b1..1444c5e7f9abca45542f256da053aebad1159e9c 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