-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Labels
Description
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.
Reactions are currently unavailable