LC3: LC-3 virtual machine

[ bsd3, language, program ] [ Propose Tags ] [ Report a vulnerability ]

Haskell implementation of the LC-3 VM


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2
Change log ChangeLog.md
Dependencies base (<5), bytestring, hspec, lens, mtl, vector [details]
License BSD-3-Clause
Copyright David Johnson (c) 2019
Author David Johnson
Maintainer code@dmj.io
Revised Revision 1 made by DavidJohnson at 2024-12-16T20:24:52Z
Category Language
Source repo head: git clone https://github.com/dmjio/LC3.git
Uploaded by DavidJohnson at 2019-01-01T04:19:10Z
Distributions
Executables LC3
Downloads 1869 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2019-01-01 [all 3 reports]

Readme for LC3-0.1.0.2

[back to package description]

LC3

A Haskell implementation of the LC3 virtual machine

Play 2048!

$ nix-build
$ ./result/bin/LC3 ./2048.obj

Result

+--------------------------+
|                          |
|   16    4     4          |
|                          |
|   2     2                |
|                          |
|               2          |
|                          |
|                          |
|                          |
+--------------------------+

Play Rogue!

$ nix-build
$ ./result/bin/LC3 ./rogue.obj

Result

##################  ############
###################     ########
#######################        #
########################  #  #
###############################D
################################
################################
  ##############################
#  #############################
## @  ##########################
#####  #########################
######  ########################
#######   ######################
#########    ###################
############  ##  ##############
#############      #############