/LC3-VM-Racket

Implementation of LC-3 virtual machine in Racket

Primary LanguageRacketMIT LicenseMIT

LC-3 VM

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

Usage

Run the program with the obj file as an argument:

$ racket lc3.rkt path/to/your_file.obj

Example

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