pub struct M68k<Instant> {
pub info: CpuInfo,
pub state: M68kState,
pub debugger: M68kDebugger,
pub stats: M68kStatistics,
pub cycle: Option<M68kCycle<Instant>>,
}
Fields§
§info: CpuInfo
§state: M68kState
§debugger: M68kDebugger
§stats: M68kStatistics
§cycle: Option<M68kCycle<Instant>>
Implementations§
source§impl<Instant> M68k<Instant>where
Instant: BusInstant,
impl<Instant> M68k<Instant>where
Instant: BusInstant,
Trait Implementations§
source§impl<Bus, BusError, Instant, Writer> Debug<u32, Bus, Writer> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Instant: BusInstant,
Writer: Write,
impl<Bus, BusError, Instant, Writer> Debug<u32, Bus, Writer> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Instant: BusInstant,
Writer: Write,
Control the execution of a CPU device for debugging purposes
§type DebugError = M68kError<BusError>
type DebugError = M68kError<BusError>
Represents an error that can occur while debugging
source§fn get_execution_address(&mut self) -> Result<M68kAddress, Self::DebugError>
fn get_execution_address(&mut self) -> Result<M68kAddress, Self::DebugError>
Returns the
Address
where execution will take place the next time step()
is calledsource§fn set_execution_address(
&mut self,
address: M68kAddress
) -> Result<(), Self::DebugError>
fn set_execution_address( &mut self, address: M68kAddress ) -> Result<(), Self::DebugError>
Sets the
Address
where execution will take place the next time step()
is calledsource§fn add_breakpoint(&mut self, address: M68kAddress)
fn add_breakpoint(&mut self, address: M68kAddress)
Add a breakpoint
source§fn remove_breakpoint(&mut self, address: M68kAddress)
fn remove_breakpoint(&mut self, address: M68kAddress)
Remove a breakpoint
source§fn clear_breakpoints(&mut self)
fn clear_breakpoints(&mut self)
Clear all breakpoints
source§impl Debuggable for M68k<Instant>
impl Debuggable for M68k<Instant>
fn add_breakpoint(&mut self, addr: Address)
fn remove_breakpoint(&mut self, addr: Address)
fn print_current_step(&mut self, system: &System) -> Result<(), Error>
fn print_disassembly(&mut self, system: &System, addr: Address, count: usize)
fn run_command(&mut self, system: &System, args: &[&str]) -> Result<bool, Error>
source§impl<Bus, BusError, Instant, Writer> Inspect<u32, Bus, Writer> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Writer: Write,
impl<Bus, BusError, Instant, Writer> Inspect<u32, Bus, Writer> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Writer: Write,
§type InfoType = M68kInfo
type InfoType = M68kInfo
A type that describes the types of information or state that this device can emit
source§fn inspect(
&mut self,
info: Self::InfoType,
_bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn inspect( &mut self, info: Self::InfoType, _bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write the given information type to the given writer, or return an error
source§fn brief_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn brief_summary( &mut self, bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write a brief summary of the device’s current state to the given writer, or return an error
source§fn detailed_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn detailed_summary( &mut self, bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write a detailed summary of the device’s current state to the given writer, or return an error
source§impl<Bus, BusError, Instant> Step<u32, Bus> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Instant: BusInstant,
impl<Bus, BusError, Instant> Step<u32, Bus> for M68k<Instant>where
Bus: BusAccess<M68kAddress, Instant = Instant, Error = BusError>,
BusError: ErrorType,
Instant: BusInstant,
source§fn is_running(&mut self) -> bool
fn is_running(&mut self) -> bool
Returns true if this device is still running. This can be used to detect a stop or halt condition
source§impl Transmutable for M68k<Instant>
impl Transmutable for M68k<Instant>
fn as_steppable(&mut self) -> Option<&mut dyn Steppable>
fn as_interruptable(&mut self) -> Option<&mut dyn Interruptable>
fn as_debuggable(&mut self) -> Option<&mut dyn Debuggable>
fn as_addressable(&mut self) -> Option<&mut dyn Addressable>
fn as_inspectable(&mut self) -> Option<&mut dyn Inspectable>
fn as_signalable(&mut self) -> Option<&mut dyn Signalable>
impl Interruptable for M68k<Instant>
Auto Trait Implementations§
impl<Instant> Freeze for M68k<Instant>where
Instant: Freeze,
impl<Instant> RefUnwindSafe for M68k<Instant>where
Instant: RefUnwindSafe,
impl<Instant> Send for M68k<Instant>where
Instant: Send,
impl<Instant> Sync for M68k<Instant>where
Instant: Sync,
impl<Instant> Unpin for M68k<Instant>where
Instant: Unpin,
impl<Instant> UnwindSafe for M68k<Instant>where
Instant: UnwindSafe,
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T