ssayols / LC3-VM-R

Implementation of LC-3 virtual machine in R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LC3-VM-R

Implementation of LC-3 virtual machine in R, inspired by the tutorial Write your Own Virtual Machine.

Usage

Run the program with the obj file as an argument:

$ Rscript lc3.R path/to/your_file.obj

Example

  • Play 2048
$ Rscript lc3.R obj/2048.obj
+--------------------------+
|                          |
|         2                |
|                          |
|                          |
|                          |
|                          |
|                          |
|   2                      |
|                          |
+--------------------------+
  • Play Rogue
$ Rscript lc3.R obj/rogue.obj
##################  ############
###################     ########
#######################        #
########################  #  #  
###############################D
################################
################################
@ ##############################
#  #############################
##    ##########################
#####  #########################
######  ########################
#######   ######################
#########    ###################
############  ##  ##############
#############      #############

About

Implementation of LC-3 virtual machine in R

License:GNU General Public License v3.0


Languages

Language:R 100.0%