pub struct Mos6502;Expand description
The 6502 driver.
Trait Implementations§
impl Copy for Mos6502
Source§impl Platform for Mos6502
impl Platform for Mos6502
Source§fn regions(&self) -> &[RegionDef]
fn regions(&self) -> &[RegionDef]
The address regions this CPU exposes, in emission order. May include
user-defined regions.
Source§fn max_insn_len(&self) -> usize
fn max_insn_len(&self) -> usize
The longest instruction in bytes, the fetch window for decoding.
Source§fn decode(&self, pc: u32, bytes: &[u8]) -> DecodedInsn
fn decode(&self, pc: u32, bytes: &[u8]) -> DecodedInsn
Decode the instruction starting at
pc from bytes (a fetch window of
up to max_insn_len bytes). Returns an
instruction even for unknown opcodes (with its length), mirroring the
underlying decoder, the caller rejects it if it runs past bytes.Source§fn entry_points(&self) -> &[EntryPoint]
fn entry_points(&self) -> &[EntryPoint]
Where the hardware begins executing: reset and interrupt vectors. These
can be disabled if unused or not appropriate for a given database.
Source§fn canonicalize(
&self,
space: AddressSpace,
offset: AddressValue,
) -> CanonicalAddr
fn canonicalize( &self, space: AddressSpace, offset: AddressValue, ) -> CanonicalAddr
Resolve an address to the storage it aliases (or itself if it is not an alias).
Source§fn area_header(&self, space: AddressSpace) -> Option<&'static str>
fn area_header(&self, space: AddressSpace) -> Option<&'static str>
The
.area header for space, if this driver declares it.Auto Trait Implementations§
impl Forget for Mos6502
impl Freeze for Mos6502
impl Move for Mos6502
impl RefUnwindSafe for Mos6502
impl Send for Mos6502
impl Sync for Mos6502
impl Unpin for Mos6502
impl UnsafeUnpin for Mos6502
impl UnwindSafe for Mos6502
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