pub struct ExecutionArgs {
pub cycles: Option<u128>,
pub frames: Option<u64>,
pub until_opcode: Option<u8>,
pub until_mem: Option<Vec<String>>,
pub until_hlt: bool,
pub trace: Option<PathBuf>,
pub breakpoint: Vec<u16>,
pub watch_mem: Vec<String>,
}Expand description
Execution control arguments
Fields§
§cycles: Option<u128>Run for N master cycles
frames: Option<u64>Run for N frames
until_opcode: Option<u8>Run until specific opcode executes (hex, e.g., 0x02)
until_mem: Option<Vec<String>>Run until memory condition (e.g., 0x6000==0x80)
until_hlt: boolRun until HLT (illegal halt) instruction
trace: Option<PathBuf>Enable instruction trace to file
breakpoint: Vec<u16>Set breakpoint at PC address (can be specified multiple times)
watch_mem: Vec<String>Watch memory address for access (format: ADDR or ADDR:MODE where MODE is r/w/rw) Stops execution when the CPU reads/writes the specified address. Examples: 0x2002 (any access), 0x2002:r (reads only), 0x4016:w (writes only)
Trait Implementations§
Source§impl Args for ExecutionArgs
impl Args for ExecutionArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ExecutionArgs
impl Clone for ExecutionArgs
Source§fn clone(&self) -> ExecutionArgs
fn clone(&self) -> ExecutionArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionArgs
impl Debug for ExecutionArgs
Source§impl Default for ExecutionArgs
impl Default for ExecutionArgs
Source§fn default() -> ExecutionArgs
fn default() -> ExecutionArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ExecutionArgs
impl FromArgMatches for ExecutionArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ExecutionArgs
impl RefUnwindSafe for ExecutionArgs
impl Send for ExecutionArgs
impl Sync for ExecutionArgs
impl Unpin for ExecutionArgs
impl UnsafeUnpin for ExecutionArgs
impl UnwindSafe for ExecutionArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().