Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features for commands and actions #92

Open
11 of 21 tasks
jabraham17 opened this issue Mar 13, 2023 · 0 comments
Open
11 of 21 tasks

New features for commands and actions #92

jabraham17 opened this issue Mar 13, 2023 · 0 comments

Comments

@jabraham17
Copy link
Owner

jabraham17 commented Mar 13, 2023

general

  • cli flag to treat ebreak as PAUSE, otherwise noop
    • this is shorthand for pause if $m[$pc] == ebreak on hart:after_execute
  • add shorthand cli flag --start-paused and -p
  • add a single-step command
  • new set command to set expressions
    • will set lhs = rhs
    • rhs can be any expression
    • lhs must resolve to a register (or PC) or a memory location
  • unify PC to be defined as a register

context

  • default events based on if CLI or interactive
  • execution modes
    • if there are events defined, install as a callback
    • if there are no events defined, execute immediately
  • enforce certain commands trying to execute immediately that cannot, i.e. from CLI, this is an error

new syntax

bugs

future

  • consider adding global variables
    • something like create arg or define arg
    • then it can be used anywhere
  • add a start and stop event
    • in combination with variables, we could now have statistics at runtime
  • consider support for loops? probably dont want
  • .. spread operator to support ranges
  • print ranges of values such as $x0..$x12 or $m[0x989..0x9900]
  • Add ability to remove commands #61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant