Compile
$ make --directory assembler/
Sasm reference manual can be found here
Compile
$ make --directory vm/
-
Write your code in sasm syntax and save it in a file named
<filename>
.sasm -
Assemble your code using sasm binary. This will generate the corresponding bytecode (out.sbc)
$ assembler/bin/sasm <sasm-file>
-
Run the bytecode using ssm binary.
$ vm/bin/ssm out.sbc
$ assembler/bin/sasm examples/<filename>
$ vm/bin/ssm out.sbc