gb-emu/src/processor/memory/rom/mbcs.rs

15 lines
356 B
Rust
Raw Normal View History

2023-02-07 10:08:34 +11:00
use crate::processor::memory::Address;
2023-02-22 21:58:47 +11:00
mod mbc1;
mod none;
pub use mbc1::Mbc1;
pub use none::None;
2023-02-12 09:46:47 +11:00
pub(super) trait Mbc {
2023-02-07 10:08:34 +11:00
fn get(&self, address: Address) -> u8;
2023-02-11 21:43:36 +11:00
fn get_ram(&self, address: Address) -> u8;
2023-02-07 10:08:34 +11:00
fn set(&mut self, address: Address, data: u8);
2023-02-11 21:43:36 +11:00
fn set_ram(&mut self, address: Address, data: u8);
2023-02-12 17:21:24 +11:00
fn mbc_type(&self) -> String;
2023-02-07 10:08:34 +11:00
}