pub struct Exrom {Show 17 fields
pub regs: Regs,
pub mirroring: Mirroring,
pub ppu_status: PpuStatus,
pub irq_state: IrqState,
pub ex_ram: Vec<u8>,
pub chr_banks: Banks,
pub prg_ram_banks: Banks,
pub prg_rom_banks: Banks,
pub tile_cache: u16,
pub last_chr_write: ChrBank,
pub region: NesRegion,
pub pulse1: Pulse,
pub pulse2: Pulse,
pub dmc: Dmc,
pub dmc_mode: u8,
pub cpu_cycle: usize,
pub pulse_timer: f32,
}Expand description
ExROM/MMC5 (Mapper 5).
Fields§
§regs: Regs§mirroring: Mirroring§ppu_status: PpuStatus§irq_state: IrqState§ex_ram: Vec<u8>§chr_banks: Banks§prg_ram_banks: Banks§prg_rom_banks: Banks§tile_cache: u16§last_chr_write: ChrBank§region: NesRegion§pulse1: Pulse§pulse2: Pulse§dmc: Dmc§dmc_mode: u8§cpu_cycle: usize§pulse_timer: f32Implementations§
Source§impl Exrom
impl Exrom
pub fn load(cart: &mut Cart) -> Result<Mapper, Error>
pub fn update_prg_banks(&mut self)
pub fn set_prg_bank_range(&mut self, start: usize, end: usize, bank: usize)
pub fn rom_select(&self, addr: u16) -> bool
pub fn update_chr_banks(&mut self, chr_bank: ChrBank)
pub fn read_ex_ram(&self, addr: u16) -> u8
pub fn write_ex_ram(&mut self, addr: u16, val: u8)
pub const fn inc_fetch_count(&mut self)
pub const fn fetch_count(&self) -> u32
pub const fn sprite8x16(&self) -> bool
pub fn spr_fetch(&self) -> bool
pub const fn nametable_select(&self, addr: u16) -> Nametable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exrom
impl<'de> Deserialize<'de> for Exrom
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MapRead for Exrom
impl MapRead for Exrom
fn map_read(&mut self, addr: u16) -> MappedRead
fn map_peek(&self, addr: u16) -> MappedRead
Source§impl OnBusWrite for Exrom
impl OnBusWrite for Exrom
Auto Trait Implementations§
impl Freeze for Exrom
impl RefUnwindSafe for Exrom
impl Send for Exrom
impl Sync for Exrom
impl Unpin for Exrom
impl UnwindSafe for Exrom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more