[][src]Enum cpclib_sna::SnapshotFlag

pub enum SnapshotFlag {
    Z80_AF,
    Z80_F,
    Z80_A,
    Z80_BC,
    Z80_C,
    Z80_B,
    Z80_DE,
    Z80_E,
    Z80_D,
    Z80_HL,
    Z80_L,
    Z80_H,
    Z80_R,
    Z80_I,
    Z80_IFF0,
    Z80_IFF1,
    Z80_IX,
    Z80_IXL,
    Z80_IXH,
    Z80_IY,
    Z80_IYL,
    Z80_IYH,
    Z80_SP,
    Z80_PC,
    Z80_IM,
    Z80_AFX,
    Z80_FX,
    Z80_AX,
    Z80_BCX,
    Z80_CX,
    Z80_BX,
    Z80_DEX,
    Z80_EX,
    Z80_DX,
    Z80_HLX,
    Z80_LX,
    Z80_HX,
    GA_PAL(Option<usize>),
    GA_PEN,
    GA_ROMCFG,
    GA_RAMCFG,
    CRTC_REG(Option<usize>),
    CRTC_SEL,
    ROM_UP,
    PPI_A,
    PPI_B,
    PPI_C,
    PPI_CTL,
    PSG_REG(Option<usize>),
    PSG_SEL,
    CPC_TYPE,
    INT_NUM,
    GA_MULTIMODE(Option<usize>),
    FDD_MOTOR,
    FDD_TRACK,
    PRNT_DATA,
    CRTC_TYPE,
    CRTC_HCC,
    CRTC_CLC,
    CRTC_RLC,
    CRTC_VAC,
    CRTC_VSWC,
    CRTC_HSWC,
    CRTC_STATE,
    GA_VSC,
    GA_ISC,
    INT_REQ,
}

Encode a flag of the snaphot

Variants

Z80_AF
Z80_F
Z80_A
Z80_BC
Z80_C
Z80_B
Z80_DE
Z80_E
Z80_D
Z80_HL
Z80_L
Z80_H
Z80_R
Z80_I
Z80_IFF0
Z80_IFF1
Z80_IX
Z80_IXL
Z80_IXH
Z80_IY
Z80_IYL
Z80_IYH
Z80_SP
Z80_PC
Z80_IM
Z80_AFX
Z80_FX
Z80_AX
Z80_BCX
Z80_CX
Z80_BX
Z80_DEX
Z80_EX
Z80_DX
Z80_HLX
Z80_LX
Z80_HX
GA_PAL(Option<usize>)
GA_PEN
GA_ROMCFG

Naming of this one is inapproriate as documentatoin state: This byte in the snapshot represents the multi-configuration register of the Gate-Array. This byte is the last byte written to this register. For CPCEMU compatibility, bit 7 should be set to "1" and bit 6 and bit 5 set to "0". Use it to select screen mode

GA_RAMCFG
CRTC_REG(Option<usize>)
CRTC_SEL
ROM_UP
PPI_A
PPI_B
PPI_C
PPI_CTL
PSG_REG(Option<usize>)
PSG_SEL
CPC_TYPE
INT_NUM
GA_MULTIMODE(Option<usize>)
FDD_MOTOR
FDD_TRACK
PRNT_DATA
CRTC_TYPE
CRTC_HCC
CRTC_CLC
CRTC_RLC
CRTC_VAC
CRTC_VSWC
CRTC_HSWC
CRTC_STATE
GA_VSC
GA_ISC
INT_REQ

Methods

impl SnapshotFlag[src]

pub fn enumerate() -> [Self; 67][src]

pub fn offset(&self) -> usize[src]

Return the location in the header for the flag (and its potential index)

pub fn indice(&self) -> Option<usize>[src]

pub fn set_indice(&mut self, indice: usize) -> Result<(), SnapshotError>[src]

pub fn base(&self) -> usize[src]

Return the header base position that corresponds to the flag

pub fn nb_elems(&self) -> usize[src]

Return the number of elements the flag can handle

pub fn elem_size(&self) -> usize[src]

Return the size of one unique element

pub fn comment(&self) -> &str[src]

Trait Implementations

impl Clone for SnapshotFlag[src]

impl Copy for SnapshotFlag[src]

impl Debug for SnapshotFlag[src]

impl FromStr for SnapshotFlag[src]

type Err = String

The associated error which can be returned from parsing.

impl PartialEq<SnapshotFlag> for SnapshotFlag[src]

impl StructuralPartialEq for SnapshotFlag[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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.