[][src]Struct spectrusty::peripherals::memory::ZxInterface1MemExt

pub struct ZxInterface1MemExt { /* fields omitted */ }

The ZX Interface 1 memory extension.

Interface 1 ROM is paged in if the processor executes the instruction at address 0x0008 or 0x1708, the error handler, and CLOSE # routines. It is paged out after the Z80 executes the RET at address 0x0700.

Implementations

impl ZxInterface1MemExt[src]

pub fn load_if1_rom<R>(&mut self, rd: R) -> Result<(), Error> where
    R: Read
[src]

Provide a reader with 8kb of ZX Interface 1 ROM program code.

pub fn exrom(&self) -> &Rc<[u8]>[src]

Returns a reference to the EX-ROM bank.

pub fn clear_exrom(&mut self)[src]

Removes data from the EX-ROM bank.

Note

If the EX-ROM bank has been paged in, it won't be paged out automatically after the EX-ROM data is cleared from the extension.

pub fn map_exrom<M>(&self, memory: &mut M) -> Result<(), ZxMemoryError> where
    M: ZxMemory
[src]

Maps EX-ROM into memory page 0.

Errors

Returns an error if the extension's EX-ROM bank is not populated with ROM data.

pub fn unmap_exrom<M>(&self, memory: &mut M) where
    M: ZxMemory
[src]

Unmaps EX-ROM from memory.

pub fn is_mapped_exrom<M>(&self, memory: &M) -> bool where
    M: ZxMemory
[src]

Returns true if EX-ROM is currently paged in.

Trait Implementations

impl Clone for ZxInterface1MemExt[src]

impl Debug for ZxInterface1MemExt[src]

impl Default for ZxInterface1MemExt[src]

impl<'de> Deserialize<'de> for ZxInterface1MemExt[src]

impl MemoryExtension for ZxInterface1MemExt[src]

impl Serialize for ZxInterface1MemExt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, T> IntoSample<S> for T where
    S: FromSample<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,