Giter Site home page Giter Site logo

j-lc3's Introduction

j-LC3

A WIP LC3 assembler/emulator, for educational purposes

Written as an exercise to get me ready for the Fall 2020 semester as unbsj.

Notes

This is not complete. You will experience bugs, and you will have a better experience using something else as of now. I suggest wchargin's online tool.

Requires Numpy.

It is recomended at this point in development to run this in the Python interperiter directly, by opening python and using "import lc3", as this allows you to pause the running lc3 program and futher inspect the machines memory and registers when running in debug mode.

A copy of the lc3 operating system is included, and is now supported by the emulator. Emulator is now dependant on the os for all TRAP calls.

Assembly

To use, first use "lc3.lc3asm.loadFile( path )" to load in an assembly source file, then use "lc3.lc3asm.asm()" to assemble the file.

Emulating

To run the code, use "lc3.loadIn()", then set lc3.pc to the .orig of your program, and then use "lc3.run()".

If lc3.run is ran with the param debug=True ( lc3.run(debug=True) ), the program can be stepped through. After each step, the user can pause by entering 'p', read the registers by entering 'r', or inspect the stack with 'ss'.

j-lc3's People

Contributors

j-osephlong avatar

Watchers

 avatar

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.