keep rom bank in limits

This commit is contained in:
Alex Janka 2023-02-08 08:58:56 +11:00
parent 122bfee8df
commit 2f8c606f79

View file

@ -105,6 +105,7 @@ impl MBC for MBC1 {
}
_ => {}
}
self.rom_bank = (self.rom_bank as usize % self.num_banks) as u8;
return;
}
}