[][src]Struct cpclib_z80emu::Z80

pub struct Z80 { /* fields omitted */ }

Highly simplify z80 model. TODO Add memory

Methods

impl Z80[src]

pub fn execute(&mut self, opcode: &Token) -> usize[src]

Execute the given token. XXX Currently only OpCode are managed whereas some other tokens also have a sense there BUGGY flags are not properly updated Returns the number of noprs

pub fn setup_symbol_table(&mut self, symbols: &SymbolsTableCaseDependent)[src]

Replace the current symbol table by a copy of the one in argument

pub fn ret(&mut self)[src]

Execute the RET instruction

impl Z80[src]

pub fn pc(&self) -> &Register16[src]

pub fn sp(&self) -> &Register16[src]

pub fn af(&self) -> &Register16[src]

pub fn bc(&self) -> &Register16[src]

pub fn de(&self) -> &Register16[src]

pub fn hl(&self) -> &Register16[src]

pub fn ix(&self) -> &Register16[src]

pub fn iy(&self) -> &Register16[src]

pub fn a(&self) -> &Register8[src]

pub fn f(&self) -> &Register8[src]

pub fn b(&self) -> &Register8[src]

pub fn c(&self) -> &Register8[src]

pub fn d(&self) -> &Register8[src]

pub fn e(&self) -> &Register8[src]

pub fn h(&self) -> &Register8[src]

pub fn l(&self) -> &Register8[src]

pub fn ixh(&self) -> &Register8[src]

pub fn ixl(&self) -> &Register8[src]

pub fn iyh(&self) -> &Register8[src]

pub fn iyl(&self) -> &Register8[src]

pub fn pc_mut(&mut self) -> &mut Register16[src]

pub fn sp_mut(&mut self) -> &mut Register16[src]

pub fn af_mut(&mut self) -> &mut Register16[src]

pub fn bc_mut(&mut self) -> &mut Register16[src]

pub fn de_mut(&mut self) -> &mut Register16[src]

pub fn hl_mut(&mut self) -> &mut Register16[src]

pub fn ix_mut(&mut self) -> &mut Register16[src]

pub fn iy_mut(&mut self) -> &mut Register16[src]

pub fn a_mut(&mut self) -> &mut Register8[src]

pub fn f_mut(&mut self) -> &mut Register8[src]

pub fn b_mut(&mut self) -> &mut Register8[src]

pub fn c_mut(&mut self) -> &mut Register8[src]

pub fn d_mut(&mut self) -> &mut Register8[src]

pub fn e_mut(&mut self) -> &mut Register8[src]

pub fn h_mut(&mut self) -> &mut Register8[src]

pub fn l_mut(&mut self) -> &mut Register8[src]

pub fn ixh_mut(&mut self) -> &mut Register8[src]

pub fn ixl_mut(&mut self) -> &mut Register8[src]

pub fn iyh_mut(&mut self) -> &mut Register8[src]

pub fn iyl_mut(&mut self) -> &mut Register8[src]

pub fn ex_af_af_prime(&mut self)[src]

pub fn exx(&mut self)[src]

pub fn ex_de_hl(&mut self)[src]

pub fn copy_to_from(&mut self, to: Register8, from: Register8)[src]

Trait Implementations

impl Clone for Z80[src]

impl Debug for Z80[src]

impl Default for Z80[src]

Auto Trait Implementations

impl RefUnwindSafe for Z80

impl Send for Z80

impl Sync for Z80

impl Unpin for Z80

impl UnwindSafe for Z80

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.