Skip to content

API for running RARS from the command line #13

@martinberger

Description

@martinberger

It would be nice to have an API that makes it possible to run RARS within other programs. Maybe a method with a signature like so:

 run :: String -> RISC_V_State

Here the input string is the RISC-V assembly. The type RISC_V_State can be given in various ways. Minimally, the state should provide something along the lines of:

  • Error or successful-completion
  • Content of registers (in fact content of one register should be fine as long as that register can be used as an accumulator).

Clearly all this is available internally already, so it'd just be a matter of creating a suitable API.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions