Module moras::modules::riscv::middleware::frontend_api
source · Expand description
This module provides API functions for the frontend. Could be used by
invoke
in EMCAScript
Re-exports§
pub use __cmd__create_tab;
pub use __cmd__close_tab;
pub use __cmd__change_current_tab;
pub use __cmd__set_cursor;
pub use __cmd__modify_current_tab;
pub use __cmd__read_tab;
pub use __cmd__write_tab;
pub use __cmd__set_return_data_range;
pub use __cmd__assembly;
pub use __cmd__dump;
pub use __cmd__run;
pub use __cmd__debug;
pub use __cmd__stop;
pub use __cmd__resume;
pub use __cmd__step;
pub use __cmd__reset;
pub use __cmd__undo;
pub use __cmd__set_breakpoint;
pub use __cmd__remove_breakpoint;
pub use __cmd__syscall_input;
pub use __cmd__update_assembler_settings;
Functions§
- Assembles the code in the currently active tab.
- Authorize and connect to a remote RPC server as client.
- Changes the current tab to the one specified by the new path.
- Closes the tab associated with the given file path.
- Creates a new tab with content loaded from a specified file path.
- Run the code in the currently active tab in debug mode.
- Dump the code in the currently active tab.
- Updates the content of the tab associated with the given file path.
- parse 🔒helper function
- Reads the content of a tab from the file at the specified path.
- Removes a breakpoint at a specified line in the code of the current tab.
- Resets the state of the currently active tab’s simulator.
- Resumes the currently active tab’s simulator.
- Run the code in the currently active tab in normal mode(won’t stop at exist break point).
- Sets a breakpoint at a specified line in the code of the current tab.
- set_cursorDeprecatedSets the cursor position in current tab associated with the given file path. This could be useful for live sharing of code.
- Sets the range [start, end] of data to be returned by the assembly and simulator for the current tab. Default is [0, 0].
- Starts the RPC server for the current tab.
- Steps through the code in the currently active tab.
- Stops the currently active tab’s simulator.
- Stop the share server for the current tab.
- Send a syscall input to current tab’s simulator.
- Undoes the last instruction for current activate tab’s simulator.
- Updates the assembler settings for the current tab.
- Writes data in specific tab to the file path.