Skip to content

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

Notifications You must be signed in to change notification settings

gods-mack/VMachine

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published