diff --git a/src/processor/memory/rom/mbcs.rs b/src/processor/memory/rom/mbcs.rs index 6ccbe4c..cc0af68 100644 --- a/src/processor/memory/rom/mbcs.rs +++ b/src/processor/memory/rom/mbcs.rs @@ -12,9 +12,3 @@ pub(super) trait Mbc { fn set_ram(&mut self, address: Address, data: u8); fn mbc_type(&self) -> String; } - -#[derive(Clone, Copy)] -enum BankingMode { - Simple, - Advanced, -} diff --git a/src/processor/memory/rom/mbcs/mbc1.rs b/src/processor/memory/rom/mbcs/mbc1.rs index dd6051b..4f9387a 100644 --- a/src/processor/memory/rom/mbcs/mbc1.rs +++ b/src/processor/memory/rom/mbcs/mbc1.rs @@ -1,8 +1,14 @@ -use super::{BankingMode, Mbc}; +use super::Mbc; use crate::processor::memory::Address; +#[derive(Clone, Copy)] +enum BankingMode { + Simple, + Advanced, +} + pub struct Mbc1 { - pub data: Vec, + data: Vec, rom_len: usize, rom_bank: u8, ram_enabled: bool, diff --git a/src/processor/memory/rom/mbcs/none.rs b/src/processor/memory/rom/mbcs/none.rs index 1d232b3..246b817 100644 --- a/src/processor/memory/rom/mbcs/none.rs +++ b/src/processor/memory/rom/mbcs/none.rs @@ -2,7 +2,7 @@ use super::Mbc; use crate::processor::memory::Address; pub struct None { - pub(super) data: Vec, + data: Vec, } impl None {