/VMachine

Hack Virtual Machine which converts virtual machine code or VM code into Hack assembly code.

Primary LanguageC++

VMachine

Hack Virtual Machine which converts virtual machine code or VM code into Hack assembly code.

Run it:
./output file_name.vm

Stages of our VM program :-

Stage I: Stack Arithmetic Commands

■ Pushes and adds and subtracts two constants.

■ Executes a sequence of arithmetic and logical operations on the stack.

Stage II: Memory Access Commands

■ Executes pop and push operations using the virtual memory segments.

■ Executes pop and push operations using the pointer, this, and that segments.

■ Executes pop and push operations using the static segment.