Skip to content

ani1998ket/SSM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Stack based Virtual Machine written in C++

Assembler ( Converts sasm code to SSM bytecode )

Compile

$ make --directory assembler/

Sasm reference manual can be found here

VM ( Runs the bytecode )

Compile

$ make --directory vm/

Steps

  • 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
    

Running the examples

$ assembler/bin/sasm examples/<filename>

$ vm/bin/ssm out.sbc

About

A simple stack based virtual machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published