Skip to content

This Project is for writing an assembly virtual machine use cpp.

License

Notifications You must be signed in to change notification settings

KevinJey/AssemblyVMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AssemblyVMachine

This project is a virtual machine developed based on C++ to simulate the LC-3 machine, which has a relatively simple instruction set and can be used to write moderately complex assembler programs. Able to successfully run an assembler ending in.obj, such as 2048.

You can use this VM to run any .obj files. These project has been given two examples for testing.

Usage

make # build this project
cd obj
assvm [image-file1] ...
# For example
assvm 2048.obj
assvm rogue.obj

Example

cd test/
./2048
nixistar@ubuntu:~/AssemblyVMachine/test$ ./2048 
Control the game using WASD keys.
Are you on an ANSI terminal (y/n)? n
+-----------------------------+
|                             |
|   2                         |
|                             |
|                     2       |
|                             |
|                             |
|                             |
|                             |
|                             |
+------------------------------+

ScreenShot

2048

Rouge

Reference

Original Project Website: Write your Own Virtual Machine

About

This Project is for writing an assembly virtual machine use cpp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published