VM Translator implemented for the Hack platform.
Hack virtual machine (.vm) code to Hack assembly (.asm) translator, implemented in Rust
The program generates Hack assembly from Hack Vm
Implemented in rust
- Clone the repo
- Ensure
hvm-translator
is executable
sudo chmod +x ./hvm-translator
- Run translator
./hvm-translator filename or directory
- If a single file is supplied as an argument, it file should have
.vm
extension - If a directory is supplied as an argument, it should contain files with
.vm
extension - The directory should contain
Sys.vm
file to be initialized for the hardware simulator - Bootstrap is generated if
Sys.vm
is supplied, bootstrap callsSys.init
method - Only works on Unix platform