pub struct BgSplitState {
pub nt_addr: u16,
pub at_addr: u16,
pub fine_y: u8,
pub chr_bank: u8,
}Expand description
Vertical split-screen override (MMC5 $5200-$5202 and equivalents).
Lives in rustynes-mappers (the canonical owner) and is re-declared here as
a small POD to avoid making rustynes-ppu depend on rustynes-mappers. The
lockstep bus’s PpuBusAdapter translates between the two.
Fields§
§nt_addr: u16Synthesized nametable byte address for the alt region ($2000-$3EFF).
at_addr: u16Synthesized attribute byte address for the alt region.
fine_y: u8Fine-Y (0..=7) for the alt region’s logical row.
chr_bank: u84 KiB CHR bank index for the alt region’s BG pattern fetches.
Trait Implementations§
Source§impl Clone for BgSplitState
impl Clone for BgSplitState
Source§fn clone(&self) -> BgSplitState
fn clone(&self) -> BgSplitState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BgSplitState
impl Debug for BgSplitState
Source§impl PartialEq for BgSplitState
impl PartialEq for BgSplitState
impl Copy for BgSplitState
impl Eq for BgSplitState
impl StructuralPartialEq for BgSplitState
Auto Trait Implementations§
impl Freeze for BgSplitState
impl RefUnwindSafe for BgSplitState
impl Send for BgSplitState
impl Sync for BgSplitState
impl Unpin for BgSplitState
impl UnsafeUnpin for BgSplitState
impl UnwindSafe for BgSplitState
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