GithubHelp home page GithubHelp logo

complx-tools / liblc3 Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 151 KB

LC3 Simulator backend written in C++. Supporting the original and 2019 revision of the LC3

License: GNU General Public License v3.0

CMake 4.31% C++ 95.46% Shell 0.22%
lc3 lc-3 lc3-assembler lc3-assembly lc3-emulator lc3-isa lc3-simulator cpp

liblc3's Introduction

liblc3

Extensible LC-3 Simulator backend written in C++. Mainly used in CS2110 at Georgia Tech. Maintained by Brandon (bwhitehead0308 [AT] gmail [DOT] com).

Special Note Let me know if your school is using any portion of the tools provided here. The tools are subject to change every semester as new features are added or stuff is tweaked based on student feedback. I don't want to break anyone's setup, and would like to keep users in the loop with changes and suggest features.

Features

  • Support for all instructions including LC-3 interrupts.
  • Support for the 2019 revision of the LC-3
  • Support for running instructions, and assembling LC-3 assembly code.
  • Features for running assembly code
    • Backstepping/Undoing instructions
    • Stepping into/out/over a subroutine
    • Running X number of instructions
  • Trace file support.
  • Powerful Debugger Framework
    • Ability to set breakpoints at specific locations
    • Ability to create watchpoints which trigger when a write to a register/memory location happens
    • Ability to set a temporary breakpoint/watchpoint that only triggers X times
    • Ability to mark a subroutine/trap as a blackbox and have the simulator automatically step over it
    • For the above ability to add a condition for the breakpoint/watchpoint to trigger
    • Ability to define all of the above in the assembly source file for easier debugging (and won't affect the grader)
  • Ability to extend liblc3 via plugins
    • Plugins can add new device registers, traps, send interrupts, and add a new instruction

Installation

Currently only Ubuntu packages are distributed to install those,

$ sudo add-apt-repository ppa:tricksterguy87/complx $ sudo apt update $ sudo apt-get install -y liblc3

There's also a development package liblc3-dev which includes headers, cmake files for downstream projects.

liblc3's People

Contributors

tricksterguy avatar

Stargazers

 avatar  avatar

Forkers

richardso21

liblc3's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.