The SMART CLI toolset provides a suite of command-line utilities to work with the SMART Assembly Language. The toolset includes an assembler, a disassembler, and a virtual machine to run the compiled programs.
To install the SMART CLI tools, you can use:
npm install <package-name>
The assembler takes an assembly .asm file and compiles it into a binary .obj file.
smart-assembler <input.asm> <output.obj> [--debug]
--debug: Enable debug mode.
The disassembler takes a binary .obj file and converts it back into an assembly .asm file.
smart-disassemble <input.obj> [output.asm]
If output.asm is not provided or set to -, the output will be printed to stdout.
--debug: Enable debug mode.
The virtual machine runs the compiled .obj programs.
smart-vm <input.obj> [--debug]
--debug (or -d): Run in debug mode.
Each tool provides a help option (-h or --help) that displays more detailed usage information.