Skip to main content

Mmc3Revision

Enum Mmc3Revision 

Source
pub enum Mmc3Revision {
    Sharp,
    Nec,
}
Expand description

MMC3 IRQ-counter behaviour. Default is the Sharp (“new”) behaviour; the alternative suppresses the “reload to 0 asserts IRQ” behaviour.

Naming, corrected in v2.9.6. These two variants were documented as “Sharp MMC3A” and “NEC MMC3B”. MMC3.md says otherwise: the old or alternate behaviour belongs to the MMC3A and to non-Sharp MMC3B chips (“1 (Sharp MMC3B, MMC3C) or 2 (MMC3A, Non-Sharp MMC3B) to 256 scanlines”), and the NES 2.0 submapper for it is 4, not 1 (NES_2_0_submappers.md). The behaviour of each variant was always right; only the labels were wrong, together with the submapper mapping that followed them.

Variants§

§

Sharp

Sharp MMC3B and MMC3C: reloading the IRQ counter to 0 asserts IRQ if IRQs are enabled, so a latch of 0 fires every scanline. Default.

§

Nec

NEC MMC3B and the MMC3A: the IRQ fires on the counter’s 1 -> 0 transition, so a latch of 0 stops IRQs. NES 2.0 submapper 4.

Trait Implementations§

Source§

impl Clone for Mmc3Revision

Source§

fn clone(&self) -> Mmc3Revision

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Mmc3Revision

Source§

impl Debug for Mmc3Revision

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Mmc3Revision

Source§

fn default() -> Mmc3Revision

Returns the “default value” for a type. Read more
Source§

impl Eq for Mmc3Revision

Source§

impl Hash for Mmc3Revision

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Mmc3Revision

Source§

fn eq(&self, other: &Mmc3Revision) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Mmc3Revision

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.